A comprehensive set of samples of creating and using MCP servers and clients with .NET
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp-dotnet-samples": {
"command": "npx",
"args": [
"-y",
"microsoft/mcp-dotnet-samples"
]
}
}
}
Run in terminal:
claude mcp add mcp-dotnet-samples npx -y microsoft/mcp-dotnet-samples
Add to .cursor/mcp.json:
{
"mcpServers": {
"mcp-dotnet-samples": {
"command": "npx",
"args": [
"-y",
"microsoft/mcp-dotnet-samples"
]
}
}
}