Mermaid turns text into diagrams: flowcharts, sequence diagrams, ER diagrams, state machines and architecture maps. Agents already write Mermaid well, but they often write syntax that doesn't render. The official Mermaid MCP server, from the team behind Mermaid Chart, checks the diagram, renders it and returns an SVG, a PNG and a link to edit it.
Point the agent at your code and it draws what's there: how a request flows through the services, which tables reference which, what states an order goes through. Signed in, it also saves diagrams to your Mermaid projects and updates them later.
Validate and render
Checks the syntax and returns SVG, PNG and a playground link
Every diagram type
Flowcharts, sequence, ER, state, class and architecture diagrams
Your projects
Lists, creates and updates diagrams in your Mermaid account
Summaries
Gives a diagram a title and a plain-words summary
Prompts to try
When to use
- You document how a system works and want diagrams that stay in sync with the code
- You explain a flow in a PR, a spec or an onboarding doc
- You want the diagram checked and rendered, not just Mermaid text that may break
When not to use
- You want hand-drawn sketches and wireframes: use Excalidraw
- You design UI screens, not system diagrams: use Paper or Penpot
- You can't sign in to a hosted service: use the local mcp-mermaid server below
Alternatives
| MCP | Pick it when |
|---|---|
| You want a local server with no account that exports PNG, SVG or files | |
| You want an editable hand-drawn diagram rather than Mermaid code |
Watch out
- Every tool call needs sign-in, even rendering. Use the local alternative if that's a problem.
- Large diagrams get hard to read. Ask for one diagram per flow instead of the whole system at once.
Install
Terminal
Loading editor...
claude mcp add --transport http mermaid https://mcp.mermaid.ai/mcp
Then run
/mcp and sign in with your Mermaid account. A free Basic account is enough. Cursor and VS Code take the same URL as an HTTP server.More in Top MCP servers for development.
