flowspec-mcp

flowspec-mcp

MCP server for FlowSpec that exposes project specifications to Claude Code and other AI tools.

Category
访问服务器

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 (v5.6.0 — 32 tools)

Set FLOWSPEC_TOOLS=core for 11 essential tools only. Default (all) loads all 32.

Read Tools

  • flowspec_list_projects — List all projects with names and dates
  • flowspec_get_json — Get full JSON spec for a project (optimised for Claude Code)
  • flowspec_get_project — Get raw canvas_state JSON
  • flowspec_search_nodes — Search nodes by label across all projects
  • flowspec_get_screen_context — Get screen/region/element structure

Write Tools

  • flowspec_create_project — Create a new project
  • flowspec_update_project — Update project name or canvas state
  • flowspec_delete_project — Delete a project
  • flowspec_clone_project — Clone a project for backup or branching
  • flowspec_create_node — Add a node (datapoint, component, transform, table, actor)
  • flowspec_update_node — Update node data or position
  • flowspec_delete_node — Remove a node and connected edges
  • flowspec_create_edge — Connect two nodes with an edge type
  • flowspec_update_edge — Update edge type, label, or handle positions
  • flowspec_delete_edge — Remove an edge
  • flowspec_analyse_project — Run orphan node and duplicate label analysis
  • flowspec_validate_project — Validate data flow semantics and type matching

Bulk / Import Tools

  • flowspec_import_json — Import a JSON spec (create/merge nodes, edges, screens)
  • flowspec_auto_layout — Auto-arrange nodes using dagre hierarchical layout

Screen & Region Tools

  • flowspec_upload_image — Upload a wireframe image and get its URL
  • flowspec_create_screen — Add a wireframe screen to a project
  • flowspec_update_screen — Update screen name or image properties
  • flowspec_delete_screen — Delete a screen and its regions
  • flowspec_add_region — Add an annotated region to a screen
  • flowspec_update_region — Update region position, size, or linked elements
  • flowspec_remove_region — Remove a region from a screen

Decision Tree Tools

  • flowspec_list_decision_trees — List decision trees for a project
  • flowspec_get_decision_tree — Get a decision tree with full node/edge structure
  • flowspec_delete_decision_tree — Delete a decision tree
  • flowspec_analyse_decision_tree — Analyse tree depth, outcomes, and issues

Boring Logic Board Tools

  • flowspec_get_logic_board — Get the logic board (input/output/process/decision canvas)
  • flowspec_upsert_logic_board — Save the logic board state for a project

Development

npm install
npm run build
node dist/index.js

Notes

  • MCP SDK pinned to 1.12.1 due to zod v4 compatibility constraints in later versions
  • Node.js >= 18.0.0 required

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选