MCP C# SDK
modelcontextprotocol/csharp-sdk
SDK C# oficial do Model Context Protocol para .NET
Ver no GitHubSDK oficial em C# para o Model Context Protocol, permitindo que aplicações .NET implementem e interajam com clientes e servidores MCP. Oferece três pacotes modulares (Core, principal e AspNetCore) para diferentes necessidades de integração com LLMs.
Instalação
npx convez-ai modelcontextprotocol/csharp-sdk1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Implementar servidores MCP em aplicações .NET
- Conectar clientes .NET ao protocolo MCP para acesso a contexto de LLMs
- Criar APIs HTTP baseadas em MCP com ASP.NET Core
- Integrar ferramentas e fontes de dados com modelos de linguagem
Veredito

Ferramenta fundamental para desenvolvedores .NET que precisam integrar suas aplicações com o ecossistema MCP. Bem estruturada em pacotes modulares e mantida oficialmente com suporte Microsoft, ideal para casos de produção.
README
A tradução para o português deste README ainda está na fila.
MCP 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
This SDK consists of three main 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
- 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
- The library for HTTP-based MCP servers. References
ModelContextProtocol.
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.