MCP server
Knapcode SampleMcpServer
A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.7.0-beta
- Listing updated
- 4 days ago
About Knapcode SampleMcpServer
Knapcode SampleMcpServer is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add knapcode-samplemcpserver -- dnx Knapcode.SampleMcpServer --yesAdd to claude_desktop_config.json
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
]
}
}
}Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
]
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"knapcode-samplemcpserver": {
"type": "stdio",
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"Knapcode.SampleMcpServer",
"--yes"
]
}
}
}Configuration
WEATHER_CHOICES
Pricing
Open source
Knapcode SampleMcpServer FAQ
Is Knapcode SampleMcpServer free?
Yes. Knapcode SampleMcpServer is open source, so you can use and self-host it for free.
How do I add Knapcode SampleMcpServer to Claude Code?
Run this command in your terminal: claude mcp add knapcode-samplemcpserver -- dnx Knapcode.SampleMcpServer --yes