Erd Editor logo

Erd Editor

Lets coding agents inspect and edit ERD schema files through MCP, with live synchronization in supported editors.

Install Erd Editor

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "erd-editor": {
      "command": "npx",
      "args": [
        "-y",
        "@dineug/erd-editor-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

The erd-editor MCP server connects coding agents to ERD Editor documents and `.erd.json` files. It can inspect schemas, read focused DDL or raw representations, validate naming dictionaries, and apply structured edits to tables, columns, relationships, layout, and metadata. When VS Code, Obsidian, or a JetBrains IDE hosts the document, changes appear in that editor; without one, the server edits files on disk. Reach for it when an agent needs to make controlled schema changes without directly rewriting the ERD file.

Use cases

  • Inspect a large ERD in focused pages
  • Add tables and columns through an agent
  • Apply naming standards to schema fields
  • Validate dictionary and domain consistency
  • Rearrange a diagram after structural edits

Key features

  • Structured ERD inspection and editing
  • DDL, JSON, snapshot, and script reads
  • Dictionary checks with pagination
  • Agent-only undo and redo
  • Live editor synchronization
  • Direct file editing without an open editor

Tools77

What Erd Editor lets your agent do. Expand a tool for its parameters.

Verified live~17.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

30/30 checks healthy over the last 19d

What it can do

From the 77 tools this server returned when we ran it; 77 declare their own safety hints.

Can delete or modify data · 17Makes network requests · 77Read-only tools · 60
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age30 days
Maintainers1

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · @dineug/erd-editor-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1.7kStargazers on the source repository.
npm downloads1.2kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Tools exposed77Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Erd Editor works

What erd-editor MCP server does

erd-editor exposes ERD Editor documents to MCP clients as structured schema resources and editing operations. Agents can discover available documents, open a file for editing, inspect its contents, and save changes. The server works with an editor connected to the working directory or can operate directly on ERD files when no supported editor is serving them.

The document model covers tables, columns, indexes, relationships, table groups, memos, canvas positions, and naming dictionaries. Agents can also inspect logical and physical names, domains, terms, and words. Reads can return a complete snapshot, raw JSON, SQL DDL, or the document’s before and after scripts. Large schemas can be narrowed by table IDs, table names, group names, or search terms.

How it works

The MCP package provides one tool for each supported operation. Read-oriented calls include erd_list_documents, erd_list, erd_get, erd_read, and erd_list_checks. Editing calls create, remove, rename, move, configure, or annotate schema elements, while erd_undo and erd_redo track changes made by the agent separately from user edits.

When a VS Code, Obsidian, or JetBrains integration holds a document, opening it can display the file in that editor. VS Code keeps agent changes unsaved until erd_save is called; Obsidian and JetBrains integrations save as part of their normal editing behavior, while erd_save can write the document immediately. With no editor connection, file changes are written directly.

The server uses structured operations rather than asking agents to modify the .erd.json file themselves. Table moves can be issued individually or as a batch, automatic layout can arrange the whole canvas, and paginated responses expose nextOffset, missing, or notReturned information when a result needs to be continued.

Setup and configuration

Node.js 22.12 or later is required. Run the server from the project folder whose ERD documents it should access. Claude Code can register it with:

Terminal
claude mcp add --transport stdio erd-editor -- npx -y @dineug/erd-editor-mcp

Codex can use:

sh
codex mcp add erd-editor -- npx -y @dineug/erd-editor-mcp

The package is available as @dineug/erd-editor-mcp and uses the standard MCP stdio transport in these examples. A connected editor must have its connection enabled and its workspace or project trusted for edits to be accepted; an untrusted or disconnected editor permits reads but refuses changes.

Tools and capabilities

  • List documents, including path, open state, active state, dirty state, and read-only status.
  • Open existing documents or create missing .erd.json files.
  • Read complete snapshots, raw JSON, DDL, scripts, or selected portions of a large schema.
  • Inspect tables, columns, indexes, relationships, memos, groups, and dictionary entries in detail.
  • Add, remove, rename, comment, recolor, move, and automatically arrange tables.
  • Add or remove columns and change names, types, defaults, comments, logical names, domains, and column constraints.
  • Create and revise naming standards through logical names, word, term, and domain relationships.
  • Run dictionary checks that report errors, warnings, affected fields, suggestions, and per-code counts.
  • Save, undo, and redo agent edits with pagination and continuation details for large results.

Limitations and notes

An editor extension or plugin released before support for logical names, dictionaries, and domains may omit those fields when it saves a document, so affected users should update the integration. Removing a table also removes its columns, indexes, and relationships touching it; removing columns likewise removes dependent relationships and index entries.

Relationship data type synchronization can propagate column type changes through related keys. A change that conflicts with a linked dictionary domain can unlink the affected column or another column reached by synchronization. Physical names written explicitly are preserved rather than replaced by later logical-name derivation.

Large reads are intentionally refused when they cannot fit in one response. Use erd_list, erd_get, table or group filters, name searches, and pagination to retrieve a schema in smaller parts. Dictionary checks are also paginated, and fixing an issue can change the remaining result set, so a fresh listing from offset zero may be needed after edits.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Erd Editor

erd-editor is an MCP server that connects coding agents to ERD Editor documents and `.erd.json` files. Its main tools list, read, validate, open, save, and edit database schemas, including tables, columns, relationships, indexes, groups, memos, layouts, and naming dictionaries. It works with supported IDE plugins or directly on disk.

Install it through an MCP client with `npx -y @dineug/erd-editor-mcp` and run it from the project folder. Claude Code uses `claude mcp add --transport stdio erd-editor -- npx -y @dineug/erd-editor-mcp`; Codex uses `codex mcp add erd-editor -- npx -y @dineug/erd-editor-mcp`. Node.js 22.12 or later is required.

Yes. When the VS Code extension serves the working directory, the MCP server opens and edits the document in the ERD editor. VS Code keeps those agent changes unsaved until `erd_save` is called. A disconnected or untrusted workspace allows reads but refuses edits.

Yes. Without a connected VS Code, Obsidian, or JetBrains editor, the server works with ERD files under its working directory and writes edits to disk immediately. Opening a missing document can create an `.erd.json` file when the create option is used.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewErd Editor AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/erd-editor?style=directory)](https://allmcps.com/mcp/erd-editor)
HTML Embed
<a href="https://allmcps.com/mcp/erd-editor"><img src="https://allmcps.com/api/badge/erd-editor?style=directory" alt="Erd Editor on AllMCPs" /></a>