Knapcode Sample MCP Server
by joelverhagencom.joelverhagen.mcp/Knapcode.SampleMcpServerv0.10.0-beta.10
A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
context tax
queued
security
queued
cold start
queued
freshness
Stale9mo ago
Install Knapcode Sample MCP server
Install in Claude Code
claude mcp add knapcode-sample -- dnx Knapcode.SampleMcpServer --yes mcp startInstall in Cursor
{
"mcpServers": {
"knapcode-sample": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes",
"mcp",
"start"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"knapcode-sample": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes",
"mcp",
"start"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"knapcode-sample": {
"type": "stdio",
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes",
"mcp",
"start"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"knapcode-sample": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes",
"mcp",
"start"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| WEATHER_CHOICES | — | — |
Freshness
Stale — last maintenance signal 9mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-01-20 · 9mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2025-10-27 · 12mo ago · official registry · v0.10.0-beta.10
FAQ
›How do I install the Knapcode Sample MCP server in Claude Code?
Run: claude mcp add knapcode-sample -- dnx Knapcode.SampleMcpServer --yes mcp start. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Knapcode Sample require an API key?
No required environment variables are declared in its published metadata.
›Can I use Knapcode Sample as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Knapcode Sample in the official MCP registry?
Yes, as com.joelverhagen.mcp/Knapcode.SampleMcpServer.
Alternatives to Knapcode Sample
Other maps & location MCP servers.