Entity Relationship Diagram Designer
ERD Designer is a free, open-source tool for visually designing database schemas.
Design your tables and relationships in the browser, VSCode, or Google Drive
— with AI integration via an agent plugin (CLI + skill) or MCP (Model Context Protocol).
Inspired by ERMaster, built for the modern development workflow.
No installation, no account. Your diagrams stay in your browser.
Why ERD Designer?
- Design on a canvas, not in a config file — drag-and-drop tables, click-to-connect relationships,
and instant DDL — no YAML or hand-written SQL to start.
- Your coding agent can edit it too — the diagram is not a dead-end artifact.
Claude Code and other agents create tables, add columns, wire up relations, and generate DDL through
the same tool catalog the app itself uses.
- Output your team actually needs — DDL for 7 databases, plus Excel / Google Spreadsheet
specification documents and PNG / SVG / interactive HTML diagrams.
- Reviewable in Git —
.erd is plain JSON, so schema changes show up as a readable diff
in pull requests instead of an opaque binary blob.
- Define a column once, reuse it everywhere — Column Share Models and Column Groups keep
created_at, tenant keys, and audit columns consistent across every table that uses them.
Features
Visual Database Design
- Drag-and-drop table design — Create and arrange tables, define columns, and set constraints on an interactive canvas
- Relationship management — Define 1:1 and 1:N relationships visually with automatic foreign key synchronization
- Perspectives — Organize large schemas into multiple views (e.g., by module or feature) for better manageability
- Memo notes — Add foreground/background memo notes to annotate your design
AI Agent Integration
- Agent plugin (CLI + skill) — A plugin with a bundled CLI lets coding agents edit
.erd files directly,
without a running app or MCP server. Works with Claude Code
and GitHub Copilot CLI.
Token-efficient: nothing is loaded into the agent context until the skill is used
- MCP Server — The VSCode extension includes a built-in
Model Context Protocol server, enabling AI assistants like Claude
to read and modify your ER diagrams programmatically
- One tool catalog, both surfaces — the MCP server and the CLI expose the same set of agent tools
(add tables and columns, create relations, manage indexes and constraints, arrange the canvas, export DDL),
so behavior never diverges between them
The agent plugin and the MCP server are still marked experimental — their tool surface may
change between releases. The visual editing features are stable.
Column Reuse & Sharing
- Column Share Model — Define a column once, reuse it across multiple tables. Type changes propagate automatically
- Column Groups — Bundle commonly used columns (e.g.,
created_at, updated_at) and apply them to tables in bulk
Import & Export
- DDL export — Generate CREATE TABLE scripts for PostgreSQL, MySQL, MariaDB, MS SQL Server, SQLite, BigQuery, and Snowflake
- DDL import — Import existing DDL scripts to auto-generate ER diagrams
- Specification documents — Export table definitions as Excel files or Google Spreadsheets
- Image export — Export as PNG, SVG, or interactive HTML with pan/zoom and perspective switching
Schema Verification (CLI)
A separately installed command-line tool, @kajitiluna/erd-cli, that compares a .erd design
against a live database or another revision. Install it and the commands below become available
in a terminal or a CI job, so the difference from production — and what a pull request actually
changes — can be traced mechanically instead of by eye.
erd-diff — Summarize what changed between two .erd revisions, without diffing the raw JSON
db-diff — Report where a live database has drifted from the design. Read-only (SELECT only)
migrate-ddl — Draft the ALTER statements that close the gap. Nothing is applied automatically
See packages/erd-cli/README.md for installation, all options,
and a GitHub Actions workflow