Description

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

Installation

npx -y mcp-dotnet-samples
npm install mcp-dotnet-samples
git clone https://github.com/microsoft/mcp-dotnet-samples

Claude Desktop Configuration

Add this configuration to your Claude Desktop config file to enable this MCP server:

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json

Config file location: %APPDATA%\Claude\claude_desktop_config.json

Config file location: ~/.config/Claude/claude_desktop_config.json

claude_desktop_config.json
{
  "mcpServers": {
    "mcp-net-samples": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-dotnet-samples"
      ]
    }
  }
}