#62 · Primary category: LLM Application Frameworks

csharp-sdk

csharp dotnet mcp mcp-client mcp-server modelcontextprotocol

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

Project last updated:08/27/26

GitHub Stars

4.5K

Forks

797

Contributors

90

License

Other

Why we included this project

For .NET teams that want their C# services to work with AI assistants, this is the official way to implement the Model Context Protocol. Your application can run as an MCP client that calls tools an assistant exposes, or as a server that offers its own tools back to those assistants. The NuGet packages cover the common setups: a minimal core for client and low-level server work, a main package with hosting and dependency injection extensions, an ASP.NET Core option for HTTP-based servers, and extensions for long-running tool calls and UIs that render inside MCP hosts. Microsoft collaborates on maintenance, which matters for teams that need dependable long-term support in .NET environments. This is squarely aimed at developers wiring real services into MCP workflows.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category