Mermaid Studio
Allows AI to create, edit, update, delete, list, and export diagrams using the Mermaid syntax, supporting 9 diagram types (flowchart, sequence, class, state, ER, gantt, pie, swimlane, mindmap).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mermaid Studiodraw a sequence diagram for user authentication"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mermaid Studio
Let AI create diagrams for you. Mermaid Studio is a diagram editor with a built-in MCP server — connect Claude, Cursor, or any MCP-compatible AI and say "draw me a flowchart".
Why MCP?
Traditional diagram tools require manual drawing. With MCP, AI tools can create, edit, and manage diagrams programmatically through a standard protocol:
You: "Draw a sequence diagram for OAuth2 login flow"
AI: creates the diagram → you see it instantly in your browser
You: "Add error handling paths"
AI: updates the same diagram → preview refreshes in real-timeThe AI gets 7 tools (create_diagram, update_diagram, get_diagram, list_diagrams, delete_diagram, export_diagram, get_templates) and can work with all 9 Mermaid diagram types.
Connect in 30 Seconds
After registration, click the MCP button in the top bar to get a ready-to-paste config:
Claude Desktop / Claude Code / Cursor:
{
"mcpServers": {
"mermaid-studio": {
"url": "https://your-worker.workers.dev/mcp",
"headers": {
"Authorization": "Bearer your-token"
}
}
}
}Each user gets their own workspace — diagrams are isolated, and the AI only sees yours.
Note for China / restricted network users: Cloudflare Workers (
*.workers.dev) may not be directly accessible in certain regions. You will need a VPN/proxy tool with enhanced/global mode that intercepts all system traffic (e.g., Surge Enhanced Mode, Clash TUN mode), as most proxy tools only cover browser traffic and not CLI/Node.js processes.
Related MCP server: Flowchart MCP
Features
MCP server — AI creates/edits diagrams via standard protocol, real-time sync to browser
Live editor — CodeMirror + Mermaid.js preview, 9 diagram types
Multi-user — registration, workspace isolation, token-based auth
Real-time — WebSocket updates via Durable Objects
Version history — 50 versions per diagram, one-click restore
Export — SVG / PNG / batch export
Dark mode
Cloudflare Turnstile — optional anti-bot protection for registration
Deploy Your Own
1. Create D1 Database
npm install
npx wrangler login
npx wrangler d1 create mermaid-studio-dbCopy the returned database_id into wrangler.toml.
2. Run Migrations
npm run db:migrate3. Deploy
npm run deploy4. (Optional) Add Turnstile Protection
Create a Turnstile widget at Cloudflare Dashboard, then:
# Add site key to wrangler.toml [vars]
# TURNSTILE_SITE_KEY = "your-site-key"
# Set secret key
npx wrangler secret put TURNSTILE_SECRET_KEYWithout Turnstile, registration works without human verification.
Local Development
npm run db:migrate:local
npm run devMCP Tools
Tool | Description | Parameters |
| Create a new diagram |
|
| Update existing diagram |
|
| Get diagram details |
|
| List all diagrams | - |
| Delete a diagram |
|
| Export with URL |
|
| Get starter templates | - |
Supported diagram types: flowchart, sequence, class, state, ER, gantt, pie, swimlane, mindmap
Architecture
workers/src/
index.js Hono router, API routes, auth middleware
diagrams.js D1 CRUD for diagrams
users.js User auth (PBKDF2 hashing)
mcp.js MCP protocol handler (JSON-RPC)
websocket.js Durable Object for real-time sync
templates.js 9 diagram templates
public/ SPA frontend (CodeMirror + Mermaid.js)
migrations/ D1 database schemaStack: Cloudflare Workers + D1 + Durable Objects + Hono
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that enables AI assistants to programmatically create and manage flowcharts, ERDs, and swimlane diagrams. It provides tools for manipulating diagram structures, performing auto-layouts, and exporting to Mermaid or Markdown formats.Last updated20MIT
- Alicense-qualityBmaintenanceEnables AI assistants to create, edit, and export flowcharts through a local web-based editor with visual drag-and-drop, real-time sync, and 14 MCP tools for full node/edge CRUD.Last updated2Apache 2.0
- AlicenseAqualityBmaintenancediagramzu-mcp lets an AI client (Claude, Cursor, ChatGPT, etc.) author Mermaid diagrams in a shared workspace that a team can read, comment on, embed, and present at a clean URL — rather than just generating a one-off diagram. Hosted endpoint https://mcp.diagramzu.ai/mcp or local npx -y @diagramzu/mcp. Also listed in the official MCP registry as ai.diagramzu/mcp.Last updated14201MIT
- Flicense-qualityDmaintenanceEnables AI agents to create, modify, and analyze diagrams using Draw.io (Diagrams.net) through MCP commands.Last updated
Related MCP Connectors
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
MCP-native collaborative markdown editor with real-time AI document editing
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/wangyaominde/mermaid-studio'
If you have feedback or need assistance with the MCP directory API, please join our Discord server