graphviz-mcp.md

Graphviz MCP servers

Options compared
from"Community"

Graphviz has no official MCP server, and the graphviz/mcp-server repository this page used to link does not exist. Two small community servers work: one calls the dot program you already have installed, the other bundles a WebAssembly build so you install nothing else. If you want the diagram drawn inside the chat, a Mermaid MCP App is the closer fit.

Source and setup verified on 2026-11-03

Visualization
GraphvizDOTcomparisonalternatives

Quick facts

Official server
None (checked 2026-11-03)
Working options
2 for DOT, 1 Mermaid alternative
Output
SVG, PNG, PDF files

>What exists

GraphViz_MCP

No UI in chat

m053m716 · ★ 0 · updated 2026-10-14

Python stdio server with graphviz_environment, graphviz_validate and graphviz_render tools. Engines: dot, neato, fdp, sfdp, circo, twopi. Writes SVG, PNG or PDF next to the .dot source.

Best for: Full Graphviz with PDF output, if Graphviz is already on your PATH. Tested with Claude Code and Codex.

graphviz-mcp

No UI in chat

kotamiyazono · ★ 0 · updated 2025-11-11

TypeScript server using @viz-js/viz, a WebAssembly build of Graphviz, so no native install is needed. Tools: render_graphviz and validate_dot. Runs over stdio or SSE. README is in Japanese.

Best for: Machines where you cannot install Graphviz.

Avcharov · ★ 18 · updated 2026-03-06

Uses Mermaid syntax instead of DOT. The diagram renders inside the conversation with a live editor and export.

Best for: Seeing and editing the diagram in the chat instead of opening a file.

setup.md
# Claude Desktop (graphviz-mcp) → claude_desktop_config.json
{
  "mcpServers": {
    "graphviz": {
      "command": "node",
      "args": ["/absolute/path/to/graphviz-mcp/build/index.js"]
    }
  }
}

Clone the repository and run npm install and npm run build first.

>Questions

Is there an official Graphviz MCP server?

No. The Graphviz project has not published one, and there is no graphviz/mcp-server repository.

Which one should I use?

Use GraphViz_MCP if Graphviz is installed and you want PDF or every layout engine. Use graphviz-mcp if you cannot install Graphviz. Use a Mermaid MCP App if you want the diagram shown in the chat.

Will the diagram appear in the chat?

Not with either DOT server: both write image files. Only MCP Apps render inside the conversation.