Csharp SDK MCP Server
The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.
Automated security grades and vulnerability claims are hidden while MCPSafe's reviewed-publication gate is active. Registry metadata and quality metrics remain live.
Trust Score 55
Trust is stricter than security: it combines reviewed security, MCP capability risk, supply-chain metadata, quality, popularity, freshness, and penalties for unknowns.
- • Good documentation surface
- • Recently scanned
- • No reviewed security score
- • Missing/unclear license
- • MCP risk traits: Filesystem access, Network/API access, Requires secrets
Reviewed Security Publication Pending
MCPSafe treats automated scan output as internal evidence until review. Scan dates, versions, and coverage remain visible; public security scores and vulnerability claims appear only after findings pass the reviewed-publication gate.
Security Score?
Vulnerabilities Found
Quality ScoreC
Maintenance45
Popularity55
Documentation93
Available Documentation
Compatibility72
Features
Supported Transports
READMECsharp SDK MCP Server
View sourceMCP C# 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.
Packages
The SDK packages are:
- [ModelContextProtocol.Core](https://www.nuget.org/packages/ModelContextProtocol.Core)  - For projects that only need to use the client or low-level server APIs and want the minimum number of dependencies.
- [ModelContextProtocol](https://www.nuget.org/packages/ModelContextProtocol)  - The main package with hosting and dependency injection extensions. References
ModelContextProtocol.Core. This is the right fit for most projects that don't need HTTP server capabilities.
- [ModelContextProtocol.AspNetCore](https://www.nuget.org/packages/ModelContextProtocol.AspNetCore)  - The library for HTTP-based MCP servers. References
ModelContextProtocol.
- [ModelContextProtocol.Extensions.Apps](https://www.nuget.org/packages/ModelContextProtocol.Extensions.Apps)  - MCP Apps extension for building interactive UI applications that render inside MCP hosts.
- [ModelContextProtocol.Extensions.Tasks](https://www.nuget.org/packages/ModelContextProtocol.Extensions.Tasks)  - MCP Tasks extension for running long-running tool invocations asynchronously with status polling and input requests.
Getting Started
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.
About MCP
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools.
For more information about MCP:
Cross-Application Access (Identity Assertion Authorization Grant flow)
The SDK provides support for the Identity Assertion Authorization Grant flow
via IdentityAssertionGrantProvider. See the Cross-Application Access section in the transport docs for full usage details.
License
This project is licensed under the Apache License 2.0.
Embed Security Badge
Add this badge to your README or documentation
[](https://mcpsafe.org/registry/modelcontextprotocol-csharp-sdk)Server Information
- Source
- GITHUB
- Language
- rust
- License
- NOASSERTION
- Transport
- STDIO
- Added
- Aug 2, 2026
- Updated
- Oct 1, 2026