Knapcode SampleMcpServer
A sample MCP server using the MCP C# SDK.
Install in
11 appsRun this in your terminal.
claude mcp add knapcode-samplemcpserver -- dnx [email protected] --yes mcp start
Add this to Claude Desktop's MCP settings file, then restart Claude Desktop.
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
Add this to Cline's MCP settings file, then restart Cline.
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
],
"disabled": false
}
}
}
Add this to Codex's config file.
[mcp_servers.knapcode-samplemcpserver]
command = "dnx"
args = ["[email protected]", "--yes", "mcp", "start"]
Select the button to add it to Cursor, or copy the link.
cursor://anysphere.cursor-deeplink/mcp/install?name=knapcode-samplemcpserver&config=eyJjb21tYW5kIjoiZG54IiwiYXJncyI6WyJLbmFwY29kZS5TYW1wbGVNY3BTZXJ2ZXJAMC4xMC4wLWJldGEuMTAiLCItLXllcyIsIm1jcCIsInN0YXJ0Il19
Add this to Cursor's MCP settings file, then restart Cursor.
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
Add this to Gemini CLI's MCP settings file, then restart Gemini CLI.
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
Select the button to add it to VS Code, or copy the link.
vscode:mcp/install?%7B%22name%22%3A%22knapcode-samplemcpserver%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22dnx%22%2C%22args%22%3A%5B%22Knapcode.SampleMcpServer%400.10.0-beta.10%22%2C%22--yes%22%2C%22mcp%22%2C%22start%22%5D%7D
Add this to VS Code's MCP settings file, then restart VS Code.
{
"servers": {
"knapcode-samplemcpserver": {
"type": "stdio",
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
Add this to Windsurf's MCP settings file, then restart Windsurf.
{
"mcpServers": {
"knapcode-samplemcpserver": {
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
Add this to Zed's MCP settings file, then restart Zed.
{
"context_servers": {
"knapcode-samplemcpserver": {
"source": "custom",
"command": "dnx",
"args": [
"[email protected]",
"--yes",
"mcp",
"start"
]
}
}
}
A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
Written by Joobi from the project's own listing. See the source page
No tool list published
This server has not published the tools it offers. They appear here after the next scan that can read them.
Follow this listing's changes (Atom feed)