MCP server

codex-tldraw MCP: Repo-Scanned Workflow Diagrams

The codex-tldraw MCP server scans a repository and writes an editable tldraw workflow diagram, plus a portable SVG preview, directly into the project boards.

Run
codex mcp add codex-tldraw -- npx -y codex-tldraw-mcp
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is codex-tldraw MCP?

codex-tldraw-mcp is a stdio MCP server that scans a repository, infers its product workflow and writes an editable tldraw board plus an SVG preview into the project. It also builds a trackable JavaScript and TypeScript import graph, compares it for drift after changes, and draws prompt-driven diagrams and architecture sketches without scanning anything.

It is a stdio MCP server, built Codex-first, that turns a repository scan or a plain description into an editable tldraw board. The board and a portable SVG preview save into the repository itself, so the diagram stays with the project it explains.

What the tools do

  • diagram_repo scans a repository and appends an inferred product workflow diagram to a named board.
  • draw_canvas appends a prompt-provided workflow, state machine, architecture sketch or plan, with no repository scan involved.
  • draw_architecture appends a simple codebase view: one main flow, supporting services below it, each step showing at most three actions and two short errors.
  • diagram_code_graph scans local JavaScript and TypeScript modules and appends a trackable import graph as nodes and edges.
  • compare_code_graph previews drift against a stored code graph, or applies markers for changed and stale elements.
  • list_boards lists the boards saved under a repository.
  • read_board_summary summarizes a board's diagrams and shape counts and returns both artifact paths.

Two ways to get a diagram

diagram_repo and diagram_code_graph read the actual repository. draw_canvas and draw_architecture take a written description instead and skip scanning entirely, so they work even against a plan that has no code yet.

Who codex-tldraw MCP is for

Best for

  • Codex users who want a repository turned into a shareable product workflow diagram without hand-drawing it first.
  • Teams tracking a JavaScript or TypeScript import graph across changes, where compare_code_graph flags stale and changed modules after a refactor.
  • Anyone who wants a board that opens in any tldraw-compatible viewer, plus an SVG preview any MCP host or browser can render without one.

Not for

  • When the need is a live interactive canvas for architecture diagrams with real AWS, Azure or GCP vendor icons, Excalidraw Icons MCP is the better fit for that canvas.
  • When the task is loading general design guidelines for charts, mockups or SVG art on demand rather than scanning a real repository, Generative UI MCP is the better fit for that guidance.
  • When the output wanted is an animated flow diagram rendered from plain English or Mermaid into one self-contained SVG, Dashmotion is the better fit for that animation.
  • When the job is running a separate local desktop design editor beside the canvas with Codex attached, rather than writing boards from a repository scan, Figmaboy MCP is the better fit for that editor.