SkillAgentSearch skills...

erd-editor

ERD Editor: design database schemas visually, import SQL DDL, GraphQL, DBML and AML, export DDL and code for 22 languages. Web app, Google Drive, VS Code, IntelliJ, Obsidian, a custom element, and an MCP server that lets coding agents edit diagrams live.

Install / Use

claude mcp add dineug -- npx -y github:dineug/erd-editor

If the server publishes to npm under a different name, use that package instead β€” check the repo README.

About this skill
πŸ”Œ

MCP Server

Model Context Protocol server

Quality Score

94/100

Supported Platforms

Claude Code
Claude Desktop

Our assessment of erd-editor

erd-editor scores 94/100 on our quality scale, 76th of 603 Data & Analytics skills we index (top 13%).

Its MCP Server is 22 KB long, well organised into 17 sections with 9 code examples: a thorough specification that gives an agent plenty to work with.

With 1,723 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated today, so erd-editor is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit β€” read the skill file before letting an agent act on it.

erd-editor compared with similar skills

All 4 of these similar skills score higher than erd-editor; compare them before choosing.

SkillScoreStarsUpdatedFormat
erd-editor (this skill)by dineug941.7ktodayMCP Server
claude-memby thedotmack10099.3k2d agoCLAUDE.md
Agent-Reachby Panniantong10095.5k3d agoCLAUDE.md
headroomby headroomlabs-ai10075.0ktodayCLAUDE.md
CowAgentby zhayujie10047.3k1d agoCLAUDE.md

Frequently asked questions

How do I install erd-editor?
Run claude mcp add dineug -- npx -y github:dineug/erd-editor. The install tabs above show the steps for each supported agent.
Which AI agents does erd-editor work with?
It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
Is erd-editor safe to use?
It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is erd-editor still maintained?
The repository was last updated today, so erd-editor is actively maintained.

ERD Editor

Entity-Relationship Diagram Editor

English | ν•œκ΅­μ–΄ | δΈ­ζ–‡ | ζ—₯本θͺž

ERD Editor

Design a database schema visually, bring in one you already have from SQL DDL, GraphQL SDL, DBML or AML, and take it out as DDL or as generated code. ERD Editor is one editor and one file format on erd-editor.io, in Google Drive, VS Code, IntelliJ-based IDEs and Obsidian, and in your own page as a custom element, and a coding agent edits the same diagrams through its MCP server.

Where to use it

| | Install | | | --- | --- | --- | | Web app | erd-editor.io | Installable PWA that launches offline, real-time collaboration | | Google Drive | Google Workspace Marketplace | Adds ERD Editor to Drive's Open with and New menus, saving back to the same file | | VS Code | Marketplace | Opens .erd.json files in a custom editor | | IntelliJ | JetBrains Marketplace | Same, for IntelliJ-based IDEs | | Obsidian | Community plugins | Opens .erd and .erd.json files in a vault tab, desktop only | | Your app | npm install @dineug/erd-editor | The framework-free <erd-editor> custom element | | Coding agents | @dineug/erd-editor-mcp | An MCP server for Claude Code, Codex or another client, live in VS Code, a JetBrains IDE or Obsidian, or on the file |

To try it in an IDE, create an empty file with a .erd.json extension and open it. In Obsidian, run ERD Editor: Create new diagram from Obsidian's command palette. In Google Drive, choose New β†’ More β†’ ERD Editor.

Features

