Skip to content

Knapcode.SampleMcpServer for Cline

io.github.joelverhagen/knapcode.samplemcpserver

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

client:Cline transport:stdio runtime:nuget

Install Knapcode.SampleMcpServer in Cline

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json · windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json

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

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

Cline's MCP Servers pane edits this file for you if you would rather not find it. Cline docs

Knapcode.SampleMcpServer in other clients