dgmo-mcp
Officialdgmo-mcp is an MCP server for creating, validating, previewing, and sharing DGMO diagrams using AI tools like Claude.
Render diagrams (
render_diagram): Convert DGMO markup into SVG or PNG, with support for multiple color themes (light/dark/transparent) and palettes (nord, solarized, catppuccin, etc.)Share diagrams (
share_diagram): Generate a shareable diagrammo.app URL from DGMO markupOpen in app (
open_in_app): Open a diagram directly in the Diagrammo desktop app (macOS), with browser fallbackList chart types (
list_chart_types): Discover all supported DGMO chart types with descriptionsGet language reference (
get_language_reference): Retrieve DGMO syntax documentation, optionally filtered by chart typePreview diagrams (
preview_diagram): Render one or more diagrams into an interactive HTML page in the browser, with light/dark theme toggle and optional source displayGenerate reports (
generate_report): Produce a polished multi-section HTML report with a title, table of contents, per-section descriptions, diagrams, and optional source blocksValidate diagrams (
validate_diagram): Check DGMO markup for syntax errors and warnings without rendering — faster than full renderingSuggest chart type (
suggest_chart_type): Given a plain-English description, get ranked recommendations for the best DGMO chart type to useGet examples (
get_examples): Retrieve real-world example DGMO diagrams for a given chart type to use as references when generating new diagrams
@diagrammo/dgmo-mcp
MCP server for rendering DGMO diagrams. Works with Claude Desktop, Claude Code, and any MCP-compatible AI tool.
Tools
Tool | Description |
| Render DGMO markup to SVG or PNG |
| Generate a shareable diagrammo.app URL |
| Open diagram in Diagrammo desktop app (falls back to browser if app not installed) |
| List all supported chart types |
| Get DGMO syntax documentation |
| Render one or more diagrams and open an HTML preview in the browser |
| Generate a polished HTML report with multiple diagrams, ToC, and optional source |
preview_diagram
Renders one or more DGMO diagrams to SVG and opens a self-contained HTML page in the default browser. The page includes a light/dark theme toggle and responsive SVG layout.
Parameter | Type | Default | Description |
|
| (required) | One or more diagrams to preview |
|
|
| Color theme for rendered SVGs |
|
|
| Color palette |
|
|
| Show DGMO source in collapsible blocks |
A single diagram renders as a simple preview page. Multiple diagrams produce a report-style layout with a table of contents (when >3 sections). If some diagrams fail to render, successful ones are shown with error placeholders for the failures.
generate_report
Generates a polished multi-section HTML report and optionally opens it in the browser. Includes a title, optional subtitle, auto-generated table of contents, per-section descriptions, and a timestamp footer. Suitable for bundling project analysis into a shareable document.
Parameter | Type | Default | Description |
|
| (required) | Report title |
|
| — | Optional subtitle |
|
| (required) | Report sections, each with a diagram |
|
|
| Color theme for rendered SVGs |
|
|
| Color palette |
|
|
| Show DGMO source in collapsible blocks |
|
|
| Open the report in the browser |
Setup
Claude Code
Add to your project's .claude/settings.local.json:
{
"mcpServers": {
"dgmo": {
"command": "npx",
"args": ["-y", "@diagrammo/dgmo-mcp"]
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"dgmo": {
"command": "npx",
"args": ["-y", "@diagrammo/dgmo-mcp"]
}
}
}Restart Claude Desktop after saving. The tools appear automatically.
Development
pnpm install
pnpm build
pnpm typecheckTo iterate against an unpublished @diagrammo/dgmo checked out in ../dgmo,
override the npm-resolved dep with a workspace symlink after install:
pnpm install
pnpm link ../dgmo # symlink node_modules/@diagrammo/dgmo → ../dgmo
pnpm --filter @diagrammo/dgmo build # ensure dist/ is up to datepnpm install will undo the link, so re-run pnpm link ../dgmo if deps change.
Releasing
Releases are tag-driven via .github/workflows/release.yml:
Bump the version in all three files (must match exactly — workflow verifies):
package.json→versionmanifest.json→versionserver.json→versionandpackages[0].version
Commit and tag:
git commit -am "Release vX.Y.Z" git tag vX.Y.Z git push && git push --tagsThe workflow runs typecheck + build, publishes to npm with provenance, bundles the
.mcpb, publishes to the MCP registry via GitHub OIDC, and attaches the.mcpbto a GitHub release.
Required secrets
NPM_TOKEN— npm granular access token scoped to@diagrammo/*write. Settings → Secrets and variables → Actions → New repository secret.
MCP registry auth uses GitHub OIDC automatically (no token needed) because the
repo is in the diagrammo org and the server namespace is
io.github.diagrammo/*.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/diagrammo/dgmo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server