OpenFlowKit
Lets your AI agent draw and edit architecture diagrams on a live canvas or in diagram files, and map a codebase.
931 stars on GitHubby OpenFlowKitLicense MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add openflowkit -- npx -y openflowkit mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Draw the architecture of this repository.
Make the boxes I selected red and add a cache in front of the API.
What it is
OpenFlowKit is a free, open-source diagram app that works from text, canvas or an AI agent. The MCP server lets your agent create a diagram, restyle it and take a screenshot to check its own work, with each change as one undo step. It can also edit diagram files in your repository and map a codebase.
What it can do
create_diagram: draw a diagram from text or Mermaidupdate_diagram: change an existing diagramadd_shape,style,move,delete: edit what is on the canvasget_document,get_diagram,list_pages: read the diagramsscreenshot: let the agent see its own resultexport: SVG, PNG, PDF, JSON or animated SVGdiscover_architecture,drift_report: map a repository and compare it to a diagram
When to use
- βΊWhen you want your agent to draw the architecture of your repository
- βΊWhen you want to turn a Mermaid diagram from your README into an editable one
- βΊWhen you want to check whether a saved diagram still matches the code
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
drawioHelps your agent make draw.io diagrams, such as flowcharts, architecture maps, and mockups, as editable .drawio files that can also be exported as PNG, SVG, or PDF.excalidrawCreates hand-drawn style diagrams such as flowcharts, architecture maps, and sequence diagrams as Excalidraw files you can open and edit.mermaid-diagram-specialistHelps your agent create Mermaid diagrams such as flowcharts, sequence diagrams, entity relationship diagrams and architecture views for documentation.Frequently asked questions
Is it free and open source?
Yes. It is described as free, open source (MIT), local-first, and needing no account.
Which agents work with it?
Claude Code, Cursor, VS Code, Claude Desktop, Windsurf and Codex run it locally. Chat apps such as claude.ai and ChatGPT can use a hosted connector at https://mcp.openflowkit.com/mcp.
What diagram types does it support?
Architecture, sequence, flowchart, ERD, state, class, mind map, git graph, chart and wireframe.
Can I undo what the agent does?
Yes. Every agent change on the live canvas is one undo step.
Can it work without the app open?
Yes. With no app open, the same tools edit .openflow.json files in your repo.
How many tools does it have?
29: sixteen editor operations and thirteen for files and repositories.
If it does not work
- βΊRestart the agent after adding the server, then click Connect agent in the app.
- βΊCheck that Node.js 20.11 or newer is installed.
- βΊSee app.openflowkit.com/#/connect for step-by-step instructions for each client.
5 new skills a week. 1 minute to read.