M
Mermaid MCP
作者 @lioneltay
MCP server by lioneltay
创建于 3/24/2026
更新于 about 4 hours ago
README
Repository documentation and setup instructions
@lioneltay/mermaid-mcp
MCP server that renders Mermaid diagrams to PNG so AI agents can visually inspect them.
Install
Add the MCP server to Claude Code:
claude mcp add mermaid npx -y @lioneltay/mermaid-mcp
Or add it manually to your .mcp.json:
{
"mcpServers": {
"mermaid": {
"command": "npx",
"args": ["-y", "@lioneltay/mermaid-mcp"]
}
}
}
Claude Code Plugin
You can also install as a plugin to get the /diagram skill:
# 1. Add the marketplace
claude plugin marketplace add lioneltay/mermaid-mcp
# 2. Install the plugin
claude plugin install mermaid-mcp@mermaid-mcp
Note: There is a known issue where plugin MCP servers may not start correctly. If the MCP server fails, add it manually with
claude mcp addas shown above.
Tools
render
Renders Mermaid diagram code to a PNG image.
Input: code (string) — Mermaid diagram source
Returns: The rendered PNG image inline, plus a saved copy in $TMPDIR/mermaid-mcp/renders/.
License
MIT
快速设置
此服务器的安装指南
安装包 (如果需要)
npx @modelcontextprotocol/server-mermaid-mcp
Cursor 配置 (mcp.json)
{
"mcpServers": {
"lioneltay-mermaid-mcp": {
"command": "npx",
"args": [
"lioneltay-mermaid-mcp"
]
}
}
}