Dgmo MCP logo

Dgmo MCP

Render DGMO markup as diagrams, validate syntax, create reports, and move results into Diagrammo tools or Cloud spaces.

Install Dgmo MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "dgmo-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@diagrammo/dgmo-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

dgmo-mcp connects AI tools to Diagrammo's DGMO markup for rendering diagrams and charts as SVG or PNG. It can validate syntax, recommend chart types, provide reference material and examples, and generate browser previews or HTML reports. Local tools keep rendering on the machine running the server, while separate tools share diagrams through Diagrammo or access Diagrammo Cloud spaces. Use it when an agent needs to create, inspect, preview, or store structured diagrams from text.

Use cases

  • Render architecture diagrams from text descriptions
  • Validate generated DGMO markup before delivery
  • Preview several diagrams in a browser
  • Generate HTML reports with embedded diagram content
  • Store and retrieve diagrams in Diagrammo Cloud spaces

Key features

  • SVG and PNG diagram rendering
  • DGMO syntax validation and reference lookup
  • Chart-type suggestions and examples
  • Browser previews and HTML report generation
  • Diagrammo editor and desktop-app handoff
  • Diagrammo Cloud space access

Tools14

What Dgmo MCP lets your agent do. Expand a tool for its parameters.

Self-reported~252 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

9/9 checks healthy over the last 47d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · @diagrammo/dgmo-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads2.1kPackage downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Dgmo MCP works

What dgmo-mcp does

dgmo-mcp exposes Diagrammo's DGMO markup through MCP tools. Agents can turn concise text definitions into SVG or PNG output and work with diagram types such as sequence diagrams, flowcharts, ER diagrams, C4 architecture diagrams, and Gantt charts. The server also supports chart-type discovery, syntax guidance, examples, validation, browser previews, and multi-section HTML report generation.

The generated markup remains readable and diffable, which makes it suitable for producing diagrams from natural-language requests while retaining a text representation for review or revision. share_diagram creates a URL for the Diagrammo web editor, and open_in_app sends a diagram to the Diagrammo desktop app for editing.

How it works

An MCP client invokes a tool with DGMO markup or a description of the desired visualization. validate_diagram checks syntax and returns parse errors without rendering. render_diagram produces SVG or PNG output, while preview_diagram renders one or more diagrams and opens an HTML preview in a browser. generate_report creates an HTML report with multiple sections, a table of contents, and optional source content.

Rendering happens locally, so diagram data stays on the machine running the server for those operations. Browser and desktop actions also occur on the machine hosting the server. The server can run over standard input/output for a local MCP client or as a streamable HTTP endpoint for clients and agents that connect remotely. HTTP requests are handled independently, without persistent sessions.

Setup and configuration

The package can be run directly with npx:

Terminal
npx -y @diagrammo/dgmo-mcp

For a local MCP client, configure the command as the server process:

config.json
{
  "mcpServers": {
    "dgmo": {
      "command": "npx",
      "args": ["-y", "@diagrammo/dgmo-mcp"]
    }
  }
}

The Diagrammo CLI can also install the MCP configuration automatically with dgmo install, or run the server through dgmo mcp.

To serve MCP over HTTP, use --http or set MCP_TRANSPORT=http:

Terminal
npx -y @diagrammo/dgmo-mcp --http

The HTTP endpoint defaults to 127.0.0.1:3333/mcp. MCP_PORT, MCP_HOST, MCP_PATH, MCP_ALLOWED_HOSTS, and MCP_ALLOWED_ORIGINS adjust the listener and request checks. The HTTP server has no built-in authentication; expose it beyond a trusted local or container network only behind externally managed authentication.

Cloud-space operations require a Diagrammo space API key in DGMO_API_KEY. The key is read from the server environment rather than passed as a tool argument.

Tools and capabilities

  • Render DGMO markup as SVG or PNG.
  • Validate markup and return parsing errors without rendering.
  • Recommend chart types from a natural-language description.
  • List supported chart types and identify beta types.
  • Retrieve DGMO syntax reference material and chart-specific examples.
  • Create Diagrammo web-editor links or open diagrams in the desktop app.
  • Check whether the desktop app is installed.
  • Open HTML previews in a browser.
  • Generate multi-section HTML reports with a table of contents and optional source.
  • Write, read, and list diagrams in a Diagrammo Cloud space.

Limitations and notes

The browser-preview, HTML-report, desktop-app, and local app-check operations are not available when the server is accessed over HTTP, because they launch software on the server host. The three Cloud-space tools send diagram content to Diagrammo Cloud and require DGMO_API_KEY; other local rendering operations do not use that Cloud service. HTTP deployments need their own authentication layer when reachable from a wider network.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dgmo MCP

dgmo-mcp is an MCP server that connects AI tools to Diagrammo's DGMO markup and Cloud spaces. Its main tools render diagrams as SVG or PNG, validate syntax, suggest chart types, create browser previews and HTML reports, and read, write, or list diagrams in Diagrammo Cloud.

Install it through an MCP client with `npx -y @diagrammo/dgmo-mcp`, or use the Diagrammo CLI's `dgmo install` command. The CLI can detect supported assistants and configure the server automatically.

Run `npx -y @diagrammo/dgmo-mcp --http` to start a streamable HTTP endpoint. It listens on `127.0.0.1:3333/mcp` by default; `MCP_PORT`, `MCP_HOST`, and `MCP_PATH` change those defaults.

Yes. Cursor is named as a supported installation target, and the server can be configured as a standard MCP server using the `npx` command.

Set the Diagrammo space API key as `DGMO_API_KEY` in the server environment. The `put_space_diagram`, `get_space_diagram`, and `list_space_diagrams` tools then write, read, and list diagrams in a Cloud space.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDgmo MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dgmo-mcp?style=directory)](https://allmcps.com/mcp/dgmo-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/dgmo-mcp"><img src="https://allmcps.com/api/badge/dgmo-mcp?style=directory" alt="Dgmo MCP on AllMCPs" /></a>