Skip to content
MCP server
Registry

open-diagram MCP Server

Architecture diagrams from JSON or Mermaid that check their own layout and name each problem.

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

by lukendeasyMITPython405 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 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 71 comes from

22 + 20 + 8 + 10 + 4 + 7 = 71. 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.
Popularity8 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 8 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": {    "lukendeasy-open-diagram": {      "command": "uvx",      "args": [        "open-diagram"      ]    }  }}

Environment variables

This server does not declare environment variables.

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

Python building blocks for dense architecture diagrams that check their own layout.

Website, gallery and docs: open-diagram.dev · How it compares with Mermaid, D2, draw.io, Excalidraw and four other tools: open-diagram.dev/compare.html

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

You describe panels, tiles, lines and groups in a short Python script. open-diagram measures every label from the font, places the blocks, and checks the result. If two panels collide or a line runs through a panel, the build says so by name. The output is an SVG (a picture made of shapes, sharp at any size) and a PNG.

The same blocks draw software systems, release pipelines, layered stacks, data models and business processes. It is built to be written by an AI agent such as Claude Code or Cursor, as well as by people. The checks catch layout mistakes before anyone looks at the picture, so a first attempt usually comes out clean.

Install

pip install open-diagram

For the newest unreleased code: pip install git+https://github.com/lukendeasy/open-diagram.

open-diagram needs Python 3.10 or later. pip installs the two packages it uses, fontTools and the MCP toolkit, for you. To make PNG files it also needs Google Chrome, Chromium or Microsoft Edge. If yours is not in the usual place, set the CHROME environment variable to its path. The SVG is always written, browser or not.

For AI apps that use MCP, such as Claude Code: claude mcp add open-diagram -- uvx open-diagram mcp. Claude Desktop, Cursor, Amp, the agent skill and the apps it has been tested with are in AI agents, with a block to paste into your project's AGENTS.md so your coding agent knows how to draw and check a diagram.

Quick start

from open_diagram import Diagram, Panel, Tile

d = Diagram("How a search request is answered", tag="EXAMPLE")
app = d.add(Panel("Web app", ["Search box", "Results page", "Filters"], footer="Owner: Web team"))
api = d.right_of(app, Panel("Search API", [Tile("Checks access"), Tile("Caches results", status="building")],
                            footer="Owner: Platform team"), align="center")
index = d.right_of(api, Panel("Search index", ["Product text", Tile("Spelling fixes", status="planned")],
                              status="planned"), align="center")
d.link(app, api)
d.link(api, index, kind="planned", label="new")
d.save("quickstart")   # writes quickstart.svg and quickstart.png

The quick start diagram

The key at the top lists only the statuses and line kinds the picture uses.

Why a first attempt comes out clean

  • Every label is measured before it is placed. Widths come from the font's own spacing and kerning, so each box fits its words.
  • The build checks the layout and names each problem. For example: 'Storage' and 'Recommendations' are only 9 px apart (minimum 16) or line 'Where videos come from' -> 'Storage' crosses 'Processing'; route it with via_x/via_y, move a block, or pass cross_ok=True. save() writes the files, prints a summary, then raises LayoutError with the full list.
  • Text is drawn as shapes. The SVG looks the same in a browser, PowerPoint, Keynote or Figma, with or without the font installed. Inter comes bundled.
  • Words stay apart from layout. Keep labels in lists at the top of the script. Changing a word does not move anything by hand.

How open-diagram turns a script into a picture, drawn with open-diagram

Examples

Each example is one script in examples/. Run any of them with python3 examples/<name>.py.

ExampleShows
systems_map.pyA video platform from upload to screen: columns, a group, steps, statuses, owners, a small data map with a worked example, and lanes above and below the picture
how_it_works.pyHow open-diagram itself works, drawn with open-diagram
pipeline.pyA release pipeline from pull request to production, with a rollback lane
card_payment.pyWhat happens when you tap a card: numbered steps for the order of events, return paths above and below
layers.pyA web product as stacked layers, with a side panel
concept_map.pyHow git stores a project: its objects and links, with a worked example
smart_home.pyA smart home from sensor to phone, with a planned overnight update path
incident_response.pyHow a team handles an outage, from the first alert to the lessons learned
business_map.pyNot only software: a furniture store from order to doorstep
email_delivery.jsonHow an email is delivered, written as JSON instead of Python
signup_flow.mmdA sign-up flow imported from a Mermaid flowchart
release_cycle.jsonA release cycle as a ring, with goals in the middle
quickstart.pyThe code above

All of them, and the cloud templates, are in the gallery.

Docs

The full reference is at open-diagram.dev/docs.html, drawn from these files:

TopicFile
Python: every block, placement method and theme settingdocs/python.md
JSON: every keydocs/json.md
Mermaid: what it reads and what changesdocs/mermaid.md
Command line and the GitHub Actiondocs/cli.md
AI agents: the MCP server, the agent skill and cloud iconsdocs/agents.md
Cloud templates and the template standardtemplates/README.md
What each layout problem means and how to fix itskills/open-diagram/SKILL.md
How it compares with Mermaid, D2, draw.io, Excalidraw and archifydocs/comparison.md

The website also has step-by-step guides, a page for each example and template, a page for each layout problem, comparisons with eight other tools and pages for AI agents. Each page has a Markdown copy at the same address ending in .md.

Contributing

Issues and pull requests are welcome.

To report a bug or ask for a change, open an issue. Include the script, JSON or Mermaid file that shows the problem, and the problem message or picture you got.

To make the change yourself, open a pull request. For a large change, such as a new block or layout, open an issue first so we can agree on the approach before you write the code.

  1. Fork the repo and create a branch.

  2. Make the change. AGENTS.md lists the commands, the rules the code must keep, and what a finished change looks like. It is written for coding agents, and people can follow it the same way.

  3. Run the tests:

    python3 -m unittest discover -s tests
    
  4. If your change alters a picture, rebuild the examples and commit the new SVG and PNG files with the code:

    for f in examples/*.py; do PYTHONPATH=src python3 "$f"; done
    
  5. Open the pull request. Say what changed and why, and attach a picture if the change alters how diagrams look.

New examples use an invented organization, never real company names, logos or data. To add or update a cloud icon, follow "Sources, family versions and attribution" in the cloud-icons skill: each new address must point to a fixed version of the file and return an SVG.

Contributions are released under the MIT license, like the rest of the project.

Contributors

Their backgrounds are on the About page.

Soundtrack

We recommend listening to music by The Gathering Field while you build.

License

MIT, in LICENSE. The bundled Inter font is by The Inter Project Authors, under the SIL Open Font License 1.1, in src/open_diagram/fonts/OFL.txt.

Frequently asked questions

What is open-diagram MCP Server?

Architecture diagrams from JSON or Mermaid that check their own layout and name each problem.

How do I install open-diagram 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 MCP Server runs locally from the PyPI package open-diagram with the command uvx open-diagram.

Is open-diagram MCP Server free and open source?

Yes. open-diagram 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 MCP Server support remote (HTTP) connections?

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

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

open-diagram MCP Server scores 71 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