Free, open-source ERD designer for browser, VS Code & Google Drive — with AI agent integration (MCP / Claude Code plugin). DDL export for 7 databases.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
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.查看完整 README ↗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.
.erd is plain JSON, so schema changes show up as a readable diff
in pull requests instead of an opaque binary blob.created_at, tenant keys, and audit columns consistent across every table that uses them..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 usedThe agent plugin and the MCP server are still marked experimental — their tool surface may change between releases. The visual editing features are stable.
created_at, updated_at) and apply them to tables in bulkA 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 JSONdb-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 automaticallySee packages/erd-cli/README.md for installation, all options, and a GitHub Actions workflow
| Browser | VSCode | Google Drive | |
|---|---|---|---|
| Access | Open online tool | VS Code Marketplace | Google Workspace Marketplace |
| Storage | Local (IndexedDB) | Local file system (.erd) | Google Drive |
| Spec export | Excel | Excel | Google Spreadsheet |
| Team sharing | — | Git version control | Via Drive |
| Agent plugin (CLI) | — | Supported | Supported (with auto-sync) see note |
| MCP / AI | — | Supported | — |
| Main canvas view with tables and relationships |
| Editing table columns using shared models | Creating relationships between tables |
| Customizing table and memo colors | Organizing tables by perspectives |
-- lines, foreign keys emitted as guidance commentsARRAY<T> / STRUCT types, NOT ENFORCED primary / foreign keys, OPTIONS(description=...) commentsCOMMENT syntax, AUTOINCREMENT, semi-structured types (VARIANT / OBJECT / ARRAY)PostgreSQL/MySQL-compatible databases such as Amazon Aurora, CockroachDB, and TiDB can generally be modeled using the corresponding dialect.
Try ERD Designer instantly at kajitiluna.github.io/erd-designer — no installation or account required. Your data is stored locally in your browser (IndexedDB).
Install from the Google Workspace Marketplace to save and edit ERD files on Google Drive. Shared files can be viewed simultaneously, though simultaneous editing is not supported (optimistic concurrency control).
Install from the Visual Studio Marketplace
to design ER diagrams within VSCode. Save as .erd files and manage them with Git.
[!NOTE] The MCP Server feature is currently experimental and under active development. Functionality and behavior may change in future releases.
Let a coding agent design tables incrementally by editing .erd files directly — no MCP server or running app required.
With Claude Code:
claude plugin marketplace add kajitiluna/erd-designer
claude plugin install erd-designer@erd-designer
Auto-update is off by default for third-party marketplaces. To be notified when a new version ships,
run /plugin in Claude Code, open the erd-designer marketplace, and select Enable auto-update.
Claude Code then updates the plugin on startup and shows Plugins updated: erd-designer.
With GitHub Copilot CLI:
copilot plugin marketplace add kajitiluna/erd-designer
copilot plugin install erd-designer@erd-designer
The plugin ships a skill and a self-contained CLI (agent-plugin/skills/erd-designer/scripts/erd-agent.cjs, requires Node.js 22+),
so the agent consumes almost no context until the skill is actually used.
The skill folder follows the open Agent Skills format, so other skill-compatible agents may also use it.
Files stored on Google Drive can be edited through the local path synced by
Google Drive for Desktop,
with the limitation described below.
[!TIP] (Google Drive app): Enable "Sync Google Drive" in the gear menu to auto-detect external changes (e.g. CLI edits) and pull them into the canvas within about 10 seconds, as an undoable edit. This is off by default — while off, close the tab before editing via CLI, then reopen it afterward to see the result.
[!NOTE] The agent plugin is experimental, like the MCP Server.
Please refer to the Wiki for detailed documentation.
You can use the sample ERD file as a reference for your designs:
How to use:
Clone the repository:
git clone https://github.com/kajitiluna/erd-designer.git
Install dependencies:
npm ci
Start the development server:
npm run dev
After starting the development server, open your browser and navigate to http://localhost:5173/erd-designer to use the application.
npm run build
npm run testrun
Contributions are welcome! See CONTRIBUTING.md for how to set up the project, what the review expects, and how to add a new agent tool.
This project follows a Code of Conduct. To report a security issue, see SECURITY.md.
ERD Designer is distributed under the Apache License 2.0.