Diagrams MCP Server for VS Code
io.github.mohammad-emad-dev/diagrams-mcp-server
Local-first MCP server for PlantUML and Mermaid diagrams with drift detection.
client:VS Code
transport:stdio
runtime:npm
Install Diagrams MCP Server in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "project-root",
"description": "PROJECT_ROOT",
"password": true
},
{
"type": "promptString",
"id": "diagrams-dir",
"description": "DIAGRAMS_DIR",
"password": true
},
{
"type": "promptString",
"id": "plantuml-server-url",
"description": "PLANTUML_SERVER_URL",
"password": true
},
{
"type": "promptString",
"id": "allow-remote-plantuml",
"description": "ALLOW_REMOTE_PLANTUML",
"password": true
},
{
"type": "promptString",
"id": "disable-remote-plantuml",
"description": "DISABLE_REMOTE_PLANTUML",
"password": true
}
],
"servers": {
"diagrams-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"diagrams-mcp-server"
],
"env": {
"PROJECT_ROOT": "${input:project-root}",
"DIAGRAMS_DIR": "${input:diagrams-dir}",
"PLANTUML_SERVER_URL": "${input:plantuml-server-url}",
"ALLOW_REMOTE_PLANTUML": "${input:allow-remote-plantuml}",
"DISABLE_REMOTE_PLANTUML": "${input:disable-remote-plantuml}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs