// devtools · modelcontextprotocol/csharp-sdk

csharp-sdk

csharp-sdk es un proyecto de herramientas de desarrollo de código abierto de modelcontextprotocol (modelcontextprotocol/csharp-sdk en GitHub). Tiene 4.571 estrellas en GitHub y 820 bifurcaciones, se publica bajo la licencia Apache-2.0 y se actualizó por última vez en GitHub el 5 de octubre de 2026.

The official C# SDK for the Model Context Protocol — build MCP servers and clients in .NET

★ 4,6k estrellas⑂ 820 bifurcacionesApache-2.0actualizado oct 2026
▦ visual: el README de este proyecto no incluye ninguna captura incrustable,
así que aquí va un marcador. La guía de abajo está completa de todos modos.
// datos del proyecto

Datos del proyecto

Estrellas en GitHub
4.571
Bifurcaciones
820
Licencia
Apache-2.0
Última actualización en GitHub
5 de octubre de 2026
Tipo de ficha
Guía de instalación completa
Sitio oficial
Official site
// cómo funciona

Cómo funciona

  1. Pick your package

    Use the main ModelContextProtocol package for hosted apps, Core for minimal scenarios, or AspNetCore for HTTP servers.

  2. Add it from NuGet

    Install the package into your .NET project with the dotnet CLI or your IDE's package manager.

  3. Build a server or client

    Follow the SDK's Getting Started guide to expose tools, prompts, and resources, or to connect a client.

  4. Connect an MCP host

    Point an MCP-compatible application at your server and invoke your first tool.

// características

Por qué gusta tanto

Official implementation

Maintained with Microsoft and aligned with the MCP specification and reference documentation.

Server and client support

Build servers exposing tools, prompts, and resources, and clients that consume them.

Hosting and DI integration

The main package fits .NET's generic host and dependency-injection patterns.

ASP.NET Core transport

The AspNetCore package builds HTTP-based MCP servers on ASP.NET Core.

MCP Apps and Tasks extensions

Optional extension packages add support for MCP Apps and long-running Tasks.

Libraries in production use

The README notes these libraries underpin projects including the GitHub Copilot coding agent and Semantic Kernel.

Advertisement
// ejecútalo

Ejecútalo tú mismo

  1. Clone the repository

    Clone the SDK repo and enter its directory to explore samples and source.

    git clone https://github.com/modelcontextprotocol/csharp-sdk.git
    cd csharp-sdk
  2. Add the NuGet package

    In your own .NET project, add the main package.

    dotnet add package ModelContextProtocol
  3. Build your first server

    Follow the linked Getting Started guide to register tools and run the server, then connect an MCP client.

    # see the Getting Started guide linked from the README for the exact sample code
// casos de uso

Qué puedes crear

Advertisement
// preguntas frecuentes

Preguntas frecuentes

Who maintains the C# MCP SDK?

The Model Context Protocol organization, in collaboration with Microsoft; it is the official C# SDK for MCP.

Is it free?

Yes — per the README's license section, the SDK is released under the Apache License 2.0.

Does it need a paid API key?

No. The SDK is a protocol library; any model costs depend on the host application you connect it to.

How does it compare to the TypeScript or Python MCP SDKs?

It implements the same protocol for the .NET ecosystem, with idiomatic hosting/DI integration and NuGet packaging, rather than npm or PyPI.

How do I get started?

Run `dotnet add package ModelContextProtocol` in your project and follow the Getting Started guide linked from the README.

// sigue explorando

Herramientas similares

Herramientas de desarrollo

java-sdk

The official Java SDK for building Model Context Protocol servers and clients.

★ 3,7k estrellasMIT
Ver la guía →
Herramientas de desarrollo

rust-sdk

rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

★ 4,0k estrellasNOASSERTION
Ver la guía →
Herramientas de desarrollo

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol tools - with authentication - in a few lines of code.

★ 12,0k estrellasMIT
Ver la guía →
Herramientas de desarrollo

inspector

MCPJam Inspector: chat with, inspect, debug, and evaluate MCP servers across clients and models.

★ 2,2k estrellasApache-2.0
Ver la guía →
Herramientas de desarrollo

unitree_sdk2

Unitree's official C++ SDK v2 for programming its robots, with CMake examples and installable library.

★ 1,4k estrellasBSD-3-Clause
Ver la guía →
Herramientas de desarrollo

mcporter

Call MCP servers from TypeScript or the CLI — MCP tools disguised as a simple TypeScript API.

★ 5,1k estrellasMIT
Ver la guía →
// alternativas

Alternativas en Herramientas de desarrollo

Los demás proyectos de Herramientas de desarrollo con más estrellas del catálogo de LibreAI: la lista realista de alternativas si csharp-sdk no es lo que buscas.

// más en devtools

Más en Herramientas de desarrollo

Proyectos de Herramientas de desarrollo cercanos en el catálogo, los más próximos en estrellas a csharp-sdk: sigue explorando a ambos lados.

Consigue csharp-sdk

Gratis y abierto: consigue el código fuente, dale una estrella al repositorio y empieza a crear.