Csharp SDK MCP Server
Build .NET-based MCP clients and servers with modular library components.
Data last scanned today · Reviewed today
Overview
The C# SDK provides a structured framework for developers to implement the Model Context Protocol within .NET applications. It includes specific packages for core functionality, hosting and dependency injection, and HTTP-based server support, allowing for flexible integration tailored to project requirements. Additional extensions support interactive UI applications that render inside MCP hosts and asynchronous task management. The library includes comprehensive conceptual documentation and samples to assist in setting up both client and server implementations.
Our verdict
With a security score of 53/100, this SDK carries a high risk level. Key factors include its status as community-maintained code that has not yet undergone independent editorial review. Furthermore, the lack of a verified license and the current absence of reviewed authentication or read-only mode support means users should proceed with caution and carefully audit the implementation before deploying it in sensitive environments.
- Modular package structure minimizes dependency overhead
- Active development with commits occurring daily
- Large contributor base of 77 developers
- Security score of 53/100 indicates high risk
- Authentication methods have not been reviewed
- License is currently set to NOASSERTION
- Read-only mode support is unverified
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| ChatGPT | ||||
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf |
Frequently asked questions
›Which package should I use for a standard .NET project?
The ModelContextProtocol package is the primary choice for most projects, as it includes hosting and dependency injection extensions.
›How can I implement an MCP server that uses HTTP?
You should use the ModelContextProtocol.AspNetCore package, which is specifically designed for HTTP-based MCP servers.
›What if I only need low-level server APIs or minimal dependencies?
The ModelContextProtocol.Core package is available for projects that require only the client or low-level server APIs with minimal dependencies.
›Does the SDK support long-running tool invocations?
Yes, you can use the ModelContextProtocol.Extensions.Tasks extension to handle asynchronous tool invocations with status polling and input requests.
›Is there support for identity-based authorization?
Yes, the SDK supports the Identity Assertion Authorization Grant flow via the IdentityAssertionGrantProvider class.
Changelog
- Breakingv2.0.0-preview.3
2026-07-15
- Breakingv2.0.0-preview.2
2026-07-09
- Fixv1.4.1
2026-07-09
- Breakingv2.0.0-preview.1
2026-06-26
- Securityv1.4.0
2026-06-04
- Securityv1.3.0
2026-05-08
- Breakingv1.2.0
2026-03-27
- Fixv1.1.0
2026-03-06
- Breakingv1.0.0
2026-02-25
- Breakingv1.0.0-rc.1
2026-02-24
Badge
Maintain this server? Add the live badge to your README.