The agent in your editor already knows the architecture. Connected to Datadef over MCP, it creates the diagram, edits it as the system changes, and exports it when you need a file, all from the chat you already have open.
Part of Pro and Team · 7-day free trial · No credit card
How it works
Datadef runs a remote MCP server. There is nothing to host and nothing to update.
On the MCP & integrations page in settings. The key is shown once, and the setup snippet comes prefilled with it. API access is part of Pro and Team, and the trial covers it.
One command for Claude Code, one-click installs for Cursor and VS Code, snippets for Claude Desktop, Codex, and Gemini CLI. ChatGPT connects over OAuth, no key pasted.
Describe the system, or let the agent describe the repo it is sitting in. The diagram lands in your workspace, editable, shareable, and ready to embed.
Not a chat artifact.
Agent-built diagrams are real canvases in your workspace, drawn to the same design standard as the in-app generator. Nothing lives only in the conversation.
The endpoint is https://datadef.io/mcp. Open it in a browser and it serves the connect instructions.
Setup
Create the key, pick your client, copy the prefilled command. This is the actual page.

In practice
Draw it, change it, ship the image, keep it honest against the repo. Each step is a tool the agent calls for you.
create_diagram turns a description into a finished, editable diagram and returns a preview
edit_diagram applies plain-language changes: add nodes, rewire connections, relabel layers
export_diagram returns the image inline plus a download link that needs no API key
repo_status · repo_refresh check and re-sync diagrams linked to a repository
> Draw the checkout flow: API, orders DB, Kafka, payments worker.
create_diagram
Your diagram is ready. Open and edit: datadef.io/project/…
> We put a retry queue between Kafka and the worker. Add it.
edit_diagram
Retry Queue added between Kafka and the payments worker · updated preview attached
Claude Code, Cursor, VS Code, Claude Desktop, Codex, Gemini CLI, and ChatGPT. Anything else that speaks MCP over Streamable HTTP connects the same way; the settings page keeps a prefilled setup snippet per client.
From the MCP & integrations page in settings. Create a key and copy it once, it is shown a single time, then paste it into the setup command for your client. ChatGPT is the exception: it connects with an OAuth sign-in and no pasted key.
API access is part of Pro and Team. Every new account starts with a 7-day trial of the full product, no card required, so you can connect an agent on day one.
Create diagrams from a description, build or edit them node by node, change them with plain-language instructions, list and read what is in your workspace, export PNG or JPEG images, and check or refresh repo-linked diagrams with repo_status and repo_refresh. Agent-built diagrams follow the same design standard as the in-app generator.
No. Over MCP, tools run when you ask, and nothing moves between sessions. Diagrams that regenerate daily without an agent in the loop are repository sync, a separate feature that pairs with these tools.
How repo sync worksNo. Every diagram the agent creates is a project in your Datadef workspace: open it on the canvas, hand-edit it, share it, embed it. The chat is just where the work got asked for.
Connect it once and the diagrams get drawn, updated, and exported from the chat you already work in. Every new account starts with a 7-day trial of everything, no card needed.