Skip to content

Knapcode.SampleMcpServer for Zed

io.github.joelverhagen/knapcode.samplemcpserver

A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.

client:Zed transport:stdio runtime:nuget

Install Knapcode.SampleMcpServer in Zed

~/.config/zed/settings.json · windows: %APPDATA%\Zed\settings.json

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

{
  "context_servers": {
    "knapcode.samplemcpserver": {
      "command": "dnx",
      "args": [
        "Knapcode.SampleMcpServer",
        "--yes"
      ],
      "env": {
        "WEATHER_CHOICES": "<WEATHER_CHOICES>"
      }
    }
  }
}

Merge this into your existing settings object — do not replace the file. Zed docs

Knapcode.SampleMcpServer in other clients