blair812-mcp-demo

v0.1.1
blair812-mcp-demo Checked 4 days ago Published 26 days ago

A demo MCP server built with the official Python SDK (mcp 2.x), exposing an add tool and a greeting resource template.

A demo Model Context Protocol server built with the official Python SDK (mcp 2.x, MCPServer). It exposes a simple add tool and a greeting resource template — a minimal, working starting point for your own MCP server. The easiest way to run it is with uvx, which fetches and runs the package in an isolated environment — no manual install needed. Add this to your MCP client configuration (Qoder, Claude Desktop, etc.):

Summary extracted from the README.

blair812-mcp-demo

A demo Model Context Protocol server built with the official Python SDK (mcp 2.x, MCPServer). It exposes a simple add tool and a greeting resource template — a minimal, working starting point for your own MCP server.

Requirements

  • Python >=3.13
  • uv (recommended) or pip

Usage

The easiest way to run it is with uvx, which fetches and runs the package in an isolated environment — no manual install needed.

Add this to your MCP client configuration (Qoder, Claude Desktop, etc.):

{
  "mcpServers": {
    "blair812-mcp-demo": {
      "command": "uvx",
      "args": ["blair812-mcp-demo"]
    }
  }
}

Alternatively, install it and point your client at the blair812-mcp-demo command:

pip install blair812-mcp-demo
{
  "mcpServers": {
    "blair812-mcp-demo": {
      "command": "blair812-mcp-demo"
    }
  }
}

The server speaks MCP over stdio.

What's inside

Type Name Description
Tool add(a: int, b: int) -> int Returns the sum of a and b.
Resource template greeting://{name} Returns Hello, {name}!.

Local development

Clone the project, then use the MCP Inspector to debug it interactively:

uv sync
uv run mcp dev src/mcp_demo/server.py

This opens the MCP Inspector in your browser so you can list and call tools and read resources.

License

Demo project — use it freely as a template for your own MCP servers.