Diagrams MCP Server
v0.11.0Local-first MCP server for PlantUML and Mermaid diagrams with drift detection.
Values you need
| Variable | What it is | |
|---|---|---|
PROJECT_ROOT | optional | Project root to attach to (defaults to the working directory). |
DIAGRAMS_DIR | optional | Diagrams directory, relative to PROJECT_ROOT unless absolute (default: diagrams). Default: diagrams |
PLANTUML_SERVER_URL | optional | Override for the opt-in remote PlantUML fallback. |
ALLOW_REMOTE_PLANTUML | optional | Set to true to allow the remote PlantUML fallback when no local CLI is installed. |
DISABLE_REMOTE_PLANTUML | optional | 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.0Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: diagrams_list, diagrams_get, diagrams_create, diagrams_update, diagrams_delete, diagrams_render, diagrams_export, diagrams_save_export, ….
- 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