open source · free forever · no account needed

See your database.
Ship schema changes safely.

Import your live schema, design changes with your team, and export the SQL.

40.5k GitHub stars3.5k forks51 languages
n111n1n1n1
galactic_users
id
INT
username
VARCHAR
email
VARCHAR
password
VARCHAR
celestial_data
id
INT
user_id
INT
type
ENUM
time
TIMESTAMP
content
VARCHAR
astro_mines
id
INT
asteroid_id
INT
data_id
INT
asteroids
id
INT
name
VARCHAR
location
VARCHAR
missions
id
INT
name
VARCHAR
leader_id
INT
target_id
INT
status
ENUM
Alex
Priya
Jordan
Sam
Maria
how it works

From live database
to shipped change

  1. 01Connect

    Run one read-only query against your database and paste the result. drawDB never sees your credentials.

    postgres · mysql · mssql · sqlite · mariadb · oracle
  2. 02Design

    Get an auto-laid-out diagram, then edit it with your team in real time, with live cursors and presence.

    auto-layout · live collaboration
  3. 03Ship

    Export clean DDL for your dialect, push the schema to GitHub, and let your AI agent read it over MCP.

    sql · dbml · github · mcp
postgrespostgres
mysqlmysql
mssqlmssql
sqlitesqlite
mariadbmariadb
oracleoracle
free and pro

Free forever.
Pro when your team needs it.

Compare plans
Free · open source
Visual editor

Tables, relationships, subject areas and notes on an infinite canvas, with copy, paste, duplicate, undo and redo.

7 SQL dialects

MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, Oracle and a generic dialect. Design once, generate DDL for the one you ship on.

Import and export

Bring a schema in from a live database, DDL or DBML. Take it out as SQL, DBML, JSON or an image.

SQL views

Build views from joins, columns and conditions. drawDB writes the CREATE VIEW for your dialect.

Enums and custom types

Define enums and PostgreSQL composite types, and use them in any column.

Issue detection

drawDB flags duplicate names, missing primary keys, empty fields and circular references before you export.

100 example schemas

Start from a real-world schema for e-commerce, SaaS, social, fintech and more, then make it yours.

Keyboard shortcuts

Add tables, duplicate, zoom and save without leaving the keyboard.

Presentation mode

Hide the panels and walk your team through the diagram in a design review.

Pro · from $14/month
Live collaborationTeam

Design together in real time with shared cursors, presence and instant sync.

Teams and permissionsTeam

Invite your team, assign admin or member roles, and decide who can view or edit each diagram.

GitHub SyncPro

Link a diagram to a repository. Push schema changes as a commit and pull changes back when someone edits the files.

AI assistantPro

Describe what you need and the assistant drafts tables, relationships and types in your diagram.

MCP serverPro

Let Claude, Cursor or any MCP client read your cloud schemas with an API key.

Cloud storagePro

Every diagram saved and synced across your devices, never lost to a cleared browser.

Version historyPro

Browse earlier versions, compare them, and restore any one.

Share linksPro

Send anyone a view-only link to a diagram.

for ai agents

Your AI agent can
read your schema

The drawDB MCP server gives Claude, Cursor, Windsurf and other MCP clients read-only access to your diagrams: tables, columns, relationships and enums. No key yet? It can still browse the 100 example schemas.

mcp.json
{
  "mcpServers": {
    "drawdb": {
      "command": "npx",
      "args": ["-y", "@drawdb/mcp"],
      "env": {
        "DRAWDB_API_KEY": "ddb_your_key_here"
      }
    }
  }
}
loved worldwide

Developers ship schemas
with drawDB

questions

Frequently asked

Yes. The editor is free and open source, runs in your browser and needs no account. Pro adds cloud storage, version history, GitHub Sync, the AI assistant and MCP, and team collaboration.

No. To import a live database you run one read-only query yourself and paste the result into drawDB. We never connect to your database and never see a password.

Solo ($14/month) is for one person: cloud storage, version history, sharing, GitHub Sync, the AI assistant and MCP. Team ($17 per seat per month) adds live collaboration, team management and per-diagram permissions.

Yes. Cancel from your account settings and you keep Pro until the end of the billing period. Your diagrams stay yours and can be exported as SQL, DBML or JSON at any time.

Yes. Sign up with your school email address and the discount on Solo is applied at checkout automatically.

Yes. The editor is open source: clone the GitHub repository and run it with Docker. Diagrams then stay in your browser on your own infrastructure. Pro features need drawdb.app.

start designing

See your schema today

No account needed. Import your database or open the editor and start drawing.