mermaid-chart-mcp
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
MermaidChart MCP Server
Section titled “MermaidChart MCP Server”URL: https://mcp.mermaidchart.com/mcp Server: Mermaid Server v1.0.0 Date: 2026-06-26
Protocol
Section titled “Protocol”- Transport: HTTP POST with SSE (Server-Sent Events) responses
- Session: Created via
initializecall, returnsmcp-session-idheader (UUID) - Subsequent calls require
Mcp-Session-Idheader - Accept header must be
application/json, text/event-stream - Server supports MCP protocol version 2024-11-05
Capabilities
Section titled “Capabilities”toolswithlistChangedsupport
Tools (17 total)
Section titled “Tools (17 total)”Mermaid Diagram Tools (5)
Section titled “Mermaid Diagram Tools (5)”| Tool | Access | Description |
|---|---|---|
validate_and_render_mermaid_diagram |
RO | Render Mermaid diagrams, returns image or error details |
get_diagram_title |
RO | Returns LLM prompts for title generation (see Notes) |
get_diagram_summary |
RO | Returns LLM prompts for summary generation (see Notes) |
search_mermaid_icons |
RO | Search AWS/Azure/GCP/FontAwesome icons for diagrams |
get_mermaid_syntax_document |
RO | Get full syntax docs for a specific diagram type |
GitHub Tools (12)
Section titled “GitHub Tools (12)”| Tool | Access | Description |
|---|---|---|
list_repos |
RO | List repos for user or org |
list_mermaid_files |
RO | Find .mmd files in a repo |
read_mermaid_file |
RO | Read a .mmd file from a repo |
create_pr |
RW | Create branch + commit + PR with file changes |
push_file |
RW | Create/update a single file on a branch |
list_pulls |
RO | List pull requests |
list_branches |
RO | List or resolve branch names |
list_issues |
RO | List issues |
create_issue |
RW | Create an issue |
get_issue_comments |
RO | Get comments on an issue |
get_pull_comments |
RO | Get PR comments (thread + inline) |
list_tools |
RO | List all available MCP servers and tools |
Key Observations
Section titled “Key Observations”- Every tool requires a
clientNameparameter (analytics tracking) - GitHub tools require
Github-Tokenheader orGITHUB_TOKENenv var - The server combines Mermaid diagram generation with GitHub repo operations
- The
validate_and_render_mermaid_diagramtool is the primary rendering entry point - Icon search supports AWS, Azure, GCP, and FontAwesome icon sets
- Server returns base64-encoded PNG images in responses
- Server provides preview/edit links for generated diagrams (shortened URLs)
get_diagram_titleandget_diagram_summarydo not generate titles/summaries themselves. They return system/user prompts for the client LLM to perform the generation. The rendered response includes the diagram content + the prompts.validate_and_render_mermaid_diagramis the only Mermaid tool that performs actual work (rendering to PNG).- Every tool requires a
clientNameparameter — used for analytics tracking by MermaidChart. - GitHub tools require a
Github-TokenHTTP header (orGITHUB_TOKEN/GH_TOKENenv var on the server side). - Server is a third-party public service at MermaidChart.com — not part of the satware AG/IPADP ecosystem.
Session Flow
Section titled “Session Flow”- Initialize session with
initializemethod - Send
notifications/initializednotification - Use
tools/listto discover available tools - Call tools with
tools/callmethod
Example: Rendering a Flowchart
Section titled “Example: Rendering a Flowchart”# Initialize sessionRAW=$(curl -s -D - -X POST 'https://mcp.mermaidchart.com/mcp' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"hermes","version":"1.0"}}}')
SESSION_ID=$(echo "$RAW" | grep -i '^mcp-session-id:' | sed 's/^mcp-session-id: *//;s/\r$//')
# Send initialized notificationcurl -s -X POST 'https://mcp.mermaidchart.com/mcp' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -H "Mcp-Session-Id: $SESSION_ID" \ -d '{"jsonrpc":"2.0","method":"notifications/initialized"}' > /dev/null
# Render a diagramcurl -s -X POST 'https://mcp.mermaidchart.com/mcp' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json, text/event-stream' \ -H "Mcp-Session-Id: $SESSION_ID" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"validate_and_render_mermaid_diagram","arguments":{"prompt":"Simple flowchart showing a decision process","mermaidCode":"flowchart TD\n A[Start] --> B{Is it working?}\n B -->|Yes| C[Great!]\n B -->|No| D[Fix it]\n D --> B","diagramType":"flowchart","clientName":"hermes","useUrlShortener":true}}}'