ERD Designer
ERD Designer is a VSCode extension for visually designing database Entity Relationship Diagrams.
This tool is inspired by ERMaster.
Screenshots
 |
| 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 |
Features
- Visual ERD Design: Design database tables and relationships through an intuitive graphical interface
- Export Capabilities: Export diagrams as PNG images or generate DDL files
- Reusable Column Models: Share and reuse column definitions across multiple tables
- Organized Views: Use perspectives to group tables and memos by function or purpose
- Customizable Appearance: Customize colors for tables and memos to improve diagram readability
Getting Started
- Create a new file with the
.erd extension (e.g., my-database.erd)
- Open the file in VS Code
- The ERD Designer editor will automatically launch
- Start designing your database schema!
How to Use
Creating Tables
- Select Create Table mode from the toolbar
- Click on the canvas where you want to place a new table
- Define columns with types, constraints, and comments
- Use shared column models for consistency across tables
Defining Relationships
- Select Create Relation mode from the toolbar
- Click on a source table, then click on a target table to create a relationship
- Configure relationship types (1:1, 1:N, N:M)
- Set foreign key constraints and naming conventions
Organizing Your Diagram
- Use perspectives to create different views of your schema
- Group related tables by feature or module
- Apply colors to tables and memos for visual organization
Use MCP Server (Experimental)
ERD Designer includes an experimental MCP (Model Context Protocol) Server that allows AI assistants to interact with your ERD files.
Setup
Enable MCP Server in VS Code Settings
- Open VS Code Settings (Cmd+, on macOS)
- Search for "ERD Designer"
- Check "Enable MCP Server"
Configure MCP Server
- Create or edit
.vscode/mcp.json in your workspace
- Add the following configuration:
{
"servers": {
"erd-designer-mcp": {
"type": "http",
"url": "http://localhost:53753/mcp"
}
}
}
Start Using
- Once configured, AI assistants with MCP support can access and modify your ERD files
- The server runs locally on port 53753 when enabled
Important Notes
- This feature is experimental and subject to change
- The MCP Server only runs when VS Code is active
- Only ERD files currently open in VS Code can be accessed and modified
- Ensure the port 53753 is not blocked by firewall settings
Documentation
For detailed documentation and advanced features, please visit the Wiki.
Requirements
- Visual Studio Code version 1.105.0 or higher
Known Issues
Please report issues on GitHub Issues.
Contributing
Contributions are welcome!
Please visit our GitHub repository for more information.
License
This extension is licensed under the MIT License.
See the LICENSE file for details.
| |