NestDaddy

Knapcode.Samplemcpserver

io.github.joelverhagen/Knapcode.SampleMcpServer ยท v0.7.0-beta

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

Connect Runs on your machine

Terminal
claude mcp add knapcode-samplemcpserver -e WEATHER_CHOICES=<WEATHER_CHOICES> -- dnx Knapcode.SampleMcpServer --yes
claude_desktop_config.json
{
  "mcpServers": {
    "knapcode-samplemcpserver": {
      "command": "dnx",
      "args": [
        "Knapcode.SampleMcpServer",
        "--yes"
      ],
      "env": {
        "WEATHER_CHOICES": "<WEATHER_CHOICES>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "knapcode-samplemcpserver": {
      "command": "dnx",
      "args": [
        "Knapcode.SampleMcpServer",
        "--yes"
      ],
      "env": {
        "WEATHER_CHOICES": "<WEATHER_CHOICES>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "knapcode-samplemcpserver": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Knapcode.SampleMcpServer",
        "--yes"
      ],
      "env": {
        "WEATHER_CHOICES": "<WEATHER_CHOICES>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
WEATHER_CHOICES
Optional

Details

Package[email protected] (NUGET, stdio)
First published12 Sep 2025
Last updated12 Sep 2025
Registry nameio.github.joelverhagen/Knapcode.SampleMcpServer

More developer tools servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.