Overview of @dineug/erd-editor-mcp capabilities
@dineug/erd-editor-mcp is an MCP server that enables coding agents to edit erd-editor diagrams. The agent acts as a collaborator, with tools to perform operations such as adding tables, renaming columns, relating tables, importing DDL dumps, and reading schemas as SQL.
Key capabilities include:
- Modifying schema elements: tables, columns (and options), relationships, indexes, memos, colors, and canvas positions.
- Replacing documents: Supports parsing SQL DDL, GraphQL SDL, DBML, AML, or other
.erd.jsonfiles. - Reading diagrams: Can export as IDs, entities, DDL for eight different databases, or raw JSON.
- Managing settings: Configuring the database, Code Generator language/name cases, bracket types, and table visibility.
- Transactional edits: Using
erd_batchto run multiple edits as a single unit. - Independent undo/redo: The agent can undo its own edits without affecting the user's changes.
Limitations:
- Cannot control the viewer (zoom, scroll, or switch tabs).
- Cannot execute the Code Generator directly; it reads DDL/JSON via
erd_readand generates code itself.