MCP Directory
Back

mcp-dotnet-samples

by microsoft · C# · ★ 178

A comprehensive set of samples of creating and using MCP servers and clients with .NET

#dotnet#mcp#mcp-client#mcp-server

Install

git clone https://github.com/microsoft/mcp-dotnet-samples.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-dotnet-samples": {
      "command": "npx",
      "args": [
        "-y",
        "github:microsoft/mcp-dotnet-samples"
      ]
    }
  }
}

From the README

[](https://discord.com/invite/ByRwuEEgH4) [](https://aka.ms/foundry/forum) Welcome to the Model Context Protocol (MCP) .NET Samples repository! This collection of samples demonstrates how to leverage the Model Context Protocol in .NET applications. MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of MCP like a USB-C port for AI applications - it provides a standardized way to connect AI models to different data sources and tools. With MCP, you can: - Utilize pre-built integrations that your LLM can directly plug into - Flexib…
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