Entity Relationship Diagram Designer

July 5, 2026 · View on GitHub

logo

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.

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

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, and MS SQL Server
  • 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

AI Integration (Experimental)

  • 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.

Multi-Platform

BrowserGoogle DriveVSCode
AccessOpen online toolGoogle Workspace MarketplaceVS Code Marketplace
StorageLocal (IndexedDB)Google DriveLocal file system (.erd)
Spec exportExcelGoogle SpreadsheetExcel
Team sharingView sharing via DriveGit version control
Agent plugin (CLI)Via Google Drive for DesktopSupported
MCP / AISupported

Screenshots

Canvas
Main canvas view with tables and relationships
Edit ColumnAdd relation
Editing table columns using shared modelsCreating relationships between tables
Select colorPerspective
Customizing table and memo colorsOrganizing tables by perspectives

Supported Databases

  • PostgreSQL — Schema support, array types, GIN/GiST/BRIN indexes
  • MySQL — CHARACTER SET / COLLATE, FULLTEXT / SPATIAL indexes, Auto Increment
  • MS SQL Server — Schema support, clustered indexes, Identity columns

Getting Started

Online Tool

Try ERD Designer instantly at kajitiluna.github.io/erd-designer — no installation or account required. Your data is stored locally in your browser (IndexedDB).

Google Drive App

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).

VSCode Extension

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.

AI Agent Integration (agent plugin)

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

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-cli.cjs, requires Node.js 20+), 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. The bundled CLI can also be downloaded standalone from GitHub Releases.

Note: The agent plugin is experimental, like the MCP Server.

Manual

Please refer to the Wiki for detailed documentation.

Sample file

You can use the sample ERD file as a reference for your designs:

How to use:

  • Online Tool: Download the file and import it into ERD Designer
  • Google Drive App / VSCode Extension: Open the downloaded file directly

Installation and Usage

Local Installation

  1. Clone the repository:

    git clone https://github.com/kajitiluna/erd-designer.git
    
  2. Install dependencies:

    npm ci
    
  3. Start the development server:

    npm run dev
    

Usage

After starting the development server, open your browser and navigate to http://localhost:5173 to use the application.

Development

  • Node.js Requirement: Ensure you have Node.js (version 22.12 or higher) installed.
  • Build the Project:
    npm run build
    
  • Run Tests:
    npm run testrun
    

Contributing

Contributions are welcome! Please feel free to open an Issue for bug reports or feature requests.

Contribution guidelines are currently under preparation. In the meantime:

  • For bugs: please include steps to reproduce, expected behavior, screenshots, and your environment
  • For features: please describe the use case and the problem you're trying to solve
  • Pull requests are welcome — please open an issue first to discuss significant changes

License

ERD Designer is distributed under the Apache License 2.0.