archflow-mcp

v0.9.9
archflow-mcp Checked 57 minutes ago Published 2 days ago

MCP server for ArchFlow: lets AI assistants (Claude and other MCP clients) build isometric architecture diagrams

MCP server for ArchFlow, the free isometric diagram editor. It lets AI assistants (Claude Desktop, Claude Code and other MCP clients) build and change ArchFlow diagrams: nodes with 177 icons, coloured zones, labelled connectors and texts, laid out automatically on the isometric grid. Describe a system in plain words. The assistant builds the diagram, saves it where ArchFlow keeps its diagrams, and you open it in *My diagrams*. ~~~bash claude mcp add archflow --scope user -e ARCHFLOW_URL=http://localhost:9500 -- npx -y archflow-mcp@latest ~~~

Summary extracted from the README.

archflow-mcp

MCP server for ArchFlow, the free isometric diagram editor. It lets AI assistants (Claude Desktop, Claude Code and other MCP clients) build and change ArchFlow diagrams: nodes with 177 icons, coloured zones, labelled connectors and texts, laid out automatically on the isometric grid.

Describe a system in plain words. The assistant builds the diagram, saves it where ArchFlow keeps its diagrams, and you open it in My diagrams.

Setup

Requires Node.js 18+.

Claude Code

claude mcp add archflow --scope user -e ARCHFLOW_URL=http://localhost:9500 -- npx -y archflow-mcp@latest

Claude Desktop: Settings → Developer → Edit Config:

{
  "mcpServers": {
    "archflow": {
      "command": "npx",
      "args": ["-y", "archflow-mcp@latest"],
      "env": { "ARCHFLOW_URL": "http://localhost:9500" }
    }
  }
}

Where diagrams go

Variable Meaning
ARCHFLOW_URL Address of ArchFlow running in Docker, e.g. http://localhost:9500 (server storage)
ARCHFLOW_DIR A folder of diagram files
(neither) Documents/ArchFlow, the folder of the ArchFlow desktop app
ARCHFLOW_TOKEN Access token, for ArchFlow instances that require one

Over HTTP, e.g. on a server next to ArchFlow: MCP_TOKEN=… archflow-mcp --http --port 3002. Clients send Authorization: Bearer <token>. The ArchFlow Docker image has this built in: set MCP_TOKEN for the container and connect to http://your-server:9500/mcp.

Tools

list_icons, list_diagrams, get_diagram, build_diagram, add_nodes, update_node, remove_node, add_connectors, remove_connector, add_zone, remove_zone, add_text, rename_diagram, export_json.

Every diagram is validated with ArchFlow's own rules before it is saved. Mistakes such as an unknown icon go back to the assistant with suggestions.

Full guide with examples: docs/mcp.md (Polski).

License

MIT