Introducing the ToDiagram MCP server

Ask your agent for a diagram.
Keep it as documentation.

Your agent maps the system. Every node keeps its own notes and links, so the team can read it, fix it and share it.

Web appNext.js
You
Checkout APIservices/checkout
ownerPayments team
runtimeNode 22
on call#checkout
Payment servicecharge, refund
Orders DBPostgres
Clients
Payments
Web appNext.js
Mobile appReact Native
Checkout APIservices/checkout
ownerPayments team
runtimeNode 22
on call#checkout
Payment servicecharge, refund
Fraud checkbefore every charge
Orders DBPostgres
You
Checkout floworders.json
SavedShare
Checkout APIservices/checkout
DESCRIPTIONTurns a cart into a paid order. Runs the fraud check before every charge, then writes the result to Orders DB.
LINKSRunbookAPI reference
Claude Codetodiagram
> Draw how checkout talks to payments, then save it.
✓ Read 14 files in services/checkout✓ generateSystemDiagram · 6 nodes, 5 edges✓ Saved "Checkout flow" to ToDiagram
todiagram.com/editor · open the link to edit
USED BY INDIVIDUALS AT
AmazonNetflixAtlassianDeloitteContentful
DRAWS ANY OF THESE
DOCUMENTATION

Not just boxes.
Every node is a page.

Each node carries what people come looking for: who owns it, what it runs on, where the runbook is.

Fields on the cardKey and value rows for what you look up most: owner, runtime, version.
Notes in the side panelA Markdown description for the why and the how, one click away.
Links that go somewhereRunbooks, dashboards and repositories, attached to the node they belong to.
ON THE CARDON CLICK
Payment servicecharge, refund
ownerPayments team
runtimeGo 1.23
retries3
Payment serviceDetails
DESCRIPTIONCharges and refunds cards for every order.Retries three times, then pages on call.Refunds settle through Ledger.
LINKSRunbookRepository
IN YOUR AGENT

Ask about anything.
See it in the chat.

Ask about the codebase or the JSON it just fetched. Claude, ChatGPT, Cursor, VS Code and Antigravity draw the diagram right in the chat.

Terminal agents like Claude Code and Codex hand you a link instead.

How does sign-in work in this repo?
Read 12 files in apps/auth
Sign-in goes through the Auth API. It checks Google, then keeps the session in Redis.
ToDiagram
Login pageapps/web
Auth APIapps/auth
Google OAuthprovider
Session storeRedis
Users DBPostgres
Now add the password reset flow

No key, nothing to install

Sign in with your ToDiagram account when your app asks. No API key, and a free account works. Only the diagrams you save are stored.

Add ToDiagram to your agent

Run this in your terminal:
claude mcp add --transport http todiagram https://mcp.todiagram.com/mcp
Then run /mcp, select todiagram and choose Authenticate.All setup guides
THE DATA EDITOR

Paste your data.
Read the diagram.

No agent required. Paste JSON, YAML, XML or CSV and every object becomes a node you can search and edit.

YAMLconfig.yamlJSONorders.json
1name: api
2replicas: 312
3server:
4port: 8080
5tls: true
6database:
7host: db.internal
8pool: 20
9cache:
10ttl: 60
11url: redis:6379
ValidLn 2Ln 9Ln 10Ln 11Spaces: 2YAML
config
nameapi
replicas312
server
port8080
tlstrue
database
hostdb.internal
pool20
cache
ttl60
urlredis:6379
Every view of the same fileGraph, tree, table and charts, side by side.
Edit on the diagramDouble-click a key or a value. The file changes with it.
Search and collapseFind any key or value and fold the rest away.
Compare two versionsSee what changed between two files.
Validate and queryJSON Schema, jq and JSONPath built in.
Bring data from anywherePaste, drop a file, use a live URL or connect Supabase.
ONE PAGE FOR THE TEAM

Link the diagram,
not a screenshot of it

Drop the link in Slack, the README or the runbook. Whoever opens it gets the diagram itself, notes and all.

AcmeCHANNELSgeneralcheckoutdeploysincidents
# checkout
Deniz10:42Payments is the part to review. The notes are on the node.
ToDiagramCheckout flowtodiagram.com/editor
todiagram.com/editor
Web app
Checkout
Payments
Orders DB
PaymentsCharges and refunds cards for every order.ownerPaymentsretries3Runbook
01Share the linkIn Slack, the README or the runbook.
02Everyone opens the same pageThey zoom, search and expand it themselves.
03The notes travel with itClick a node to see who owns it and where the runbook is.
NEXT TIME IT EXPLAINS SOMETHING

Ask for the diagram

Add ToDiagram to your agent once. After that, documentation you can open, correct and share is one sentence away.