Try Team free for 14 days
DB Diagram Flow

Native MCP server

The schema your AI agent can actually read — and edit

Design Postgres schemas in DBML or on a visual canvas, mirror a live database read-only, and plug your agent into the same diagrams through a native MCP server.

The agent loop

Your agent works the whole cycle

The MCP surface covers the full design loop — no pasting SQL back and forth.

  1. 01

    Connect

    Point your agent at the MCP endpoint with a scoped API key.

  2. 02

    The agent designs

    It writes DBML, checks it with validate_dbml — errors come back with line and column — and applies it with create_diagram or apply_dbml.

  3. 03

    Ship artifacts

    Export Postgres DDL with export_sql, a Drizzle schema with generate_drizzle, or share the diagram's URL.

MCP surface

Nine tools. The real surface, not a wrapper.

Remote MCP over Streamable HTTP with Bearer API keys. Every tool is a client of the same service layer the UI uses — same rules, same results.

Connect in one block

{
  "mcpServers": {
    "dbdiagramflow": {
      "type": "http",
      "url": "https://dbdiagramflow.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
Scoped keys
API keys carry read/write scopes — a read key can never mutate a diagram.
Idempotent creates
create_diagram takes a clientToken — a retried call returns the existing diagram, not a duplicate.
Speed limit per key
Every API key has a per-tier requests-per-minute limit — generous on Free, higher on Pro and Team.
ToolScopeWhat it does
validate_dbmlreadValidate DBML — errors come back with line and column
create_diagramwriteCreate a diagram from DBML or empty; returns its id and URL
list_diagramsreadList the diagrams the API key can access
get_schemareadRead a diagram's full model plus its DBML
apply_dbmlwriteReplace the DBML of a text diagram
edit_schemawriteApply structural edits to a flow diagram
export_sqlreadExport the schema as Postgres DDL
generate_drizzlereadGenerate the Drizzle schema
refresh_snapshotwriteRefresh the snapshot of a live-database diagram

Everything in one surface

Built for humans and their agents

Native MCP server

Nine tools over Streamable HTTP: validate, create, edit, export. Scoped API keys, idempotent writes, per-tier rate limits — the same rules the UI plays by.

Live database mirror

Point a read-only connection at your Postgres and keep a diagram in sync with the real schema. We only ever read.

DBML as the source of truth

Write schemas as plain DBML text — diffable, portable, and always what gets persisted.

Visual flow canvas

Design tables and relationships on a canvas with auto-layout presets.

Clone across modes

Start from a live mirror, clone into an editable text or canvas diagram in one step.

SQL & Drizzle export

Generate Postgres DDL or a typed Drizzle schema from any diagram.

Read-only share links

Publish a diagram at a non-guessable URL — strictly read-only.

Team workspaces

Share one workspace with owner, editor and viewer roles.

Pricing

Start free. Upgrade when your schemas — or your agents — outgrow it.

Free
The basics to design and share schemas.

$0

  • 10 diagrams
  • Public share link on every diagram
  • MCP access — up to ~30 requests/min
  • SQL & Drizzle export
Pro
Live database connections, faster MCP and unlimited diagrams.

$10/month

  • Unlimited diagrams
  • Private diagrams
  • Live read-only database connection
  • MCP access — higher request rate
  • SQL & Drizzle export
Team
14-day free trial
Everything in Pro, for your whole team.

$50/month

No charge until day 14

  • Everything in Pro
  • Team workspace with roles
  • Owners, editors and viewers

Give your agent a schema it can work with

Free includes MCP access — connect an agent in minutes.

Start free
DB Diagram Flow

Built on DBML by Holistics (Apache-2.0).