- How you use it
- Your agent calls its tools
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AMCP server · v0.3.0Mermaid MCP Server |
|---|---|
| How you use it | Your agent calls its tools |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
What it is. Mermaid MCP Server renders Mermaid diagram code into PNG images or SVG files using a Puppeteer headless browser. The generate tool supports themes and custom background colors.
Do first: claude mcp add --scope project mermaid --transport stdio -- npx -y @peng-shawn/mermaid-mcp-server@0.3.0 registers the server for the project. In the client, generate can return a rendered diagram directly with the default configuration. registry record.
Use it when / not
- Use when: a flowchart, sequence diagram, class diagram, or state diagram needs an image or SVG output.
- Use when: the rendered diagram needs a theme or custom background color.
- Use when: a client workflow needs diagram files saved to disk.
- Not for: outputs beyond Mermaid PNG or SVG diagrams.
Setup
1. Install Node.js 22.12.0 or later (README). 2. Use npx -y @peng-shawn/mermaid-mcp-server@0.3.0 as the MCP launch command; the server listens on stdio. registry record. The pinned version 0.3.0 is the registry record: registry record. 3. Register it with the project command above, or add the provided MCP configuration to your client. CONTENT_IMAGE_SUPPORTED=true is the default and returns the image/SVG in the response. 4. For disk output, configure CONTENT_IMAGE_SUPPORTED=false. Supply name and an absolute folder path to generate; both are required in that mode. Use outputFormat set to svg for SVG output; the default is png.
Limits
- Rendering launches a headless browser through Puppeteer. Docker containers need the dependencies required by Chrome; browser-related errors may require configuring
PUPPETEER_EXECUTABLE_PATHfor an installed Chrome/Chromium. - With
CONTENT_IMAGE_SUPPORTED=false, the tool writes a file to the supplied folder and returns its path. - The README warns that versions before 0.3.0 depend on Puppeteer and Mermaid releases with known vulnerabilities.
- License: MIT.
Sources
- README by peng-shawn.
- registry record for version 0.3.0.
Started from a post by @peng-shawn, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.