Free, simple, and intuitive database schema editor and SQL generator
open coreAGPL-3.0-onlyself-hostablefreeMCP
drawDB is a browser-based editor for database entity relationship diagrams: you draw tables, relationships, subject areas and notes on a canvas, then export SQL for MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, Oracle or a generic dialect, or DBML, JSON or an image. It imports DDL, DBML or a live database's schema by having you run one read-only query and paste its result, so it never sees your credentials, and it flags issues such as missing primary keys. The editor needs no account and is open source under the AGPL; self-hosted, it keeps diagrams in the browser. drawDB Pro on drawdb.app adds cloud storage, version history, sharing, GitHub sync, an AI assistant and a read-only MCP server (Solo), and live collaboration and permissions (Team).
Ways to install
On your own server
Hosted for you
Problems it solves
- sketch a database schema visually and get the CREATE TABLE statements out of it
- a free dbdiagram.io alternative that doesn't need an account
- draw an ER diagram of our existing Postgres database without giving a tool our credentials
- turn a SQL dump's DDL into a diagram so I can understand a legacy schema
- convert a schema between MySQL and PostgreSQL syntax while designing it
- an open source ERD tool I can self-host for my team
- spot missing primary keys and duplicate names before I run a migration
- share a read-only link to our database diagram with the rest of the team
- let my AI coding agent read our database schema while it writes queries
- design a database together with a colleague in real time
- export a database diagram as an image for documentation
- keep a database design synced to a GitHub repository
Features
- tables, relationships, subject areas and notes on an infinite canvas with auto-layout
- SQL for MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, Oracle and a generic dialect
- import from DDL, DBML or a live database by pasting the result of one read-only query
- export SQL, DBML, JSON or an image
- views, enums and PostgreSQL composite types
- issue detection: duplicate names, missing primary keys and circular references
- 100 example schemas, keyboard shortcuts and presentation mode
- no account needed; the open source editor stores diagrams in the browser
- Pro: cloud storage, version history, public sharing, GitHub sync and an AI assistant
- Pro Team: live collaboration with shared cursors, team management and per-diagram permissions
View 1 more
- read-only MCP server (hosted at mcp.drawdb.app or @drawdb/mcp) for tables, columns, relationships and enums
Ways to run it
drawDB (drawdb.app)
Free editor; Solo $14/month; Team $17/seat/month34
Only in this edition
- cloud storage and sync
- version history
- public sharing
- GitHub sync
- AI assistant
- MCP server
- Team: live collaboration, team management and per-diagram permissions
drawDB self-hosted
Not included
- cloud storage and sync: the open source editor keeps diagrams in the browser's IndexedDB, so export them before clearing site data37
- Pro features (version history, public sharing, live collaboration, permissions, GitHub sync, the AI assistant and MCP), which need drawdb.app4
You arrange
- a Docker host or static web hosting
- the separate drawdb-server and its environment variables if you want sharing
Capabilities
| Has an MCP server | plan not known |
|---|
Alternatives
The same job
These do what drawDB does.
