MCP Directory
Back

MCPSharp

by afrise · C# · ★ 366

MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.

#ai#aifunctions#dotnet#dotnet-standard#mcp#mcp-client#mcp-server#microsoft-extensions-ai#model-context-protocol#sdk#semantic-kernel

Install

git clone https://github.com/afrise/MCPSharp.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcpsharp": {
      "command": "npx",
      "args": [
        "-y",
        "github:afrise/MCPSharp"
      ]
    }
  }
}

From the README

[](https://github.com/afrise/MCPSharp/actions/workflows/build.yml) [](https://www.nuget.org/packages/MCPSharp) [](https://www.nuget.org/packages/MCPSharp) MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models. With MCPSharp, you can: - Create MCP-compliant tools and functions that AI models can discover and use - Connect directly to existing MCP servers from C# code with an easy to use client - Expose your .NET methods as MCP endpoints with simple attributes - Handle MCP protocol detai…
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 developer tools servers