← Back to directory
M

MCP C# SDK

Official
Framework / SDK
The official C# SDK for building MCP clients and servers.

This is a framework for building MCP servers or agents, not a server you connect a client to.

Category
Dev Tools #176 of 438
Stars
★ 4.6k Very popular
Runtime
.NET
Credentials
No credential needed
License
Other / unspecified
Last commit
56FMRS · C

This is the official MCP C# SDK maintained by the modelcontextprotocol project in collaboration with Microsoft. The source confirms support for .NET client and server development and several extensions, but provides no standalone server manifest, tool list, transport declaration, or client configuration example.

Strongest · Documentation 13/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
10/20
Maintenance
12/20
Documentation
13/20
Setup experience
11/20
Why each score
Reliability 10/20
The README clearly identifies this as a C# SDK for implementing MCP clients and servers and lists packages, samples, and API documentation, making a normal initialization and tool-interaction path plausible. However, no server manifest, source code, CI workflows, or committed tests are supplied, so initialization, tool-list handshake, error handling, dependency control, and declared-versus-real behavior cannot be statically verified. Points are deducted for that uncertainty.
Security and permissions 10/20
The README mentions secure integration and support for the Identity Assertion Authorization Grant flow, with links to the relevant specification and transport documentation. The supplied material does not show credential storage, permission boundaries, data flows, external network behavior, dangerous-side-effect confirmation, or secure defaults; the SDK is also not a concrete business server. No stated red-line risk is visible, but the evidence is insufficient for a high score.
Maintenance 12/20
The repository is described as the official C# SDK and as maintained in collaboration with Microsoft; it is not archived, and the README states Apache License 2.0. The supplied material provides no evidence of release cadence, commit activity, issue response, dependency updates, or a security-response channel. The metadata value NOASSERTION also conflicts with the README's license claim, so points are deducted.
Documentation 13/20
The README supplies package-selection guidance, NuGet links, Getting Started, samples, API documentation, protocol documentation, and cross-application access guidance, providing reasonably layered entry points. It does not show concrete installation commands, tool-parameter constraints, capability limits, cost information, or troubleshooting in the supplied material; several important details are only linked externally, so full marks are not justified.
Setup experience 11/20
The README explains the roles and dependency relationships of the NuGet packages and points to Getting Started and samples, which supports package selection. It does not provide actual commands or client configuration for going from a prepared .NET runtime to a working mainstream-client connection, nor platform compatibility or failure guidance. There is also no verifiable execution evidence in the supplied source, so setup remains moderate.

Test out of dateListed 2026-07-29

Read the FMRS scoring method →

Fit and risk

Best for

  • Teams developing MCP integrations with C# or .NET.
  • Projects needing client APIs, low-level server APIs, hosting support, or ASP.NET Core integration.
  • Developers who want the official MCP C# SDK documentation and samples.

Not for

  • Users looking to install and run a ready-made MCP tool server.
  • Projects that do not use C# or .NET.
  • Users expecting a repository manifest with declared tools, transports, or client configuration.

Required permissions

  • The source does not define fixed runtime permissions for the SDK itself.
  • Actual permissions depend on the application, server, data sources, and tools built with the SDK.

Risks and side effects

  • The SDK is not a configured standalone MCP server, so using the repository directly as a server may not work.
  • Applications built with the SDK may access external data sources or execute tools; implementers must review the actual scope.
  • The source does not provide specific version, compatibility, or runtime requirements, so deployment should be checked against the project documentation and package information.

Setup

Before you start

Runtime:.NET

Choose and install ModelContextProtocol.Core, ModelContextProtocol, ModelContextProtocol.AspNetCore, or the relevant extension package for the project. See the Getting Started documentation and the samples directory for installation guidance and examples. The repository root contains SDK source code and is not a standalone MCP server configuration.

Check that it works

Install the ModelContextProtocol NuGet package in a .NET project and follow the Getting Started guide to build a minimal MCP client or server; a successful protocol connection confirms the install.

Troubleshooting

  1. Confirm that the selected NuGet package matches the project requirements.
  2. Check that the client or server was configured according to the Getting Started documentation.
  3. Use the samples directory and API documentation to verify API usage.
  4. Confirm that the integration runs an application built with the SDK rather than the repository root itself.
  5. For an HTTP server, check that ModelContextProtocol.AspNetCore is referenced.

Use cases

Build MCP clients or servers in .NET applications.
Integrate MCP using hosting and dependency-injection extensions.
Build HTTP-based MCP servers with ASP.NET Core.
Develop MCP Apps with interactive interfaces or MCP Tasks with asynchronous status polling.

Overview

The MCP C# SDK is the official C# SDK for the Model Context Protocol, enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. It is maintained in collaboration with Microsoft and provides core APIs, hosting and dependency-injection extensions, ASP.NET Core HTTP server support, and MCP Apps and MCP Tasks extensions.

Similar servers

Context7 80 · B

Upstash's official server providing up-to-date third-party library docs for AI coding assistants

★ 63.3k · Tools 2 Compare with this →

Source revision af0fda304c5f Data synced 2026-10-19 Read the FMRS scoring method