Diagrams MCP Server

v0.11.0
io.github.mohammad-emad-dev/diagrams-mcp-server Checked 2 days ago Published 1 month ago

Local-first MCP server for PlantUML and Mermaid diagrams with drift detection.

Values you need

VariableWhat it is
PROJECT_ROOToptional Project root to attach to (defaults to the working directory).
DIAGRAMS_DIRoptional Diagrams directory, relative to PROJECT_ROOT unless absolute (default: diagrams). Default: diagrams
PLANTUML_SERVER_URLoptional Override for the opt-in remote PlantUML fallback.
ALLOW_REMOTE_PLANTUMLoptional Set to true to allow the remote PlantUML fallback when no local CLI is installed.
DISABLE_REMOTE_PLANTUMLoptional Set to true to always disable the remote PlantUML fallback.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add diagrams-mcp-server -- npx -y diagrams-mcp-server@0.11.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "diagrams-mcp-server": {
      "args": [
        "-y",
        "diagrams-mcp-server@0.11.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "diagrams-mcp-server": {
      "args": [
        "-y",
        "diagrams-mcp-server@0.11.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "diagrams-mcp-server": {
      "args": [
        "-y",
        "diagrams-mcp-server@0.11.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.diagrams-mcp-server]
command = "npx"
args = ["-y", "diagrams-mcp-server@0.11.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: diagrams_list, diagrams_get, diagrams_create, diagrams_update, diagrams_delete, diagrams_render, diagrams_export, diagrams_save_export, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json