Python MCP Server abstracting the official mermaid-cli for ease of use
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add mermaid-server-andrewginns -- npx @mermaid-js/mermaid-cli --version~/.codex/config.toml
[mcp_servers.mermaid-server-andrewginns]
command = "npx"
args = ["@mermaid-js/mermaid-cli", "--version"]
# codex mcp add mermaid-server-andrewginns -- npx @mermaid-js/mermaid-cli --version~/.cursor/mcp.json
{
"mcpServers": {
"mermaid-server-andrewginns": {
"command": "npx",
"args": [
"@mermaid-js/mermaid-cli",
"--version"
]
}
}
}.vscode/mcp.json
{
"servers": {
"mermaid-server-andrewginns": {
"type": "stdio",
"command": "npx",
"args": [
"@mermaid-js/mermaid-cli",
"--version"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mermaid-server-andrewginns": {
"command": "npx",
"args": [
"@mermaid-js/mermaid-cli",
"--version"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mermaid-server-andrewginns": {
"command": "npx",
"args": [
"@mermaid-js/mermaid-cli",
"--version"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"mermaid-server-andrewginns": {
"command": "npx",
"args": [
"@mermaid-js/mermaid-cli",
"--version"
]
}
}
}