freshcrate
Home > MCP Servers > csharp-sdk

csharp-sdk

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

Description

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

README

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 in the conceptual documentation 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:

License

This project is licensed under the Apache License 2.0.

Release History

VersionChangesUrgencyDate
v1.2.0This release improves stateless HTTP transport defaults and documentation with a **breaking behavioral change** that we are considering as a server reliability fix and therefore not bumping the major version with this release. **Legacy SSE endpoints are now disabled by default** with a new `HttpServerTransportOptions.EnableLegacySse` property available to opt back into responding to the SSE endpoints; the property is marked as an `[Obsolete]` warning as we expect to remove this property in a futMedium3/27/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

mcp-dotnet-samplesA comprehensive set of samples of creating and using MCP servers and clients with .NETmain@2026-04-20
mcp-for-beginnersThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed formain@2026-04-17
dnSpy-MCPProvide static .NET assembly analysis through decompilation, IL disassembly, metadata inspection, and protection checks using dnSpyEx over MCP stdio.main@2026-04-15
unity-mcpA Unity MCP server that allows MCP clients like Claude Desktop or Cursor to perform Unity Editor actions.v2.6.9
ResxMcpNo descriptionmaster@2026-04-21