Search docs

Templates

MCP Server

Generate a Model Context Protocol server scaffold.

Best for: exposing tools and data to Claude Desktop, Claude Code, or any MCP-compatible client.

Prompts:

text
? Choose extras (space to toggle, enter to confirm)
 ● ruff
 ● pytest
 ○ github-actions
 ○ pre-commit
 ○ mypy

MCP Server uses a fixed stack — the official mcp Python SDK's FastMCP — so there's no framework or provider prompt, the same as RAG System.

Available extras: ruff pytest github-actions pre-commit mypy

Run it:

bash
cd my-mcp-server
uv run python -m src.server
# Waits on stdio for an MCP client to connect

Then add it to your MCP client's config — see the generated project's own README.md for the exact JSON snippet.

Captured project structure#

These paths come from the verified Spawn v1.2.0 mcp capture (11 files). This recorded run used --no-git --no-uv; selecting setup tools can add files.

text
ledger-mcp/
├── .env.example
├── .gitignore
├── .spawn/
│   └── meta.json
├── AGENTS.md
├── CHANGELOG.md
├── LICENSE
├── README.md
├── src/
│   ├── __init__.py
│   └── server.py
└── tests/
    ├── __init__.py
    └── test_server.py
ESC