mermaid-mcp-server
A server that converts Mermaid diagrams into PNG images or SVG files.
The Mermaid MCP Server utilizes the Model Context Protocol to enable AI assistants and applications to generate visual diagrams from textual descriptions formatted in Mermaid markdown syntax. It supports various diagram themes and allows customization of background colors, ensuring flexibility in visual representation. The server employs Puppeteer for high-quality rendering, providing options to return images or save them directly to disk, along with detailed error handling for a smooth user experience.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mermaid-mcp-server": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mermaid-mcp-server"
]
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.
Permissions