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.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
55/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "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
| Name | Required | Notes |
|---|---|---|
OPEN_DIAGRAM_RS_OUT | Optional | Folder for SVG and PNG files. The default is ./open-diagram-rs when that directory is writable. |
OPEN_DIAGRAM_RS_ICONS | Optional | Extra icon folders, split on the system path separator. Built-in icons are always included. |
OPEN_DIAGRAM_RS_SKILLS | Optional | Folder of Agent Skills to serve. Without it, the server serves skills/ when that folder is visible. |
CHROME | Optional | Path to Chrome, Chromium, or Edge when PNG rendering cannot find a browser. |
Tools
All capabilitiesTools 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.

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:

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.

Examples
docs/images holds every example picture. The test suite redraws them all and fails if a single byte changes.
| Picture | What it shows |
|---|---|
systems_map | A video platform, with columns, a group, numbered steps, states, owners, a small data map and lanes |
how_it_works | How open-diagram-rs works |
pipeline | A release pipeline with a rollback lane |
card_payment | A card payment, with return paths above and below |
layers | Stacked layers and a side panel |
concept_map | How git stores a project |
smart_home | A smart home with a planned overnight path |
incident_response | An outage, from the first alert to the lessons learned |
business_map | A furniture store, from order to doorstep |
aws_etl, aws_architecture, azure_web_app, gcp_event_pipeline | The 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
| Topic | Page |
|---|---|
| Every JSON key | docs/json.md |
| What a Mermaid flowchart keeps and loses | docs/mermaid.md |
| The Rust API | docs/rust.md |
| Commands, and the GitHub Action that checks diagrams on every push | docs/cli.md |
| The MCP server and AI agents | docs/agents.md |
| Cloud templates and icons | crates/open-diagram/templates/README.md |
| What each layout problem means and how to fix it | skills/open-diagram-rs/SKILL.md |
| How it compares with Mermaid, D2, draw.io, Excalidraw and archify | docs/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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.