Mermaid MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HTTP_VERIFY | No | Verify SSL certificates (as needed) | |
| GITHUB_TOKEN | No | GitHub personal access token (recommended to avoid rate limits) | |
| PROJECT_ROOT | Yes | Local project root that the server is allowed to access (security boundary) | |
| KROKI_TIMEOUT | No | Kroki request timeout in seconds | 20 |
| KROKI_BASE_URL | Yes | The base URL for the Kroki API (e.g. https://kroki.io) | |
| MAX_FILE_CHARS | No | Max characters to read from a file (prevents huge reads) | 200000 |
| DIAGRAM_OUT_DIR | No | Where to save PNGs (must be inside PROJECT_ROOT) | diagrams |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_filesD | – |
| read_fileD | – |
| render_mermaidD | – |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| generate_mermaid_canonical | Strict unified prompt: generates Mermaid flowcharts using ONLY the canonical style mermaid://styles/blue-flowchart. Supports GitHub repositories, local projects, OR user-provided content. Always renders PNG via render_mermaid. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| blue_flowchart_style | Canonical blue Mermaid flowchart style |
Latest Blog Posts
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/GittyBurstein/mermaid-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server