csharp-sdk
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
About csharp-sdk
The official C# SDK for the Model Context Protocol, enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. Please visit the API documentation for more details on available functionality.
To get started, see the Getting Started guide in the conceptual documentation for installation instructions, package-selection guidance, and complete examples for both clients and servers.
You can also browse the samples directory and the API documentation for more details on available functionality.
csharp-sdk is an open-source project written primarily in C#, with 4.4k stars on GitHub. It was last updated in July 2026.
csharp-sdk vs. the alternatives
All mcp servers →| Agent | Stars | Pricing | ||
|---|---|---|---|---|
| csharp-sdk | 4.4k | C# | — | Open source |
| context7 | 58k | TypeScript | MIT | Open source |
| chrome-devtools-mcp | 45k | TypeScript | Apache-2.0 | Open source |
| github-mcp-server | 31k | Go | MIT | Open source |
| serena | 26k | Python | MIT | Open source |
| fastmcp | 26k | Python | Apache-2.0 | Open source |
