csharp-mcp-server-generator
Generate a complete MCP server project in C# with tools, prompts, and proper configuration
Best use case
csharp-mcp-server-generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate a complete MCP server project in C# with tools, prompts, and proper configuration
Teams using csharp-mcp-server-generator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/csharp-mcp-server-generator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How csharp-mcp-server-generator Compares
| Feature / Agent | csharp-mcp-server-generator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate a complete MCP server project in C# with tools, prompts, and proper configuration
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Generate C# MCP Server Create a complete Model Context Protocol (MCP) server in C# with the following specifications: ## Requirements 1. **Project Structure**: Create a new C# console application with proper directory structure 2. **NuGet Packages**: Include ModelContextProtocol (prerelease) and Microsoft.Extensions.Hosting 3. **Logging Configuration**: Configure all logs to stderr to avoid interfering with stdio transport 4. **Server Setup**: Use the Host builder pattern with proper DI configuration 5. **Tools**: Create at least one useful tool with proper attributes and descriptions 6. **Error Handling**: Include proper error handling and validation ## Implementation Details ### Basic Project Setup - Use .NET 8.0 or later - Create a console application - Add necessary NuGet packages with --prerelease flag - Configure logging to stderr ### Server Configuration - Use `Host.CreateApplicationBuilder` for DI and lifecycle management - Configure `AddMcpServer()` with stdio transport - Use `WithToolsFromAssembly()` for automatic tool discovery - Ensure the server runs with `RunAsync()` ### Tool Implementation - Use `[McpServerToolType]` attribute on tool classes - Use `[McpServerTool]` attribute on tool methods - Add `[Description]` attributes to tools and parameters - Support async operations where appropriate - Include proper parameter validation ### Code Quality - Follow C# naming conventions - Include XML documentation comments - Use nullable reference types - Implement proper error handling with McpProtocolException - Use structured logging for debugging ## Example Tool Types to Consider - File operations (read, write, search) - Data processing (transform, validate, analyze) - External API integrations (HTTP requests) - System operations (execute commands, check status) - Database operations (query, update) ## Testing Guidance - Explain how to run the server - Provide example commands to test with MCP clients - Include troubleshooting tips Generate a complete, production-ready MCP server with comprehensive documentation and error handling.
Related Skills
technology-stack-blueprint-generator
Comprehensive technology stack blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks, programming languages, and implementation patterns across multiple platforms (.NET, Java, JavaScript, React, Python). Generates configurable blueprints with version information, licensing details, usage patterns, coding conventions, and visual diagrams. Provides implementation-ready templates and maintains architectural consistency for guided development.
readme-blueprint-generator
Intelligent README.md generation prompt that analyzes project documentation structure and creates comprehensive repository documentation. Scans .github/copilot directory files and copilot-instructions.md to extract project information, technology stack, architecture, development workflow, coding standards, and testing approaches while generating well-structured markdown documentation with proper formatting, cross-references, and developer-focused content.
project-workflow-analysis-blueprint-generator
Comprehensive technology-agnostic prompt generator for documenting end-to-end application workflows. Automatically detects project architecture patterns, technology stacks, and data flow patterns to generate detailed implementation blueprints covering entry points, service layers, data access, error handling, and testing approaches across multiple technologies including .NET, Java/Spring, React, and microservices architectures.
pdftk-server
Skill for using the command-line tool pdftk (PDFtk Server) for working with PDF files. Use when asked to merge PDFs, split PDFs, rotate pages, encrypt or decrypt PDFs, fill PDF forms, apply watermarks, stamp overlays, extract metadata, burst documents into pages, repair corrupted PDFs, attach or extract files, or perform any PDF manipulation from the command line.
folder-structure-blueprint-generator
Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.
draw-io-diagram-generator
Use when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.png). Covers mxGraph XML authoring, shape libraries, style strings, flowcharts, system architecture, sequence diagrams, ER diagrams, UML class diagrams, network topology, layout strategy, the hediet.vscode-drawio VS Code extension, and the full agent workflow from request to a ready-to-open file.
csharp-docs
Ensure that C# types are documented with XML comments and follow best practices for documentation.
copilot-instructions-blueprint-generator
Technology-agnostic blueprint generator for creating comprehensive copilot-instructions.md files that guide GitHub Copilot to produce code consistent with project standards, architecture patterns, and exact technology versions by analyzing existing codebase patterns and avoiding assumptions.
code-exemplars-blueprint-generator
Technology-agnostic prompt generator that creates customizable AI prompts for scanning codebases and identifying high-quality code exemplars. Supports multiple programming languages (.NET, Java, JavaScript, TypeScript, React, Angular, Python) with configurable analysis depth, categorization methods, and documentation formats to establish coding standards and maintain consistency across development teams.
architecture-blueprint-generator
Comprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks and architectural patterns, generates visual diagrams, documents implementation patterns, and provides extensible blueprints for maintaining architectural consistency and guiding new development.
typescript-mcp-server-generator
Generate a complete MCP server project in TypeScript with tools, resources, and proper configuration
swift-mcp-server-generator
Generate a complete Model Context Protocol server project in Swift using the official MCP Swift SDK package.