Skip to Content
ToDiagram

MCP Integration

Draw ToDiagram diagrams in Claude, ChatGPT, Cursor, VS Code and other AI apps with the Model Context Protocol

The ToDiagram MCP server lets AI apps draw diagrams right in the chat. Ask Claude, ChatGPT, Cursor, Codex, VS Code or another MCP app for an architecture map, a flowchart or a diagram of your data, and it appears in the conversation. Save the ones you want to keep to your ToDiagram account, where you can edit them.

An architecture diagram: web and mobile clients, an API gateway, two services, PostgreSQL and Redis, each with its logo
Asked to draw the architecture of a repository, the assistant returns this in the chat.

Model Context Protocol (MCP) is an open protocol that connects AI apps to outside tools. The ToDiagram server is hosted, so there is nothing to install and no API key to set: you add one URL to your app and sign in.

Connect

Add the server to your app with this URL:

https://mcp.todiagram.com/mcp

Pick your app for its steps. Each one asks you to sign in to ToDiagram once.

Claude on the web, Claude Desktop and the mobile apps.

Open Customize, then Connectors. Select Add, then Add custom connector.

Name it ToDiagram and use this URL:

https://mcp.todiagram.com/mcp

If it asks for an OAuth client, keep Use Claude's published identity.

Select Add, then Connect, and sign in to ToDiagram.

Sign In

The first time, your app opens ToDiagram in your browser. Sign in, or create a free account, and you see exactly what the app is asking for before you select Allow.

Your app will be able to

  • Draw diagrams in your chats
  • Save the diagrams you ask it to, as new private documents
  • Find, open, update and delete your documents when you ask
  • Share a document with a public link or with people you name, when you ask

It can't

  • See your password

Try It

Ask in your own words. A few to start with; select one to copy it.

The diagram is drawn in the conversation. Ask again to change it, or ask to save it and you get a link that opens it in the editor.

What It Draws

Your assistant picks the tool. The diagrams are drawn by the same engine as the editor, so what you see in the chat is what opens there.

An architecture diagram: web and mobile clients, an API gateway, two services, PostgreSQL and Redis, each with its logo

System diagrams

Architecture, platform and repository overviews, with an icon on each service.

generateSystemDiagram
A component diagram: a controller, a service, a repository and a payment client, each with its fields

Code diagrams

Classes, types and components as nodes with their fields.

generateCodeDiagram
An API response drawn as a diagram: a user and two orders

Data diagrams

JSON, YAML, CSV and XML, laid out as a diagram you can read.

generateDataDiagram
A deploy pipeline flowchart with a logo on each step

Mermaid

Flowcharts, ER diagrams and sequence diagrams from Mermaid text.

generateMermaidDiagram

Tools

ToolWhat it does
generateSystemDiagramArchitecture, platform and repository overviews with grouped, icon-first nodes
generateCodeDiagramClasses, types and components with key-value rows, icons and nested groups
generateDataDiagramTurns JSON, YAML, CSV, XML or JSON Lines data into a diagram
compareDataCompares two versions of the same data and marks what was added, changed and removed
generateMermaidDiagramMermaid flowchart (or graph), erDiagram and sequenceDiagram
searchIconsFinds icon names to use on nodes
saveDiagramSaves a diagram as a private document in your account and returns a link to the editor. Given a URL instead, saves a document that shows what the URL serves each time it opens
exportDiagramImageReturns a diagram as a PNG image, for apps that don't show diagrams in the chat
listDiagramsLists your documents and the ones shared with you, and searches their names and content
openDiagramOpens one of your documents in the chat
updateDiagramChanges a document's content or name
shareDiagramMakes a document public, or private again
inviteToDiagramShares a document with people by email, as viewers or editors
deleteDiagramDeletes one of your documents

The drawing tools show the diagram in the chat and save nothing. If a diagram has duplicate node ids, or edges that point at ids that don't exist, the tool returns a numbered list of problems so the assistant can fix them and try again. A diagram too large to show in the chat is left to the editor: the assistant offers to save it so you can open it there.

Plans

Drawing in the chat works on every plan. A saved diagram counts toward your plan's documents, as it does in the editor.

FreePro
Diagrams drawn in the chatYesYes
Saved diagrams3200
Diagrams over the free plan's size limitNoYes

Connected Apps

In the editor, open the menu at the top left and choose Account. The MCP Server tab lists the apps you've connected. Disconnect signs an app out; a chat that's already open can keep drawing for up to an hour.

Privacy

Diagrams are drawn on the fly. Only the ones you save are stored, and they stay private unless you share them. To draw icons and images, the server fetches them from Iconify and from the image URLs in the diagram. A document saved from a URL is fetched from that URL.

Agent Skills

For AI coding agents that support skills, the ToDiagram diagram skill adds diagramming know-how to your agent:

npx skills add todiagram/skills --skill diagram

Troubleshooting

Legacy Local Server (npm)

The npm package @todiagram/todiagram-mcp is legacy: it keeps working but gets no new features. Use it only if your app can't connect to a remote MCP server. Versions before 1.3.0 stop working on January 31, 2027.

Next Steps

On this page