csharp-sdk
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
- 4.6k stars
- 836 forks
- 212 open issues
- Language: C#
- License: NOASSERTION
- updated
Install
git clone https://github.com/modelcontextprotocol/csharp-sdk- Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
- Replace any <placeholder> values with your API keys or paths.
- Restart Claude. The MCP server and its tools appear automatically.
Clone https://github.com/modelcontextprotocol/csharp-sdk and follow its README for install instructions.
Editor's note
The official C# SDK for the Model Context Protocol, maintained in collaboration with Microsoft, lets .NET developers build both MCP clients and servers within their applications, services, and libraries. It ships as three NuGet packages with distinct scopes: ModelContextProtocol.Core for minimal-dependency projects needing only client or low-level server APIs, the main ModelContextProtocol package for most projects requiring hosting and dependency injection extensions, and ModelContextProtocol.AspNetCore for HTTP-based MCP server scenarios built on ASP.NET Core. All three integrate with the MCP standard that Claude Desktop, Claude Code, and other MCP-compatible clients use to expose tools, resources, and prompts to language models. A notable enterprise feature is built-in support for the Identity Assertion Authorization Grant flow via the IdentityAssertionGrantProvider class, enabling cross-application access scenarios. The primary audience is .NET and C# developers who want to connect their existing services or build new ones as MCP-compatible tool providers for Claude and other LLMs.
MCP Servers overview
What people ask about csharp-sdk
What is modelcontextprotocol/csharp-sdk?
modelcontextprotocol/csharp-sdk is mcp servers for the Claude AI ecosystem. The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft. It has 4.6k GitHub stars and its last recorded update is dated 2026-10-22.
How do I install csharp-sdk?
You can install csharp-sdk by cloning the repository (https://github.com/modelcontextprotocol/csharp-sdk) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is modelcontextprotocol/csharp-sdk safe to use?
Our security agent has analyzed modelcontextprotocol/csharp-sdk and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains modelcontextprotocol/csharp-sdk?
modelcontextprotocol/csharp-sdk is maintained by modelcontextprotocol. The last recorded GitHub activity is dated 2026-10-22, with 212 open issues.
Are there alternatives to csharp-sdk?
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.