Mermaid AI Playground — MCP Server
Connect to generate, fix, enhance, and render any Mermaid diagram via the Model Context Protocol.
Quick Connect
https://www.mermaid.help/api/mcphttps://www.mermaid.help/api/mcp/healthUse with ChatGPT Apps
Open ChatGPT → Explore GPTs → Create a GPT
Or open an existing GPT you want to enhance with diagrams.
Go to Configure → Actions → Create new action
Or add an MCP server under the "Tools" section if available.
Add the MCP endpoint URL
https://www.mermaid.help/api/mcpSet Authentication to "None"
The server is open and requires no API keys.
Save and start using!
Ask your GPT to "generate a flowchart of the user login flow" and it will create and render diagrams.
Use with MCP Clients
Claude Desktop / Cursor / Windsurf
Add this to your MCP client config file:
{
"mcpServers": {
"mermaid-ai-playground": {
"url": "https://www.mermaid.help/api/mcp"
}
}
}cURL Test
curl -X POST https://www.mermaid.help/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'Available Tools
generate_mermaid_diagramGenerate Mermaid code from a natural-language prompt
Params: prompt, diagramType?, complexity?
fix_mermaid_diagramFix broken Mermaid syntax while preserving intent
Params: code, error?
enhance_mermaid_diagramImprove structure and readability of existing diagrams
Params: code, goal?
render_mermaid_diagramRender Mermaid code in an interactive accessible widget
Params: mermaidCode, title?, diagramType?
list_diagram_capabilitiesList supported features and recommended workflow
Params: none