Design

  • Visual schema design β€” tables, columns, memos, and four relationship cardinalities (Zero One, Zero N, One Only, One N)
  • Quick edits β€” Alt+N adds a table and Alt+Enter a column, Alt+K toggles the primary key on the focused column, or on every selected column when it is one of them, and Delete or Backspace removes the selection, each in one undo step; the Shortcuts page of the editor's Settings tab lists every key
  • Link existing columns β€” while you draw a relationship with a mouse or a pen, the buttons beside the table it ends on either map the parent's key onto columns that table already has or add new ones, named after the parent table when the key is one word (user_id for user's id), and Map Columns in a relationship's right-click menu changes its columns later
  • Referential actions β€” set On Delete and On Update (NO ACTION, CASCADE, SET NULL, SET DEFAULT, RESTRICT) from a relationship's right-click menu, which marks one the current database leaves out; the line shows them at its child end as D:C U:R, and View Option's Referential Actions hides the labels. SQL, DBML and AML import read them, and the DDL export and the code generators that have a place for them write the ones the target supports
  • Alternate keys β€” View Option's Alternate Key marks the columns of each unique index over two or more columns as AK1.1, AK1.2, and SQL import reads a UNIQUE over several columns as one such index
  • Table groups β€” draw a box behind related tables, which you name and can color, with New Table Group in the canvas menu or the command palette, or group the selected tables from their right-click menu. A table joins a group when you drop it inside and leaves when you drop it outside, dragging a group by its title moves its tables with it, each member's header takes the group's color, View Option hides the groups, and DBML import and the Code Generator's DBML carry them as TableGroups
  • Auto Layout β€” place every table again by Force, Flow or a vertical or horizontal tree from the canvas menu or the command palette, table groups kept together, in one undo step; Force shows a preview you apply or cancel, and the others land at once
  • Copy, paste and colors β€” copy tables and memos and paste them as new ones, into another diagram too or into a spreadsheet as a grid, hold Alt while dragging to duplicate them, and color a table, memo or table group from its right-click menu
  • Clean diffs β€” the scroll position and zoom, the open tab, the code generator's language and name cases and the bracket type are locked by default, so the file keeps the values they had when locked and looking around never changes it; the file, written in a fixed order, also leaves out measured widths, connector anchors and removed items

