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
claude mcp add knapcode-samplemcpserver -e WEATHER_CHOICES=<WEATHER_CHOICES> -- dnx Knapcode.SampleMcpServer --yes
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
],
"env": {
"WEATHER_CHOICES": "<WEATHER_CHOICES>"
}
}
}
}
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
],
"env": {
"WEATHER_CHOICES": "<WEATHER_CHOICES>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
WEATHER_CHOICESOptional |
Details
| Package | [email protected] (NUGET, stdio) |
| First published | 12 Sep 2025 |
| Last updated | 12 Sep 2025 |
| Registry name | io.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.
