ModelContextProtocol.AspNetCore
1.2.0
Prefix Reserved
dotnet add package ModelContextProtocol.AspNetCore --version 1.2.0
NuGet\Install-Package ModelContextProtocol.AspNetCore -Version 1.2.0
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="1.2.0" />
<PackageVersion Include="ModelContextProtocol.AspNetCore" Version="1.2.0" />
<PackageReference Include="ModelContextProtocol.AspNetCore" />
paket add ModelContextProtocol.AspNetCore --version 1.2.0
#r "nuget: ModelContextProtocol.AspNetCore, 1.2.0"
#:package ModelContextProtocol.AspNetCore@1.2.0
#addin nuget:?package=ModelContextProtocol.AspNetCore&version=1.2.0
#tool nuget:?package=ModelContextProtocol.AspNetCore&version=1.2.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 | 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. |
-
net10.0
- ModelContextProtocol (>= 1.2.0)
-
net8.0
- ModelContextProtocol (>= 1.2.0)
-
net9.0
- ModelContextProtocol (>= 1.2.0)
NuGet packages (73)
Showing the top 5 NuGet packages that depend on ModelContextProtocol.AspNetCore:
| Package | Downloads |
|---|---|
|
Senparc.Weixin.AspNet
微信 SDK - Senparc.Weixin.AspNet 模块 Senparc.Weixin SDK 开源项目: https://github.com/JeffreySu/WeiXinMPSDK |
|
|
PostSharp.Engineering.BuildTools
A multi-repo build orchestrator used by PostSharp Technologies for its products and for Metalama. |
|
|
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. |
|
|
Rsk.AdminUI
Admin user interface for Duende IdentityServer. To purchase a license or get a demo license, contact sales@identityserver.com. |
|
|
Senparc.Ncf.XncfBase
Senparc.Ncf.XncfBase |
GitHub repositories (46)
Showing the top 20 popular GitHub repositories that depend on ModelContextProtocol.AspNetCore:
| Repository | Stars |
|---|---|
|
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
|
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
AIDotNet/OpenDeepWiki
OpenDeepWiki is the open-source version of the DeepWiki project, aiming to provide a powerful knowledge management and collaboration platform. The project is mainly developed using C# and TypeScript, supporting modular design, and is easy to expand and customize.
|
|
|
microsoft/mcp
Catalog of official Microsoft MCP (Model Context Protocol) server implementations for AI-powered data access and tool integration
|
|
|
SciSharp/BotSharp
AI Multi-Agent Framework in .NET
|
|
|
OPCFoundation/UA-.NETStandard
OPC Unified Architecture .NET Standard
|
|
|
MCCTeam/Minecraft-Console-Client
Lightweight console for Minecraft chat and automated scripts. Currently supports up to Minecraft 26.1
|
|
|
DuendeSoftware/products
The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core
|
|
|
Azure/data-api-builder
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.
|
|
|
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
|
|
|
IoTSharp/IoTSharp
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
|
|
|
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.
|
|
|
Implem/Implem.Pleasanter
Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
|
|
|
OpenRakis/Spice86
Reverse engineer and rewrite real mode DOS programs!
|
|
|
microsoft/mcp-gateway
MCP Gateway is a reverse proxy and management layer for MCP servers, enabling scalable, session-aware stateful routing and lifecycle management of MCP servers in Kubernetes environments.
|
|
|
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
|
|
|
havit/Havit.Blazor
Free Bootstrap 5 components for ASP.NET Blazor + optional enterprise-level stack for Blazor development (gRPC code-first, layered architecture, localization, auth, ...)
|
|
|
microsoft/copilot-camp
Hands-on labs for extending Microsoft 365 Copilot and building custom engine agents
|
|
|
foxminchan/BookWorm
The practical implementation of Aspire using Microservices, AI-Agents
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.0 | 430,327 | 3/27/2026 |
| 1.1.0 | 355,427 | 3/6/2026 |
| 1.0.0 | 418,210 | 2/25/2026 |
| 1.0.0-rc.1 | 8,064 | 2/24/2026 |
| 0.9.0-preview.2 | 17,169 | 2/21/2026 |
| 0.9.0-preview.1 | 10,715 | 2/20/2026 |
| 0.8.0-preview.1 | 315,810 | 2/5/2026 |
| 0.7.0-preview.1 | 97,844 | 1/28/2026 |
| 0.6.0-preview.1 | 162,031 | 1/14/2026 |
| 0.5.0-preview.1 | 213,937 | 12/5/2025 |
| 0.4.1-preview.1 | 86,025 | 11/25/2025 |
| 0.4.0-preview.3 | 805,813 | 10/20/2025 |
| 0.4.0-preview.2 | 216,772 | 10/8/2025 |
| 0.4.0-preview.1 | 131,080 | 9/25/2025 |
| 0.3.0-preview.4 | 537,852 | 8/20/2025 |
| 0.3.0-preview.3 | 297,060 | 7/16/2025 |
| 0.3.0-preview.2 | 56,484 | 7/3/2025 |
| 0.3.0-preview.1 | 121,643 | 6/20/2025 |
| 0.2.0-preview.3 | 130,812 | 6/3/2025 |