flowspec-mcp
v5.5.1
Published
MCP server for FlowSpec — exposes project specs to Claude Code
Downloads
1,734
Maintainers
Readme
flowspec-mcp
MCP (Model Context Protocol) server for FlowSpec — exposes project specifications to Claude Code and other MCP-compatible AI tools.
Quick Start
Add to your ~/.claude.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"
}
}
}
}Local Mode (with FlowSpec Desktop)
{
"mcpServers": {
"flowspec": {
"command": "npx",
"args": ["-y", "flowspec-mcp"],
"env": {
"FLOWSPEC_MODE": "local"
}
}
}
}Local mode connects to the FlowSpec desktop server at http://localhost:3456.
Environment Variables
| 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) |
Available Tools
Read Tools
flowspec_list_projects— List all projects with names and datesflowspec_get_json— Get full JSON spec for a project (optimised for Claude Code)flowspec_get_project— Get raw canvas_state JSONflowspec_search_nodes— Search nodes by label across all projectsflowspec_get_screen_context— Get screen/region/element structure
Write Tools
flowspec_create_project— Create a new projectflowspec_update_project— Update project name or canvas stateflowspec_delete_project— Delete a projectflowspec_create_node— Add a node (datapoint, component, transform, table)flowspec_update_node— Update node data or positionflowspec_delete_node— Remove a node and connected edgesflowspec_create_edge— Connect two nodes with an edge typeflowspec_delete_edge— Remove an edgeflowspec_analyse_project— Run orphan node and duplicate label analysis
Development
npm install
npm run build
node dist/index.jsNotes
- MCP SDK pinned to
1.12.1due to zod v4 compatibility constraints in later versions - Node.js >= 18.0.0 required
License
MIT
