ModelContextProtocol 2.4.0

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:

Showing the top 20 packages that depend on ModelContextProtocol.

Packages Downloads
Aspire.Hosting.PostgreSQL
PostgreSQL® support for Aspire.
53
Aspire.Hosting.PostgreSQL
PostgreSQL® support for Aspire.
52
Aspire.Hosting
Core abstractions for the Aspire application model.
51
Aspire.Hosting
Core abstractions for the Aspire application model.
50
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
47
Aspire.Hosting.PostgreSQL
PostgreSQL® support for Aspire.
43
Aspire.Hosting.MongoDB
MongoDB support for Aspire.
43
Aspire.Hosting
Core abstractions for the Aspire application model.
42
Aspire.Hosting
Core abstractions for the Aspire application model.
41
Aspire.Hosting.PostgreSQL
PostgreSQL® support for Aspire.
41
Aspire.Hosting.Nats
NATS support for Aspire.
40
Aspire.Hosting.MongoDB
MongoDB support for Aspire.
40
Aspire.Hosting.SqlServer
Microsoft SQL Server support for Aspire.
40
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
39
Aspire.Hosting.AppHost
Core library and MSBuild logic for Aspire AppHost projects.
38
Aspire.Hosting.Nats
NATS support for Aspire.
38

Version Downloads Last updated
2.4.0 1 11/08/2026
2.3.1 4 11/03/2026
2.3.0 11 10/21/2026
2.2.0 32 08/13/2026
2.1.0 26 08/06/2026
2.0.0 25 08/01/2026
2.0.0-rc.2 27 08/02/2026
2.0.0-rc.1 29 07/25/2026
2.0.0-preview.3 33 07/15/2026
2.0.0-preview.2 30 07/11/2026
2.0.0-preview.1 29 06/27/2026
1.4.2 2 11/03/2026
1.4.1 33 07/09/2026
1.4.0 42 06/06/2026
1.3.0 42 05/08/2026
1.2.0 45 03/28/2026
1.1.0 42 03/24/2026
1.0.0 37 03/24/2026
1.0.0-rc.1 37 03/24/2026
0.9.0-preview.2 46 03/24/2026
0.9.0-preview.1 35 03/24/2026
0.8.0-preview.1 36 03/24/2026
0.7.0-preview.1 38 03/24/2026
0.6.0-preview.1 39 03/24/2026
0.5.0-preview.1 33 03/24/2026
0.4.1-preview.1 36 03/24/2026
0.4.0-preview.3 37 03/24/2026
0.4.0-preview.2 40 03/24/2026
0.4.0-preview.1 41 03/24/2026
0.3.0-preview.4 41 03/24/2026
0.3.0-preview.3 36 03/24/2026
0.3.0-preview.2 32 03/24/2026
0.3.0-preview.1 36 03/24/2026
0.2.0-preview.3 29 03/24/2026
0.2.0-preview.2 42 03/24/2026
0.2.0-preview.1 44 03/24/2026
0.1.0-preview.14 44 03/24/2026
0.1.0-preview.13 40 03/24/2026
0.1.0-preview.12 42 03/24/2026
0.1.0-preview.11 39 03/24/2026
0.1.0-preview.10 40 03/24/2026
0.1.0-preview.9 36 03/24/2026
0.1.0-preview.8 35 03/24/2026
0.1.0-preview.7 33 03/24/2026
0.1.0-preview.6 41 03/24/2026
0.1.0-preview.5 32 03/24/2026
0.1.0-preview.4 42 03/24/2026
0.1.0-preview.3 38 03/24/2026
0.1.0-preview.2 46 03/24/2026