Skip to content
MCP server
Registry

open-diagram-rs MCP Server

Draws architecture diagrams from JSON or Mermaid.

open-diagram-rs scores 63 (Good), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Cloud, Version control. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by orrae-labsMITRust0 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "orrae-labs-open-diagram-rs": {      "command": "npx",      "args": [        "-y",        "open-diagram-rs-mcp@0.6.2"      ],      "env": {        "OPEN_DIAGRAM_RS_OUT": "",        "OPEN_DIAGRAM_RS_ICONS": "",        "OPEN_DIAGRAM_RS_SKILLS": "",        "CHROME": ""      }    }  }}

Environment variables

NameRequiredNotes
OPEN_DIAGRAM_RS_OUTOptionalFolder for SVG and PNG files. The default is ./open-diagram-rs when that directory is writable.
OPEN_DIAGRAM_RS_ICONSOptionalExtra icon folders, split on the system path separator. Built-in icons are always included.
OPEN_DIAGRAM_RS_SKILLSOptionalFolder of Agent Skills to serve. Without it, the server serves skills/ when that folder is visible.
CHROMEOptionalPath to Chrome, Chromium, or Edge when PNG rendering cannot find a browser.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

open-diagram-rs

open-diagram-rs draws architecture diagrams and checks their layout. You describe boxes, lines and groups in JSON, in a Mermaid flowchart, or in Rust. It measures every label with the bundled Inter font, places everything, and names each layout problem it finds: two boxes that overlap, a line that runs through a box, text below 10 px. It writes an SVG and, when Chrome or a Chromium-based browser is installed, a PNG.

A systems map for an invented video platform, drawn with open-diagram-rs

There are three ways to use it:

  • open-diagram-rs, a command for your terminal or CI.
  • open-diagram-rs, a Rust library.
  • open-diagram-rs-mcp, an MCP server that lets AI apps such as Claude, Codex or Cursor draw and check diagrams.

Install

cargo install open-diagram-rs-cli --locked

This installs the open-diagram-rs command. It needs Rust 1.100 or later.

PNG output uses Chrome, Chromium or Edge. If yours is installed somewhere unusual, set CHROME to its path. Without a browser you still get the SVG.

To use the library in your own crate:

cargo add open-diagram-rs

For the MCP server, see docs/agents.md.

Draw your first diagram

Start from a template:

open-diagram-rs new azure_web_app
open-diagram-rs draw azure_web_app.json

new writes azure_web_app.json into the current folder, and draw turns it into azure_web_app.svg and azure_web_app.png. Run open-diagram-rs new on its own to list the templates.

Or write one yourself. Save this as search.json:

{
  "title": "How a search request is answered",
  "tag": "EXAMPLE",
  "columns": [
    [{"id": "app", "title": "Web app", "tiles": ["Search box", "Results page", "Filters"], "footer": "Owner: Web team"}],
    [{"id": "api", "title": "Search API", "tiles": ["Checks access", {"label": "Caches results", "status": "building"}], "footer": "Owner: Platform team"}],
    [{"id": "index", "title": "Search index", "status": "planned", "tiles": ["Product text", {"label": "Spelling fixes", "status": "planned"}]}]
  ],
  "links": [
    {"from": "app", "to": "api"},
    {"from": "api", "to": "index", "kind": "planned", "label": "new"}
  ]
}

Then run open-diagram-rs draw search.json:

The search request diagram

Each entry in columns is a column of panels, drawn left to right. A part marked building gets a dashed amber outline and one marked planned a dotted gray one. The legend under the title lists the states and kinds of line the picture uses. The same picture in Rust is open_diagram_rs::examples::quickstart.

When the layout has a problem

draw and check print each problem as a sentence that names the parts involved, for example that one panel overlaps another, or that a line crosses a panel it doesn't connect to. draw still writes the files so you can look at them, then exits with status 1. check builds the diagram without writing anything, which suits CI.

Labels are never squeezed or cut to make them fit. If a box is too small for its text, the problem says how many pixels it needs.

How open-diagram-rs turns a description into a picture

Examples

docs/images holds every example picture. The test suite redraws them all and fails if a single byte changes.

PictureWhat it shows
systems_mapA video platform, with columns, a group, numbered steps, states, owners, a small data map and lanes
how_it_worksHow open-diagram-rs works
pipelineA release pipeline with a rollback lane
card_paymentA card payment, with return paths above and below
layersStacked layers and a side panel
concept_mapHow git stores a project
smart_homeA smart home with a planned overnight path
incident_responseAn outage, from the first alert to the lessons learned
business_mapA furniture store, from order to doorstep
aws_etl, aws_architecture, azure_web_app, gcp_event_pipelineThe cloud templates, drawn with the providers' own icons

Three have source files in examples that you can draw directly:

open-diagram-rs draw examples/email_delivery.json
open-diagram-rs draw examples/signup_flow.mmd
open-diagram-rs draw examples/release_cycle.json

Documentation

TopicPage
Every JSON keydocs/json.md
What a Mermaid flowchart keeps and losesdocs/mermaid.md
The Rust APIdocs/rust.md
Commands, and the GitHub Action that checks diagrams on every pushdocs/cli.md
The MCP server and AI agentsdocs/agents.md
Cloud templates and iconscrates/open-diagram/templates/README.md
What each layout problem means and how to fix itskills/open-diagram-rs/SKILL.md
How it compares with Mermaid, D2, draw.io, Excalidraw and archifydocs/comparison.md

Background

open-diagram-rs is a Rust port of open-diagram, which is written in Python. It started from open-diagram 0.6.0 and ports later changes from it. The changelog lists each release.

Contributing

Before opening a pull request, run:

cargo test --workspace --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo audit

The tests compare every example picture with the committed copy in docs/images, byte for byte. If your change is meant to alter a picture, update the committed SVG and PNG in the same pull request.

AGENTS.md maps the source files and lists the rules the code keeps, such as determinism and the exact wording of layout problems. Releases are described in docs/releasing.md.

License

The code is MIT. The library package also carries the licenses of the files bundled with it, so its license field is MIT AND OFL-1.1 AND Apache-2.0 AND CC-BY-ND-2.0:

  • The Inter fonts use the SIL Open Font License 1.1 (crates/open-diagram/fonts/OFL.txt).
  • The Google Cloud icons are Apache-2.0.
  • The AWS icons, including the QuickSight PNG, are CC BY-ND 2.0.
  • The Azure icons also come with Microsoft's icon terms, which have no SPDX identifier.

crates/open-diagram/templates/assets/README.md gives the source and terms of each icon set.

Frequently asked questions

What is open-diagram-rs MCP Server?

Draws architecture diagrams from JSON or Mermaid.

How do I install open-diagram-rs MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. open-diagram-rs MCP Server runs locally from the package open-diagram-rs-mcp with the command npx -y open-diagram-rs-mcp@0.6.2.

Is open-diagram-rs MCP Server free and open source?

Yes. open-diagram-rs MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does open-diagram-rs MCP Server support remote (HTTP) connections?

No remote endpoint is listed for open-diagram-rs MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is open-diagram-rs MCP Server's trust score calculated?

open-diagram-rs MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server