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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModelContextProtocol.Core" Version="2.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModelContextProtocol.Core" Version="2.4.1" />
                    
Directory.Packages.props
<PackageReference Include="ModelContextProtocol.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ModelContextProtocol.Core --version 2.4.1
                    
#r "nuget: ModelContextProtocol.Core, 2.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ModelContextProtocol.Core@2.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ModelContextProtocol.Core&version=2.4.1
                    
Install as a Cake Addin
#tool nuget:?package=ModelContextProtocol.Core&version=2.4.1
                    
Install as a Cake Tool

MCP C# SDK

NuGet version

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:

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 0 12/4/2026
2.4.0 2,142,625 11/7/2026
2.3.1 502,884 11/3/2026
2.3.0 1,688,499 10/20/2026
2.2.0 9,900,924 8/13/2026
2.1.0 991,286 8/5/2026
2.0.0 1,370,773 7/28/2026
2.0.0-rc.2 7,500 7/28/2026
2.0.0-rc.1 18,282 7/25/2026
2.0.0-preview.3 38,953 7/15/2026
2.0.0-preview.2 29,283 7/9/2026
2.0.0-preview.1 96,886 6/26/2026
1.4.2 113,878 11/3/2026
1.4.1 8,856,431 7/9/2026
1.4.0 3,321,400 6/4/2026
1.3.0 12,640,571 5/8/2026
1.2.0 4,462,983 3/27/2026
1.1.0 2,235,627 3/6/2026
1.0.0 7,237,282 2/25/2026
1.0.0-rc.1 21,557 2/24/2026
Loading failed