flowgraf
Flowgraf is an MCP server that lets AI agents create, retrieve, and edit architecture diagrams from plain English descriptions, returning shareable canvas links, SVGs, and Mermaid strings.
create_diagram: Generate an architecture diagram by providing nodes, edges, and groups. Supports cloud providers (AWS, GCP, Azure), Kubernetes, SaaS, and generic/flowchart node types. Returns a live editable canvas URL, SVG, and Mermaid representation. No layout authoring needed — the server computes all geometry automatically.
get_diagram: Fetch the current graph structure (nodes, edges, groups, and their IDs) and version number. Required before editing to reference valid IDs and avoid stale-version conflicts.
edit_diagram: Apply a list of operations to an existing diagram with automatic re-layout. Operations include:
Add, remove, or update nodes, edges, or groups
Move nodes between groups
Insert a new node between two existing connected nodes
Set layout direction and spacing
Set theme (light, dark, blueprint) and background style
Rename the diagram title
Editing uses optimistic concurrency control via baseVersion — a STALE_VERSION error prompts a re-fetch and retry to prevent conflicting edits.
flowgraf-mcp
Create and edit clean, editable architecture diagrams from your AI agent — in plain English.
Flowgraf turns a description of a system into a clean, auto-laid-out architecture diagram — then hands back a link to a live canvas you can keep editing, by chat or by hand. This package is the stdio proxy for MCP clients that speak stdio: it forwards to Flowgraf's hosted MCP endpoint. No API key, no LLM cost to you — your agent authors the diagram, Flowgraf lays it out and renders it.
npx -y flowgraf-mcpWhy
Drawing architecture diagrams by hand is slow and rots the moment the system changes. With Flowgraf, you describe the system once and get a diagram you can edit semantically — "add a Redis cache between the API and the database" — and the edges re-route themselves.
Related MCP server: Agentled MCP Server
Tools
The proxy forwards Flowgraf's tool list verbatim, so it always mirrors what the server exposes. Today that's three tools:
Tool | What it does |
| Turn a graph (nodes + edges + groups) into a diagram → returns an SVG, a Mermaid string, and a |
| Apply operations to an existing diagram (e.g. insert a cache between two nodes) — it re-wires and re-lays-out automatically |
| Fetch a diagram's current graph + version |
Install
Requires Node.js 18+.
Claude Code
Recommended — point Claude Code straight at the hosted remote endpoint (no local process to run):
claude mcp add --transport http flowgraf https://flowgraf.in/api/mcp…or run it through this stdio proxy:
claude mcp add flowgraf npx flowgraf-mcp
Cursor / Windsurf (stdio)
Add to your MCP config (~/.cursor/mcp.json for Cursor):
{
"mcpServers": {
"flowgraf": {
"command": "npx",
"args": ["-y", "flowgraf-mcp"]
}
}
}OpenCode (stdio)
Add this to ~/.config/opencode/opencode.json for all projects, or to opencode.json
in a project root:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"flowgraf": {
"type": "local",
"command": ["npx", "-y", "flowgraf-mcp"],
"enabled": true
}
}
}Fully quit and restart OpenCode, then verify the server before your first prompt:
opencode mcp listExpected status: flowgraf connected. Start opencode in the configured project and paste
one of the prompts below. This path is verified through the local stdio proxy. Direct remote
Streamable HTTP configuration is not yet verified for Flowgraf in OpenCode.
Anything else
npx -y flowgraf-mcpThe proxy speaks the Model Context Protocol over stdio and forwards to the hosted API.
How it works
flowgraf-mcp is a thin, transparent stdio proxy. It has zero business logic: tools/list and tools/call are forwarded verbatim to Flowgraf's hosted MCP endpoint (/api/mcp). Whatever the remote returns is handed straight back to your client.
That means two things:
The tools you see are always exactly what Flowgraf ships — nothing to keep in sync here.
You can skip the proxy entirely and connect any MCP client directly to
https://flowgraf.in/api/mcpover HTTP (this is the recommended mode for Claude Code).
Example
"Create an architecture diagram: a user hits an API gateway in a VPC, which talks to a Postgres database."
→
create_diagramreturns an SVG and a link likehttps://flowgraf.in/d/abc123. Open it to edit on the canvas.
"Add a Redis cache between the API and the database."
→
edit_diagraminserts the cache and re-routes the edge automatically — no manual cleanup.
Configuration
By default the proxy targets Flowgraf's hosted endpoint. Override it (e.g. for local development) with an environment variable:
Variable | Meaning |
| Full endpoint URL, e.g. |
| Base URL; |
Copyable prompts
Simple
Create an architecture diagram of a web app where users connect to a load balancer, which routes requests to two app servers backed by a Postgres database. Return the editable Flowgraf canvas link.
Medium
Create an architecture diagram of a RAG pipeline: a user query reaches an API, the API creates an embedding, searches a vector database, sends the retrieved context to an LLM, and returns the answer. Group ingestion separately with object storage, a document processor, and the same vector database. Return the editable Flowgraf canvas link.
Edit an existing diagram
Using the Flowgraf diagram from the previous response, insert a message queue between the API and the workers, preserve the existing components, and return the updated canvas link.
Links
Website: https://flowgraf.in
MCP endpoint:
https://flowgraf.in/api/mcp
License
MIT
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhishek-genailytics/flowgraf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server