// devtools · modelcontextprotocol/csharp-sdk

csharp-sdk

csharp-sdk — проект с открытым исходным кодом из категории «Инструменты разработчика» от modelcontextprotocol (modelcontextprotocol/csharp-sdk на GitHub). У него 4 571 звезда на GitHub и 820 форков, он распространяется по лицензии Apache-2.0 и последний раз обновлялся на GitHub 5 октября 2026.

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

★ 4,6 тыс. звёзд⑂ 820 форковApache-2.0обновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
modelcontextprotocol/csharp-sdk
Звёзды GitHub
4 571
Форки
820
Лицензия
Apache-2.0
Последнее обновление на GitHub
5 октября 2026
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  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.

// возможности

Почему его любят

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
// запустите сами

Запустите сами

  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
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

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.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

java-sdk

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

★ 3,7 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

rust-sdk

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

★ 4,0 тыс. звёздNOASSERTION
Смотреть руководство →
Инструменты разработчика

fastapi_mcp

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

★ 12,0 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

inspector

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

★ 2,2 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

unitree_sdk2

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

★ 1,4 тыс. звёздBSD-3-Clause
Смотреть руководство →
Инструменты разработчика

mcporter

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

★ 5,1 тыс. звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если csharp-sdk вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к csharp-sdk — продолжайте изучать полку по обе стороны от него.

Получить csharp-sdk

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.