Knapcode.SampleMcpServer for Cursor
io.github.joelverhagen/knapcode.samplemcpserver
A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
client:Cursor
transport:stdio
runtime:nuget
Install Knapcode.SampleMcpServer in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"knapcode.samplemcpserver": {
"type": "stdio",
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
],
"env": {
"WEATHER_CHOICES": "<WEATHER_CHOICES>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs