csharp-sdk

csharp-sdk

The official C# SDK for Model Context Protocol, enabling .NET applications to interact with MCP servers and clients.

MCPDevOpen source
Type
MCP
Transport
http
Open source
Yes
GitHub Stars
★ 4.3k
Source
mcp-github

Overview

This C# SDK is the official implementation of the Model Context Protocol (MCP), designed to allow .NET applications, services, and libraries to implement and communicate with MCP clients and servers. It provides a core feature package, a main package, and an ASP.NET Core support package, suitable for projects with varying requirements. With this SDK, developers can easily integrate MCP functionality into .NET projects, providing richer context information for AI. Ideal for developers who need to use the MCP protocol within a .NET environment.

Capabilities

  • Provides MCP client and server APIs
  • Supports dependency injection and hosting extensions
  • Includes HTTP server support
  • Supports identity assertion authorization flow

Use cases

Integrate MCP client into .NET applicationsBuild MCP servers to deliver context dataImplement cross-application authentication and authorization

Setup

Requires: .NET 环境NuGet 包管理器
Install via NuGet: `dotnet add package ModelContextProtocol` or `Install-Package ModelContextProtocol`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I get started with the C# SDK?

Refer to the getting started guide in the documentation.

Does the SDK support ASP.NET Core?

Yes, there is a dedicated ASP.NET Core support package.

Related skills