Database schema designer

Design your schema and your system, together.

DB Planner turns DBML into interactive entity relationship diagrams, and Mermaid into class diagrams and flowcharts, on one live blueprint your whole team edits in real time.

Free plan, no card needed. See pricing

Everything a schema needs, on one board

Readable DBML as the source of truth, a live shared canvas, and designs that leave the board as working code.

  • ERD

    Interactive diagrams from DBML

    Typed fields, primary and foreign key badges, enums as their own cards, and curved relationship lines that highlight on hover.

  • USE

    Modular, multi-file schemas

    Split a schema across as many DBML files as you like. Tables and enums reference each other across files automatically, with no import lines to maintain.

  • LIVE

    Real-time collaboration

    Everyone signed in sees the same board. Live presence, shared layout, and organizations with owner, admin, and member roles.

  • OUT

    Import SQL, export working code

    Paste a dump from Postgres, MySQL, or MSSQL to get a diagram in seconds. When the design settles, export it back out as C# models, SQL, or DBML.

  • TXT

    A real code editor built in

    Edit DBML with syntax highlighting, bracket matching, and in-editor find, and watch the diagram update as you type.

  • NOTE

    Sticky notes, table notes, field notes

    Drop draggable sticky notes anywhere on the board. Write table and column notes in the DBML and they render on the card.

From SQL dump to shared diagram

Bring the database you already have. DB Planner converts Postgres, MySQL, and MSSQL DDL into clean DBML and lays out the diagram for you, with undo and redo, zoom toward the cursor, and one-click auto-arrange. Ship the result as C# models with EF annotations, SQL with per-dialect type-compatibility warnings, or plain DBML.

See how import and export work

schema.dbml postgres → dbml
Table users {
  id uuid [pk]
  email varchar [not null]
}

Table orders {
  id uuid [pk]
  user_id uuid [ref: > users.id]
  status order_status
}
Model Context Protocol

Connect your AI agent to your schemas

DB Planner speaks MCP, so an AI client like Claude or Cursor can read and edit your projects, documents, and board directly. Add one URL, approve it once in the browser, and your agent works on the same live schema your team does.

See what the connection can do

  1. 1

    Add the server

    Run one command in Claude Code:

    claude mcp add --transport http db-planner https://api.dbplanner.io/mcp

    or add it to your .mcp.json:

    .mcp.json
    {
      "mcpServers": {
        "db-planner": {
          "type": "http",
          "url": "https://api.dbplanner.io/mcp"
        }
      }
    }
  2. 2

    Approve once in the browser

    Sign in and choose the access you grant. Read and write are separate scopes, enforced on the server.

  3. 3

    Ask it to design

    The agent works with your real tables, not a copy.

How DB Planner compares

The DBML workflow you know, built out for teams. Where DB Planner goes further than single-file diagram editors:

How DB Planner compares to typical DBML editors
FeatureDB PlannerTypical DBML editors
Multi-file schemasYes, with no import lines to maintainOne file per diagram
Real-time team collaborationIncluded, $5 per added seatReserved for pricier team tiers
Code exportC# models, SQL in three dialects, DBMLUsually SQL and images
Notes on the diagramSeven-color sticky notes + markdown table and column notesVaries

Put your schema on the board

Start on the free plan and design your database with your team. Pro is $5 a month when you outgrow it.

Start designing free