Skip to content
Cursor

Knapcode.SampleMcpServer for Cursor

com.joelverhagen.mcp/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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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

Knapcode.SampleMcpServer in other clients