ModelContextProtocol.Core
2.4.1
Prefix Reserved
dotnet add package ModelContextProtocol.Core --version 2.4.1
NuGet\Install-Package ModelContextProtocol.Core -Version 2.4.1
<PackageReference Include="ModelContextProtocol.Core" Version="2.4.1" />
<PackageVersion Include="ModelContextProtocol.Core" Version="2.4.1" />
<PackageReference Include="ModelContextProtocol.Core" />
paket add ModelContextProtocol.Core --version 2.4.1
#r "nuget: ModelContextProtocol.Core, 2.4.1"
#:package ModelContextProtocol.Core@2.4.1
#addin nuget:?package=ModelContextProtocol.Core&version=2.4.1
#tool nuget:?package=ModelContextProtocol.Core&version=2.4.1
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.
See the release notes for what's new in this version.
Packages
The SDK packages are:
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.ModelContextProtocol.Extensions.Apps
- MCP Apps extension for building interactive UI applications that render inside MCP hosts.
ModelContextProtocol.Extensions.Skills
- MCP Skills extension for serving and consuming Agent Skills with verifiable file manifests.
ModelContextProtocol.Extensions.Tasks
- MCP Tasks extension for running long-running tool invocations asynchronously with status polling and input requests.
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.Bcl.Memory (>= 10.0.14)
- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- System.Collections.Immutable (>= 10.0.14)
- System.Diagnostics.DiagnosticSource (>= 10.0.14)
- System.IO.Pipelines (>= 10.0.14)
- System.Net.ServerSentEvents (>= 10.0.14)
- System.Text.Json (>= 10.0.14)
- System.Threading.Channels (>= 10.0.14)
-
net10.0
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
-
net8.0
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- System.IO.Pipelines (>= 10.0.14)
- System.Net.ServerSentEvents (>= 10.0.14)
-
net9.0
- Microsoft.Extensions.AI.Abstractions (>= 10.11.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- System.Net.ServerSentEvents (>= 10.0.14)
NuGet packages (176)
Showing the top 5 NuGet packages that depend on ModelContextProtocol.Core:
| Package | Downloads |
|---|---|
|
ModelContextProtocol
.NET SDK for the Model Context Protocol (MCP) with hosting and dependency injection extensions. |
|
|
Meraki.Api
Meraki API |
|
|
DevExpress.AIIntegration.Reporting.Common
Target Platform/Framework: Cross-Platform DevExpress Product Libraries Used: DevExpress AI-powered Extensions for OpenAI, Azure, Ollama, Semantic Kernel (https://www.devexpress.com/ai) Available in the following DevExpress Subscription(s): Universal, DXperience, WinForms, ASP.NET & Blazor (includes DevExtreme), WPF, Reporting |
|
|
DevExpress.AIIntegration.Web.Reporting.Common
Target Platform/Framework: Cross-Platform DevExpress Product Libraries Used: DevExpress AI-powered Extensions for OpenAI, Azure, Ollama, Semantic Kernel (https://www.devexpress.com/ai) Available in the following DevExpress Subscription(s): Universal, DXperience, ASP.NET & Blazor (includes DevExtreme), Reporting |
|
|
Spice86
Reverse engineer and rewrite real mode dos programs |
GitHub repositories (14)
Showing the top 14 popular GitHub repositories that depend on ModelContextProtocol.Core:
| Repository | Stars |
|---|---|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
|
|
|
notinferred/keypaste
Open-source local secrets manager on a KeePass (KDBX) file: run apps without .env files, and AI agents get a secret only when you approve it or a rule you set allows it.
|
|
|
Zaneris/passenger
An open-source IDE for C# and .NET, built with Avalonia, for Windows, macOS and Linux: a Roslyn-powered editor, its own debugger with Hot Reload, a CPU and memory profiler, XAML tooling for Avalonia and WPF, and an MCP server for coding agents.
|
|
|
OpenRakis/Spice86
Reverse engineer and rewrite real mode DOS programs!
|
|
|
sdcb/chats
A powerful and flexible frontend & AI gateway for large language models, supporting 21+ mainstream AI model providers.
|
|
|
PowerShell/AIShell
An interactive shell to work with AI-powered assistance providers
|
|
|
BDFFZI/Alife
一款专为赛博生命方向打造的AIAgent框架。跨平台;极低token开销;全功能插件化,热插拔自主修改,官方支持桌宠QQ陪玩等常见需求;永久唯一会话,稳定常驻记忆,人设自我成长;特制函数调用,并行流式嵌套,响应快上限高;完整公开上下文工具调用,随时编辑,调试方便;赶快来玩!
|
|
|
netclaw-dev/netclaw
Simple, secure, reliable agents. Self-hosted. Open source. Built with .NET.
|
|
|
gunpal5/Google_GenerativeAI
Most complete C# .Net SDK for Google Generative AI and Vertex AI (Google Gemini), featuring function calling, easiest JSON Mode, multi-modal live streaming, chat sessions, and more!
|
|
|
bingbing-gui/dotnet-agent-playbook
一个面向 .NET + AI Agent 开发的实践型仓库,涵盖 Web、云原生与微服务场景,聚焦智能应用的工程化落地。
|
|
|
notargs/UnityNaturalMCP
UnityNaturalMCP is an MCP server implementation for Unity that aims for a "natural" user experience.
|
|
|
dvdstelt/Composa
A .NET port of Compositor for Mac
|
|
|
sdcb/csharp-runner
fast, secure c# runner
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.1 | 3,482 | 12/4/2026 |
| 2.4.0 | 2,210,882 | 11/7/2026 |
| 2.3.1 | 509,301 | 11/3/2026 |
| 2.3.0 | 1,707,006 | 10/20/2026 |
| 2.2.0 | 9,952,580 | 8/13/2026 |
| 2.1.0 | 995,465 | 8/5/2026 |
| 2.0.0 | 1,375,245 | 7/28/2026 |
| 2.0.0-rc.2 | 7,539 | 7/28/2026 |
| 2.0.0-rc.1 | 18,312 | 7/25/2026 |
| 2.0.0-preview.3 | 39,188 | 7/15/2026 |
| 2.0.0-preview.2 | 29,354 | 7/9/2026 |
| 2.0.0-preview.1 | 96,952 | 6/26/2026 |
| 1.4.2 | 117,152 | 11/3/2026 |
| 1.4.1 | 8,958,171 | 7/9/2026 |
| 1.4.0 | 3,328,398 | 6/4/2026 |
| 1.3.0 | 12,654,436 | 5/8/2026 |
| 1.2.0 | 4,474,873 | 3/27/2026 |
| 1.1.0 | 2,240,641 | 3/6/2026 |
| 1.0.0 | 7,244,620 | 2/25/2026 |
| 1.0.0-rc.1 | 21,575 | 2/24/2026 |