Import

  • SQL DDL import β€” bring in a .sql dump from any of the eight vendors below. The parser reads CREATE TABLE, CREATE INDEX, ALTER TABLE constraints and table and column comments (COMMENT ON, SQL Server's sp_addextendedproperty), and skips what it does not recognize, so an awkward dump imports partially rather than failing outright
  • GraphQL SDL import β€” bring in a schema from any tool that emits SDL. Object types become tables, scalars map to the diagram's own dialect, and the fields that point at another type become the relationships; the root types and the wrapper types Relay, Federation and Hasura generate are left out rather than drawn as tables
  • DBML import β€” bring in a .dbml file written for dbdiagram.io or dbdocs.io, or emitted by sql2dbml or prisma-dbml-generator. Tables, columns, indexes, enums, header colors, every Ref spelling and each TableGroup arrive; a Project or a sticky Note is skipped rather than refused
  • AML import β€” bring in an .aml file written for Azimutt, in either the v2 or the legacy v1 spelling. Entities, attributes, indexes, enums, colors and every relation arrow arrive; a check and a struct type are skipped rather than refused, and a view arrives as a table
  • Imports land laid out β€” a schema picked from the Import menu, the command palette or a host's file dialog arrives with its tables placed by their relationships (in rows when it has none), and one undo puts the previous diagram back. A SQL, DBML, AML or GraphQL file imported into erd-editor.io's schema list or the Google Drive editor becomes a new diagram laid out the same way
  • Import and Add β€” the menu beside Import, and its five formats in the command palette, add a .sql, GraphQL, DBML, AML or .erd.json file to the diagram instead of replacing it: its tables arrive below everything already there, laid out the same way (an .erd.json file keeps its own placement), selected, and one undo takes them away. A table whose name is already taken arrives as a second table rather than merging, and a foreign key to a table outside the file is dropped

Export and code

  • SQL DDL export β€” Databricks, MariaDB, MSSQL, MySQL, Oracle, PostgreSQL, Snowflake and SQLite, from the Schema SQL tab, which saves the DDL as a .sql file or copies it
  • Schema SQL options β€” a panel beside the DDL picks the database and the bracket type, CREATE TABLE IF NOT EXISTS or drop and re-create and a USE or CREATE + USE header, each where the database has it, and the tables by table group, and keeps SQL of your own to write before and after the tables. The statements, header and tables stay with this editor until you close it and never reach the file; the scripts are saved in the document
  • Code generation β€” TypeScript, GraphQL, C#, Java, JPA, Kotlin, Scala, Go, SQLAlchemy, TypeORM, Sequelize, Drizzle, DBML, AML, Mermaid, PHP, Doctrine, Rust, SeaORM, Swift, Zod and JSON Schema, from the Code Generator tab. Its options panel picks the language, the database, the table and column name cases and, for Doctrine, JPA and SeaORM, the bracket type, and saves the code as a file with the language's extension
  • Export β€” .erd.json, .sql, and a .png or .svg from a dialog with a preview: transparent background, light or dark, the PNG at 1x to 3x or copied to the clipboard instead

Find and navigate

  • Quick search β€” Ctrl/Cmd+K opens the command palette to run editor commands (new table, import, export, Auto Layout, tabs, theme, language and more), or to jump to a table after #, a column after @, and a comment or memo after :; Korean also matches by its initial consonants (γ……γ…‡γ…ˆ finds μ‚¬μš©μž)
  • Find and replace β€” Ctrl/Cmd+F searches table and column names, comments and memos, with match case, whole word and regular expressions, and one undo takes back a Replace All
  • Visualization β€” Graph mode draws a force-directed view of how the tables relate. Flow mode lays them out by their relationships, lights a table you hover and the tables it relates to, and shows names only, keys only or all fields; Focus on this table in a table's right-click menu opens Flow on that table and its neighbours, or, when it is one of several selected tables, as Focus on selected tables on all of them and their neighbours, as Alt+F does for the selection, and neither view writes its layout into the file
  • Zoom and pan β€” pinch a trackpad or two fingers to zoom, drag with the middle button to pan from anywhere, and click the zoom level on the floating toolbar to go back to 100%
  • Time travel β€” replay this editing session's history on the canvas and jump to any point in it, from the toolbar
  • Diff viewer β€” compare the diagram with another .json file from the canvas menu
  • Undo / redo β€” every edit, from the toolbar or Ctrl/Cmd+Z and Ctrl/Cmd+Shift+Z, in the editor's own history

Language and theme

  • Display language β€” the editor's menus, panels, dialogs, command palette and messages in 25 languages, Arabic, Hebrew and Persian laid out right to left while the diagram stays left to right. Pick one from the toolbar's language button or Display Language in the command palette, or System, the default, which follows the language of the browser or the host and shows English for one the editor does not offer; table and column names, SQL keywords, data types and generated code stay as they are
  • Theme β€” the toolbar's theme builder picks the appearance (System, Light or Dark), a gray color and an accent color, and Theme in the command palette picks the appearance; System follows the operating system's or the host's light or dark theme, and the pick is kept in the browser on erd-editor.io and in each plugin's settings, while the npm element leaves it to its host
  • Welcome screen β€” an empty diagram you can edit opens on a menu of New Table, New Memo, Import, Command Palette and Shortcuts, with arrows at the toolbar's search, theme and language buttons and at the floating toolbar where the canvas has room, until its first table, memo or shown table group; the npm element shows it, its language picker and its theme builder only once its host turns them on, and shows English until its host sets a language or turns the picker on

Collaboration and coding agents

  • Real-time collaboration (experimental) β€” start a session from erd-editor.io's sidebar and share its link: everyone who opens it edits the diagram with you, peer to peer and end-to-end encrypted, with no backend holding your schema. Embedders get the same action stream through the element's getSharedStore()
  • Coding agents β€” Claude Code, Codex or any other MCP client edits a diagram through @dineug/erd-editor-mcp, live on the canvas in VS Code, Obsidian or a JetBrains IDE, where the agent's undo reverts only its own edits, or on the file itself when no editor holds it

Embedding

npm in

Truncated for display β€” read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars1.7k
CategoryData
Updated4h ago
Forks158

Languages

TypeScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit β€” see the Safety scan above for what the skill file itself contains.

No cautions
erd-editor β€” MCP Server: Install & Safety Check | SkillAgent