Install
openclaw skills install diagram-generatorGenerate Draw.io architecture diagrams, Mermaid diagrams, and Excalidraw sketches from structured specifications using the mcp-diagram-generator MCP server.
openclaw skills install diagram-generatorGenerate Draw.io architecture diagrams, Mermaid flowcharts/sequence/class/ER diagrams, and Excalidraw whiteboard sketches from structured JSON specifications using the mcp-diagram-generator MCP server.
Add one of the following configurations to your system settings (e.g., mcp_config.json or IDE configurations):
{
"mcpServers": {
"diagram-generator": {
"command": "npx",
"args": ["-y", "mcp-diagram-generator"]
}
}
}
{
"mcpServers": {
"diagram-generator": {
"command": "node",
"args": ["/your/path/to/mcp-diagram-generator/dist/index.js"]
}
}
}
drawio, mermaid, and excalidraw based on your needs.geometry coordinates for precise placement (Note: coordinates for child elements inside containers must be relative to the top-left of their direct parent container). For automatic layout, set coordinates to 0 or omit them to trigger the generator's grid layout.generate_diagram to render and save the file.To ensure rendering quality, you must read the following guides on-demand using view_file before generating diagrams:
Schema Validation Error, Directory Not Found, or Wrong File Extension.init_config() so you do not need to specify output_path in generate_diagram.env-, dc-, router-) and ensure all element IDs are unique.