Skip to main content
MCP server CX Codex

Agentic Mermaid — Claude Code MCP server: setup and features

Renders Mermaid diagrams into SVG, PNG, or terminal ASCII while giving coding agents structured tools to mutate nodes safely.

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http agentic-mermaid https://agentic-mermaid.dev/mcp
Open on GitHub

What Agentic Mermaid does

This server gives coding assistants a dedicated pipeline to parse, inspect, and update Mermaid charts. Instead of asking the model to rewrite complete diagram strings, it applies typed mutations like adding single nodes. The internal SVG generator runs synchronously without launching Puppeteer or keeping a headless browser active.

Outputs include vector SVG, raster PNG, JSON layout data, plus plain ASCII or Unicode text for fast terminal reviews. Built-in styles include hand-drawn, blueprint, and watercolor. Running the package locally requires Node 22 or higher, because the codebase ships strictly as ECMAScript modules without CommonJS builds.

What it helps with

  • Render Mermaid graphs to SVG or PNG without running Puppeteer
  • Apply structured node mutations instead of rewriting complete diagram files
  • Output terminal-friendly ASCII representations to inspect graph layouts
  • Style diagrams using built-in themes like blueprint or hand-drawn

Example prompts for the agent

  • Generate an authentication flow diagram in SVG using the blueprint visual preset.
  • Add a Redis cache node to architecture.mmd without altering existing connection syntax.
  • Render the service topology as pure ASCII text directly in this chat.

How to install Agentic Mermaid

1Platform CLI: remote server

claude mcp add --transport http agentic-mermaid https://agentic-mermaid.dev/mcp

2Platform CLI

claude mcp add agentic-mermaid -- npx -y agentic-mermaid

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Agentic Mermaid

How to install Agentic Mermaid in Claude Code?

Add the hosted HTTP endpoint by running claude mcp add --transport http agentic-mermaid https://agentic-mermaid.dev/mcp. Alternatively, configure a local stdio instance with claude mcp add agentic-mermaid -- npx -y agentic-mermaid.

What makes Agentic Mermaid different from standard Mermaid CLI tools?

It provides typed mutation operations so agents can modify diagrams safely step by step. Its SVG engine is also synchronous and avoids browser dependencies like Puppeteer.

What runtime is required for local execution?

You need Node version 22 or higher. The project distributes ES modules exclusively, meaning CommonJS require() is not supported directly.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor