Loomal

Knapcode.SampleMcpServer

MCP server by github.com/joelverhagen/knapcode.samplemcpserver

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

0 starsnuget: Knapcode.SampleMcpServer

About Knapcode.SampleMcpServer

Knapcode.SampleMcpServer is an MCP (Model Context Protocol) server published by joelverhagen in the official MCP registry, listed under Weather Services on Loomal. A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.

It ships as a NuGet package (Knapcode.SampleMcpServer), so any MCP client that can launch a local process can run it.

Development happens in the open at github.com/joelverhagen/knapcode.samplemcpserver.

Use Knapcode.SampleMcpServer with your agent

Claude Code · one command
claude mcp add knapcode-samplemcpserver -- dnx Knapcode.SampleMcpServer --yes
Claude Desktop, Cursor & other MCP clients · config
{
  "mcpServers": {
    "knapcode-samplemcpserver": {
      "command": "dnx",
      "args": [
        "Knapcode.SampleMcpServer",
        "--yes"
      ]
    }
  }
}
nugetKnapcode.SampleMcpServer

Frequently asked questions

What is Knapcode.SampleMcpServer?
Knapcode.SampleMcpServer is an MCP (Model Context Protocol) server by joelverhagen in the Weather Services category. A sample MCP server using the MCP C# SDK. Generates random numbers and random weather.
How do I connect Knapcode.SampleMcpServer to Claude, Cursor, or another MCP client?
Install Knapcode.SampleMcpServer from its nuget package (Knapcode.SampleMcpServer) and register it under "mcpServers" in your client's MCP configuration — for example claude_desktop_config.json or Cursor's mcp.json — then restart the client.
Is Knapcode.SampleMcpServer open source?
Yes — the source code is public at github.com/joelverhagen/knapcode.samplemcpserver.
Can AI agents pay to use Knapcode.SampleMcpServer?
Not yet through Loomal — Knapcode.SampleMcpServer is listed as a free directory entry. If its maintainer verifies ownership, they can set per-call USDC pricing that agents pay over x402, with settlement on Base.

Listing data from the official MCP registry and GitHub, refreshed periodically. Not affiliated with the maintainer unless claimed. Maintain Knapcode.SampleMcpServer? Claim this listing free by verifying GitHub ownership, or contact us.