Overview
McpDotNet is a project that provides client and server implementations for the MCP (Microsoft Communication Protocol) in the .NET framework.
To use McpDotNet, clone the repository from GitHub, and follow the setup instructions in the README file to integrate the MCP client and server into your .NET applications.
- Full implementation of MCP for .NET applications - Easy integration with existing .NET projects - Support for both client and server functionalities
- Developing applications that require communication over the MCP protocol.
- Implementing server-side logic for handling MCP requests.
- Creating client applications that interact with MCP servers.
Add to your AI client
Use these steps to connect McpDotNet in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcpdotnet-tokreutz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcpdotnet-tokreutz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcpdotnet-tokreutz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcpdotnet-tokreutz": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcpdotnet-tokreutz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcpdotnet-tokreutz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcpdotnet-tokreutz"
]
}
}
}FAQ
Is McpDotNet compatible with all .NET versions?
McpDotNet is designed to work with .NET Core and .NET Framework, but compatibility may vary based on specific versions.
What license does McpDotNet use?
McpDotNet is licensed under the MIT license, allowing for free use and modification.
How can I contribute to McpDotNet?
Contributions are welcome! Please check the contribution guidelines in the repository.