dineug423 downloadsEdit Entity-Relationship Diagrams in .erd files: design tables and relationships, import SQL and export DDL.
Entity-Relationship Diagram Editor for Obsidian

Design a database schema visually, right inside your vault. Diagrams are plain JSON files next to your notes, so they sync and back up like everything else in the vault, and the editor never connects to a database. Desktop only.
In Obsidian, open Settings → Community plugins, choose Browse, search for ERD Editor (listing), then select Install and Enable.
To install by hand, download main.js, manifest.json and styles.css from the
latest release into
.obsidian/plugins/erd-editor in your vault, then enable ERD Editor in
Settings → Community plugins.
.erd file and opens it.Alt+N and a column with Alt+Enter, or right-click the canvas and choose
Import to start from a .sql, GraphQL, DBML or AML file..erd files show up in the file explorer. .erd.json files open from links, and the file explorer
lists them once Settings → Files and links → Detect all file extensions is on. A file the editor
cannot read, such as one left with merge conflict markers, opens read-only and is never replaced.
Ctrl/Cmd+K), an Explorer tree with find and replace, Graph
and Flow viewsDatabases: Databricks, MariaDB, MSSQL, MySQL, Oracle, PostgreSQL, Snowflake, SQLite
Code: TypeScript, GraphQL, C#, Java, JPA, Kotlin, Scala, Go, SQLAlchemy, TypeORM, Sequelize, Drizzle, DBML, AML, Mermaid, PHP, Doctrine, Rust, SeaORM, Swift, Zod, JSON Schema
Every feature step by step: the Editing Guide.
A coding agent such as Claude Code or Codex edits the diagrams in your vault through the ERD Editor MCP server. Each change shows up on the canvas as it happens, and the agent's undo reverts only its own edits.
Add it with one command, in your vault folder (Node.js 22.12 or later):
# Claude Code
claude mcp add --transport stdio erd-editor -- npx -y @dineug/erd-editor-mcp
# Codex
codex mcp add erd-editor -- npx -y @dineug/erd-editor-mcp
Then start the agent in the vault folder and ask, for example "Add a reviews table to schema.erd,
related to users and products". Name new diagrams with .erd so the file explorer lists them.
Other clients and the tool list are in the
MCP server's README.
Settings → ERD Editor → Coding agents, on by default, turns the connection off for the vault; the agent can then read the diagrams but never writes them. Obsidian installed from Flathub runs in a sandbox the MCP server cannot reach, so there the agent edits the files on disk, and an edit you have not saved yet gives way to the agent's.
The plugin makes no network requests and sends no telemetry. Its one connection is local, from an MCP server on this computer, through a socket file or named pipe, never a network port. With Coding agents on, each vault window writes two files in your home folder, outside the vault:
~/.erd-editor/ide/<pid>.json — a lock file, readable by your user account only, naming the vault
folder, the diagrams open in the window and a random token the MCP server must present,
rewritten as diagrams open and close~/.erd-editor/ide/<pid>.sock — the socket the MCP server connects to (a named pipe on Windows,
or in the system temporary folder when the home folder path is too long)Both are removed when the window closes, Obsidian quits or the plugin is turned off, and a reload replaces them. A starting window also removes those left by windows that have exited, as VS Code and JetBrains IDEs do in the same folder. With Coding agents off, the window keeps only the lock file, so an agent still knows not to write behind the editor. A window in a Flatpak sandbox writes and removes none of these files.
Settings → ERD Editor, kept per vault:
| Setting | Default | Values |
|---|---|---|
| Appearance | Auto | Auto, Light, Dark |
| Gray color | Slate | Gray, Mauve, Slate, Sage, Olive, Sand |
| Accent color | Indigo | 26 accents |
| Display language | Auto | Auto, or one of 25 languages by its own name |
| Coding agents | on | on, off |
Auto follows Obsidian's theme and language. The editor's theme builder and language button change these same settings. The plugin's own settings and notices stay in English.
@dineug/erd-editor — the editor as a custom
element for your own app@dineug/erd-editor-mcp — the MCP server
coding agents edit diagrams throughFound a bug or want a feature? Open an issue. The
plugin's source lives in the erd-editor monorepo, in
packages/obsidian-plugin.
MIT © SeungHwan-Lee