preview_diagram
Render one or more diagrams and open an HTML preview in the browser
How to use it
preview_diagram is exposed by the Dgmo MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the preview_diagram tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Dgmo MCP
npx -y @diagrammo/dgmo-mcp --http # http://127.0.0.1:3333/mcpOther tools in Dgmo MCP (8)
Report whether the desktop app is installed
Build a polished multi-section HTML report with ToC and optional source
Fetch worked examples for a chart type
Get DGMO syntax documentation for accurate generation
List all supported chart types, marking the beta ones
Render DGMO markup to SVG or PNG
Suggest the chart types that fit a description
Check markup and report parse errors, without rendering