Python MCP Server abstracting the official mermaid-cli for ease of use
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
]
}
}
}