# CTD Studio (code-to-diagram) > Local-first browser diagram editor and MCP server (`ctd-mcp` v1.3.0) supporting Mermaid (v12.3.0), Graphviz DOT, PlantUML, D2, SQL DDL, TypeScript, and XML (Draw.io `mxGraphModel`, BPMN, generic XML). ## Canonical Pages & Static Assets - Home: https://ctdstudio.dev/ (same build as https://code-to-diagram.vercel.app/) - Interactive Studio Workbench: https://ctdstudio.dev/app - Docs & tutorial: https://code-to-diagram.vercel.app/docs - Sidecar JSON Schema (v1): https://code-to-diagram.vercel.app/schema/ctd-sidecar.v1.json - Git-flow sample pair: https://code-to-diagram.vercel.app/samples/git-flow/flow.mmd and https://code-to-diagram.vercel.app/samples/git-flow/flow.ctd.json - Privacy & Cookies: https://code-to-diagram.vercel.app/privacy - Terms of Use (Elastic License 2.0): https://code-to-diagram.vercel.app/terms - Repository: https://github.com/cxernlol/code-to-diagram - Security & threat model: https://github.com/cxernlol/code-to-diagram/blob/main/docs/SECURITY.md - Report vulnerabilities (private): https://github.com/cxernlol/code-to-diagram/security/advisories/new ## Key Capabilities - **7 Input Formats:** Mermaid (v12.3.0), Graphviz DOT, PlantUML, D2, SQL DDL, TypeScript, and XML (Draw.io, BPMN, generic XML). - **Onboarding Lanes & Coursework Starters:** First-time tutorial (`/docs`) and coursework templates (`Flowchart`, `Loop Trace`, `Intro OOP`, `Student ER Lab`, `Vending Machine`, `SQL Schema`) alongside Project git + sidecar (`*.mmd` + `*.ctd.json`) workflows. - **Interactive Canvas:** Drag boxes, adjust 3-point connector handles (start, middle, end/arrow), snap to grid, switch themes/looks (`classic` / `handDrawn`), and export SVG, PNG, or submission bundle (PNG + `.mmd` + `.ctd.json`). - **Local-First Privacy:** Zero cookies, IndexedDB local storage (`sgs-studio`), and optional client-side BYOK AI refinement. - **MCP Server (`ctd-mcp` v1.3.0):** `npx -y ctd-mcp` — convert/translate/IR plus layout and verification tools (`regen_preserve_layout`, `list_orphan_layout`, `diff_ir`, `verify_diagram`, `verify_against_files`, `preview_patch`, `patch_source`, `check_drift`, `get_studio_info` with capabilities).