Skip to content

Diagram editor

Draw boxes and arrows, or let your AI app draw them for you. This page offers its editor as MCP tools through tab-mcp. Connect Claude, ChatGPT or Claude Code below. Your AI app then reads, draws and rearranges the diagram right here in your tab, while you watch and keep editing.

Select a shape or an arrow to change it here.

Empty. Pick a shape above and click here, double-click to add a box, or ask your AI app to draw something.

Mouse: pick a shape in the bar, then click the canvas where each one goes. Press Escape or click a shape to put the tool away. Drag shapes to move them. Select a shape or an arrow, then use the bar to change its shape, colour or line, or to delete it. With Arrow, click the start shape, then the target.

Labels: to edit a label on the canvas, double-click a shape or an arrow, or select it and press Enter. Enter keeps the new label, Escape drops it. While you place shapes, Escape keeps the label and stops placing.

Keyboard: Delete removes the selection. Arrow keys nudge it. Press a shape button with the keyboard to add that shape in the middle of the canvas. On the canvas, ] and [ select the next and the previous shape or arrow. A draws an arrow from the selected shape: select the target with ] or [, then press Enter.

Undo: Ctrl+Z undoes your changes and the AI app's.

The diagram stays in this browser.

AI access

Off No AI app is connected to this page.

Connect your AI app

  1. Add this address to your AI app. It is the same for everyone, so you can add it before you open this page.

    https://tab-mcp.ractive.ch/s/diagram/mcp
    Claude
    Settings → Connectors → Add custom connector.
    Claude Code
    claude mcp add --transport http diagram https://tab-mcp.ractive.ch/s/diagram/mcp
    Then run /mcp and choose Authenticate.
    Other AI apps
    ChatGPT
    chatgpt.com/plugins, add an MCP server.
    Codex
    Run codex features enable mcp_2026_07_28 once before you add the server.
    codex mcp add diagram --url https://tab-mcp.ractive.ch/s/diagram/mcp
    Then run codex mcp login diagram.
  2. Click Connect your AI app above. It shows a code of 8 letters. The code changes every 2 minutes and after each use.

  3. When your AI app opens the sign-in page "Connect … from …" in your browser, type the code there and click Connect.

Connecting an AI app explains each step and what to do when it fails.

The AI app reaches this tab only while the tab is open and connected. If the browser has WebMCP, its own AI agent can use the same tools without connecting. The page does not ask you before the agent's calls. The agent may ask you in its own chat. Adding and changing shapes run without asking, because Undo takes back the last 100 changes (until you reload the page). Deleting (delete_elements, clear_diagram) and rearranging everything (layout) ask you first when an AI app calls them. Undo takes these back too. They ask anyway, so you can try the "Always allow" switch under a connected AI app, which lets them run without the question. The privacy notice says what the relay passes on and stores.

Try these in your AI app

Copy one and watch the diagram change.

  • Draw a flowchart for making a cup of coffee, with a check whether there are enough beans.
  • Draw the architecture of a small web shop: browser, CDN, web server, API, database and a payment provider. Lay it out from left to right.
  • Turn this into an org chart: CEO; CTO with a frontend and a backend team; CFO with accounting and payroll.
  • Look at my diagram. What is missing? Add it in orange and tell me why.
  • Make all decisions yellow diamonds, label the arrows that leave them, then tidy up the layout.
  • Show me the diagram as a picture.

Select a shape first, and you can say "this box". Changed shapes light up. Undo takes back the AI app's last step. The browser console shows every call of the AI app with its arguments and result. Calls through WebMCP (the tab-mcp browser extension, an agent in the browser) are also in Chrome's DevTools under Application → WebMCP, if your Chrome has that panel.