![]() |
VOOZH | about |
dotnet add package ModelContextProtocol.Core --version 1.4.0
NuGet\Install-Package ModelContextProtocol.Core -Version 1.4.0
<PackageReference Include="ModelContextProtocol.Core" Version="1.4.0" />
<PackageVersion Include="ModelContextProtocol.Core" Version="1.4.0" />Directory.Packages.props
<PackageReference Include="ModelContextProtocol.Core" />Project file
paket add ModelContextProtocol.Core --version 1.4.0
#r "nuget: ModelContextProtocol.Core, 1.4.0"
#:package ModelContextProtocol.Core@1.4.0
#addin nuget:?package=ModelContextProtocol.Core&version=1.4.0Install as a Cake Addin
#tool nuget:?package=ModelContextProtocol.Core&version=1.4.0Install as a Cake Tool
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.
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.
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.
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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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. |
|
|
Spice86
Reverse engineer and rewrite real mode dos programs |
|
|
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. |
|
|
Spice86.Core
Reverse engineer and rewrite real mode dos programs |
|
|
Microsoft.Agents.A365.Tooling
Microsoft Agent 365 Tooling SDK, providing functionality to work with Agent 365 Tools. |
Showing the top 10 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
|
|
|
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
|
|
|
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!
|
|
|
notargs/UnityNaturalMCP
UnityNaturalMCP is an MCP server implementation for Unity that aims for a "natural" user experience.
|
|
|
bingbing-gui/dotnet-agent-playbook
一个面向 .NET + AI Agent 开发的实践型仓库,涵盖 Web、云原生与微服务场景,聚焦智能应用的工程化落地。
|
|
|
netclaw-dev/netclaw
Simple, secure, reliable agents. Self-hosted. Open source. Built with .NET.
|
|
|
sdcb/csharp-runner
fast, secure c# runner
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.0 | 203,939 | 6/4/2026 |
| 1.3.0 | 1,228,364 | 5/8/2026 |
| 1.2.0 | 1,626,025 | 3/27/2026 |
| 1.1.0 | 945,130 | 3/6/2026 |
| 1.0.0 | 3,682,465 | 2/25/2026 |
| 1.0.0-rc.1 | 12,956 | 2/24/2026 |
| 0.9.0-preview.2 | 32,655 | 2/21/2026 |
| 0.9.0-preview.1 | 22,864 | 2/20/2026 |
| 0.8.0-preview.1 | 538,630 | 2/5/2026 |
| 0.7.0-preview.1 | 311,256 | 1/28/2026 |
| 0.6.0-preview.1 | 277,229 | 1/14/2026 |
| 0.5.0-preview.1 | 425,340 | 12/5/2025 |
| 0.4.1-preview.1 | 168,239 | 11/25/2025 |
| 0.4.0-preview.3 | 1,354,544 | 10/20/2025 |
| 0.4.0-preview.2 | 308,990 | 10/8/2025 |
| 0.4.0-preview.1 | 224,245 | 9/25/2025 |
| 0.3.0-preview.4 | 864,006 | 8/20/2025 |
| 0.3.0-preview.3 | 1,092,670 | 7/16/2025 |
| 0.3.0-preview.2 | 206,754 | 7/3/2025 |