Sparda turns Express/FastAPI apps into MCP servers with one command
Sparda is an open-source tool that scans an existing Express or FastAPI app via AST, injects an MCP router, and connects it to Claude Desktop or Claude Code — all in one command with no OpenAPI spec, account, or hosted server required.
Score breakdown
Sparda removes the need to write and maintain a separate MCP server, OpenAPI spec, or hosting setup in order to give AI coding assistants like Claude live access to a running application's routes and data.
- 01Two commands — `npx sparda-mcp init` and `npx sparda-mcp dev` — are all that's needed to expose a running app as MCP tools.
- 02Route scanning uses AST (abstract syntax tree) analysis; no OpenAPI spec is required.
- 03Supports Express (Node.js) and FastAPI (Python) apps.
Sparda addresses the gap between AI coding assistants — which can read and refactor source files — and a running application's live state, such as real users, orders, or production errors. The project argues that giving an AI real API access traditionally requires writing an OpenAPI spec, building and hosting a dedicated MCP server, securing it, and keeping it synchronized with every route change — work it describes as "days of glue code, per project, forever drifting."
The `init` command also prints a ready-to-paste configuration block for `claude_desktop_config.json`, pre-filled with the app's name and absolute path.
The tool eliminates that setup with two commands: `npx sparda-mcp init` scans the app's routes using AST analysis, generates a marked `/mcp` router, injects it into the existing Express or FastAPI app alongside a backup, and produces a `sparda.json` config file. `npx sparda-mcp dev` then starts the bridge. The `init` command also prints a ready-to-paste configuration block for `claude_desktop_config.json`, pre-filled with the app's name and absolute path. Claude Code connects to the same bridge. The entire injection is reversible — `npx sparda-mcp remove` restores the original code byte-for-byte. The repository states that every promise is backed by a test in CI.
Key facts
- 01Two commands — `npx sparda-mcp init` and `npx sparda-mcp dev` — are all that's needed to expose a running app as MCP tools.
- 02Route scanning uses AST (abstract syntax tree) analysis; no OpenAPI spec is required.
- 03Supports Express (Node.js) and FastAPI (Python) apps.
- 04No account, API key, or separately hosted server is needed.
- 05`init` injects a `/mcp` router into the existing app and writes a `sparda.json` config file, with a backup taken before injection.
- 06The injection is fully reversible: `npx sparda-mcp remove` restores the original code byte-for-byte.
- 07Outputs a ready-to-paste `claude_desktop_config.json` block; Claude Code connects to the same bridge.
Topics
Summary and scoring are generated automatically from the original article. We always link back to the publisher and never republish images or paywalled content. Last processed Jun 17, 2026 · 10:39 UTC. How this works →