# Dgmo MCP

> Dgmo MCP is a freemium MCP server for design and media. Text-to-diagram MCP server that renders 40+ chart types locally to SVG or PNG. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, macOS, Linux, Web
- **Repository:** https://github.com/diagrammo/dgmo-mcp
- **MCP Registry name:** io.github.diagrammo/dgmo-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Diagrams are written in DGMO, a compact text markup that stays readable and diffable, so the assistant writes markup and the server turns it into an image. The README lists sequence diagrams, flowcharts, ER diagrams, C4 architecture and gantt charts among more than 40 chart types. Rendering happens on your machine, and the README says no diagram data leaves it.

Beyond rendering there are helper tools for checking markup, suggesting a chart type from a description, listing chart types, and pulling the language reference and worked examples so the model generates valid syntax. Sharing tools hand the result to Diagrammo's web editor or desktop app for refinement, and three space tools read and write diagrams in Diagrammo Cloud using a space API key set as DGMO_API_KEY in the environment.

It runs over stdio by default and can also be served as a streamable HTTP endpoint on 127.0.0.1:3333/mcp, in which case the four tools that open a browser or the desktop app are not offered.

## Features

- **Local rendering:** Renders DGMO markup to SVG or PNG on your machine.
- **Markup validation:** Reports parse errors without rendering.
- **Chart type suggestions:** Recommends chart types that fit a description.
- **Share and open in app:** Produces a diagrammo.app link or opens the diagram in the desktop app.
- **HTML preview and reports:** Builds a browser preview or a multi-section HTML report with a table of contents.
- **Cloud space storage:** Writes, reads and lists diagrams in a Diagrammo Cloud space.
- **HTTP mode:** Can be served as a streamable HTTP endpoint instead of stdio.

## Good for

- Turn a described auth flow into a sequence diagram
- Draw a service map as a C4 diagram in chat
- Chart a project plan as a gantt
- Assemble a multi-diagram HTML report
- Keep generated diagrams in a shared Cloud space

## Install

### Claude Code (Terminal)

```sh
claude mcp add dgmo-mcp -- npx -y @diagrammo/dgmo-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dgmo-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@diagrammo/dgmo-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `render_diagram`: Render DGMO markup to SVG or PNG
- `validate_diagram`: Check markup and report parse errors without rendering
- `suggest_chart_type`: Suggest chart types that fit a description
- `list_chart_types`: List supported chart types, marking beta ones
- `get_language_reference`: Get DGMO syntax documentation
- `get_examples`: Fetch worked examples for a chart type
- `share_diagram`: Get a shareable diagrammo.app URL
- `open_in_app`: Open the diagram in the Diagrammo desktop app
- `check_app_installed`: Report whether the desktop app is installed
- `preview_diagram`: Render diagrams and open an HTML preview in the browser
- `generate_report`: Build a multi-section HTML report
- `put_space_diagram`: Write a diagram into a Diagrammo Cloud space
- `get_space_diagram`: Read a diagram from a Cloud space
- `list_space_diagrams`: List every diagram in a Cloud space

## FAQ

### Does diagram data leave my machine?

The README says rendering is local; only the three space tools send diagrams to Diagrammo Cloud.

### How do I authenticate the Cloud tools?

Set a space API key as DGMO_API_KEY in the server's environment, not as a tool argument.

### How do I install Dgmo MCP?

Run npx -y @diagrammo/dgmo-mcp from your client config, or install the dgmo CLI and run dgmo install.

### Can Dgmo MCP run over HTTP?

Yes, start it with --http; it listens on 127.0.0.1:3333/mcp by default.

### Is Dgmo MCP free?

Dgmo MCP has a free plan, with paid plans for more usage or features.

### How do I add Dgmo MCP to Claude Code?

Run this command in your terminal: claude mcp add dgmo-mcp -- npx -y @diagrammo/dgmo-mcp

### What are the best alternatives to Dgmo MCP?

The closest alternatives to Dgmo MCP are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/dgmo-mcp
