MCP Directory
Back

csharp-sdk

by modelcontextprotocol · C# · ★ 4,229

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

#csharp#dotnet#mcp#mcp-client#mcp-server#modelcontextprotocol

Install

git clone https://github.com/modelcontextprotocol/csharp-sdk.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "csharp-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "github:modelcontextprotocol/csharp-sdk"
      ]
    }
  }
}

From the README

[](https://www.nuget.org/packages/ModelContextProtocol) The official C# SDK for the [Model Context Protocol](https://modelcontextprotocol.io/), enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. Please visit the [API documentation](https://csharp.sdk.modelcontextprotocol.io/api/ModelContextProtocol.html) for more details on available functionality. This SDK consists of three main packages: - **[ModelContextProtocol.Core](https://www.nuget.org/packages/ModelContextProtocol.Core)** [](https://www.nuget.org/packages/ModelContextProtocol.…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related other servers