MCP server for FlowSpec — exposes project specs to Claude Code
npm install flowspec-mcpMCP (Model Context Protocol) server for FlowSpec — exposes project specifications to Claude Code and other MCP-compatible AI tools.
Add to your ~/.claude.json:
``json`
{
"mcpServers": {
"flowspec": {
"command": "npx",
"args": ["-y", "flowspec-mcp"],
"env": {
"FLOWSPEC_MODE": "cloud",
"DATABASE_URL": "your-neon-connection-string",
"FLOWSPEC_USER_ID": "your-clerk-user-id"
}
}
}
}
`json`
{
"mcpServers": {
"flowspec": {
"command": "npx",
"args": ["-y", "flowspec-mcp"],
"env": {
"FLOWSPEC_MODE": "local"
}
}
}
}
Local mode connects to the FlowSpec desktop server at http://localhost:3456.
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| FLOWSPEC_MODE | No | cloud | cloud for direct Neon SQL, local for desktop server HTTP |DATABASE_URL
| | Cloud mode | — | Neon Postgres connection string |FLOWSPEC_USER_ID
| | Cloud mode | — | Clerk user ID — find yours at flowspec.app/account |FLOWSPEC_LOCAL_URL
| | No | http://localhost:3456 | Desktop server URL (local mode) |
— List all projects with names and dates — Get full YAML spec for a project (optimised for Claude Code) — Get raw canvas_state JSON — Search nodes by label across all projects — Get screen/region/element structure — Create a new project — Update project name or canvas state — Delete a project — Add a node (datapoint, component, transform, table) — Update node data or position — Remove a node and connected edges — Connect two nodes with an edge type — Remove an edge — Run orphan node and duplicate label analysis`bash`
npm install
npm run build
node dist/index.js
- MCP SDK pinned to 1.12.1` due to zod v4 compatibility constraints in later versions
- Node.js >= 18.0.0 required
MIT