ModelContextProtocol 1.1.0
Prefix Reserveddotnet add package ModelContextProtocol --version 1.1.0
NuGet\Install-Package ModelContextProtocol -Version 1.1.0
<PackageReference Include="ModelContextProtocol" Version="1.1.0" />
<PackageVersion Include="ModelContextProtocol" Version="1.1.0" />
<PackageReference Include="ModelContextProtocol" />
paket add ModelContextProtocol --version 1.1.0
#r "nuget: ModelContextProtocol, 1.1.0"
#:package ModelContextProtocol@1.1.0
#addin nuget:?package=ModelContextProtocol&version=1.1.0
#tool nuget:?package=ModelContextProtocol&version=1.1.0
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 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:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- ModelContextProtocol.Core (>= 1.1.0)
-
net10.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- ModelContextProtocol.Core (>= 1.1.0)
-
net8.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- ModelContextProtocol.Core (>= 1.1.0)
-
net9.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.3)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.3)
- ModelContextProtocol.Core (>= 1.1.0)
NuGet packages (128)
Showing the top 5 NuGet packages that depend on ModelContextProtocol:
| Package | Downloads |
|---|---|
|
ModelContextProtocol.AspNetCore
ASP.NET Core extensions for the C# Model Context Protocol (MCP) SDK. |
|
|
BotSharp.Core
Open source LLM application framework to build scalable, flexible and robust AI system. |
|
|
Senparc.Weixin.AspNet
微信 SDK - Senparc.Weixin.AspNet 模块 Senparc.Weixin SDK 开源项目: https://github.com/JeffreySu/WeiXinMPSDK |
|
|
Volo.Abp.Cli.Core
Package Description |
|
|
Microsoft.Debugging.Platform.DbgX
Wraps DbgEng in a managed Task Asynchronous Pattern (e.g. async/await) so that consumers of this library do not need to be aware of the oddities of the dbgeng threading model. It creates a child process to host the engine out of process (using EngHost.exe) to allow native 32/64 bit debugging of binaries. |
GitHub repositories (41)
Showing the top 20 popular GitHub repositories that depend on ModelContextProtocol:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
|
DearVa/Everywhere
Context-aware AI assistant for your desktop. Ready to respond intelligently, seamlessly integrating multiple LLMs and MCP tools.
|
|
|
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
|
|
|
microsoft/mcp
Catalog of official Microsoft MCP (Model Context Protocol) server implementations for AI-powered data access and tool integration
|
|
|
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
|
|
|
awaescher/OllamaSharp
The easiest way to use Ollama in .NET
|
|
|
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
|
|
|
IvanMurzak/Unity-MCP
AI-powered bridge connecting LLMs and advanced AI agents to the Unity Editor via the Model Context Protocol (MCP). Chat with AI to generate code, debug errors, and automate game development tasks directly within your project.
|
|
|
Azure/azure-mcp
The Azure MCP Server, bringing the power of Azure to your agents.
|
|
|
iioter/iotgateway
An industrial IoTGateway with B/S architecture that enables bidirectional communication between industrial devices (southbound connections) and IoT platforms (northbound connections). It supports numerous industrial protocols, and can connect to various IoT cloud platforms.
|
|
|
tryAGI/LangChain
C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
|
|
|
getcellm/cellm
Use LLMs in Excel formulas
|
|
|
mixcore/mix.core
🚀 A future-proof enterprise web CMS supporting both headless and decoupled approaches. Build any type of app with customizable APIs on ASP.NET Core/.NET Core. Completely open-source and designed for flexibility. Since 2018.
|
|
|
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
|
|
|
lofcz/LLMTornado
The .NET library to build AI agents with 30+ built-in connectors.
|
|
|
CervantesSec/cervantes
Cervantes is an open-source, collaborative platform designed specifically for pentesters and red teams. It serves as a comprehensive management tool, streamlining the organization of projects, clients, vulnerabilities, and reports in a single, centralized location.
|
|
|
junkai-li/NetCoreKevin
基于NET搭建-AI知识库智能体-现代化Saas企业级前后端分离架构:前端Vue3、IDS4单点登录、多缓存、自动任务、分布式、一库多租户、日志、授权和鉴权、CAP集成事件、SignalR、领域事件、ESL、MCP协议服务、IOC模块化注入、Cors、Quartz自动任务、多短信集成、AI、AgentFramework智能体、AISemanticKernel集成、RAG检索增强、OCR识别、API多版本、单元测试、RabbitMQ、代码生成器、AI知识库、AI联网搜索
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 0 | 3/6/2026 |
| 1.0.0 | 97,781 | 2/25/2026 |
| 1.0.0-rc.1 | 3,108 | 2/24/2026 |
| 0.9.0-preview.2 | 11,903 | 2/21/2026 |
| 0.9.0-preview.1 | 7,777 | 2/20/2026 |
| 0.8.0-preview.1 | 187,919 | 2/5/2026 |
| 0.7.0-preview.1 | 96,226 | 1/28/2026 |
| 0.6.0-preview.1 | 137,965 | 1/14/2026 |
| 0.5.0-preview.1 | 255,923 | 12/5/2025 |
| 0.4.1-preview.1 | 93,250 | 11/25/2025 |
| 0.4.0-preview.3 | 984,042 | 10/20/2025 |
| 0.4.0-preview.2 | 211,428 | 10/8/2025 |
| 0.4.0-preview.1 | 153,294 | 9/25/2025 |
| 0.3.0-preview.4 | 671,174 | 8/20/2025 |
| 0.3.0-preview.3 | 442,092 | 7/16/2025 |
| 0.3.0-preview.2 | 154,412 | 7/3/2025 |
| 0.3.0-preview.1 | 178,784 | 6/20/2025 |
| 0.2.0-preview.3 | 184,901 | 6/3/2025 |
| 0.2.0-preview.2 | 94,439 | 5/29/2025 |