ModelContextProtocol.Core 1.1.0

Prefix Reserved
dotnet add package ModelContextProtocol.Core --version 1.1.0
                    
NuGet\Install-Package ModelContextProtocol.Core -Version 1.1.0
                    
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="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModelContextProtocol.Core" Version="1.1.0" />
                    
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 1.1.0
                    
#r "nuget: ModelContextProtocol.Core, 1.1.0"
                    
#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@1.1.0
                    
#: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=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=ModelContextProtocol.Core&version=1.1.0
                    
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.

Packages

This SDK consists of three main packages:

  • ModelContextProtocol.Core NuGet version - For projects that only need to use the client or low-level server APIs and want the minimum number of dependencies.

  • ModelContextProtocol NuGet version - 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 NuGet version - 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 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 (20)

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.

Google_GenerativeAI.Tools

Provides a set of tools and concrete implementations to facilitate function calling with the Google_GenerativeAI SDK, including support for code generation.

CompuTec.Core2.AE

Package Description

NTG.Adk.Implementations

NTG.Adk Implementations - Concrete implementations and adapters (Layer 3 of A.D.D V3 architecture)

CrestApps.OrchardCore.AI.Mcp.Core

CrestApps enhances the capabilities of Orchard Core, a modular and multi-tenant application framework built on ASP.NET Core. By leveraging Orchard Core's powerful foundation for creating dynamic, data-driven websites and applications, CrestApps introduces additional features and tools that empower developers to build more flexible, scalable, and feature-rich solutions. Core services project for the AI MCP module.

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on ModelContextProtocol.Core:

Repository Stars
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
PowerShell/AIShell
An interactive shell to work with AI-powered assistance providers
notargs/UnityNaturalMCP
UnityNaturalMCP is an MCP server implementation for Unity that aims for a "natural" user experience.
bingbing-gui/dotnet-platform
这是一个围绕 新一代 .NET 应用模型 的实践型仓库,覆盖 Web、云原生、AI、微服务等多种应用形态。
sdcb/csharp-runner
fast, secure c# runner
Version Downloads Last Updated
1.1.0 0 3/6/2026
1.0.0 100,942 2/25/2026
1.0.0-rc.1 3,108 2/24/2026
0.9.0-preview.2 11,988 2/21/2026
0.9.0-preview.1 8,226 2/20/2026
0.8.0-preview.1 188,435 2/5/2026
0.7.0-preview.1 97,421 1/28/2026
0.6.0-preview.1 143,575 1/14/2026
0.5.0-preview.1 261,185 12/5/2025
0.4.1-preview.1 94,502 11/25/2025
0.4.0-preview.3 994,490 10/20/2025
0.4.0-preview.2 212,828 10/8/2025
0.4.0-preview.1 152,647 9/25/2025
0.3.0-preview.4 684,504 8/20/2025
0.3.0-preview.3 733,711 7/16/2025
0.3.0-preview.2 161,466 7/3/2025
0.3.0-preview.1 180,757 6/20/2025
0.2.0-preview.3 192,325 6/3/2025