# SchemaSketch – database diagrams your AI agent can edit (DBML, MCP)

> Source: <https://schemasketch.dev/>
> Published: 2026-11-24 15:23:00+00:00

**Key takeaway:** Pointing an MCP-compatible client such as Claude at SchemaSketch lets it list, edit, validate and export the same DBML a user types by hand, and the editor exports Laravel migrations one per table plus Eloquent models with fillable, casts and relationships wired up.

# Think it in text.

Watch your database draw itself.

 Write tables in a small text language and see a live, editable database diagram build in real time — then export real SQL, Laravel migrations, or hand the whole schema to an AI assistant over MCP.

## Not a screenshot. This is the actual editor.

Typing on the left renders live on the right — the same engine that runs the real app.

## Three reasons this isn't just another diagram tool

### Every feature, actually free

Not a trial, not a "free tier" that quietly caps you at three diagrams. Four SQL dialects, live collaboration, version history, the MCP server — all of it, forever, on every account. No card, no catch.

### Built for AI, not bolted on

Point Claude or any MCP-compatible client at your diagrams and it reads and writes the same DBML you'd type by hand — list, edit, validate, export. Nothing else in this category speaks MCP.

### Speaks Laravel, not just SQL

Most diagram tools stop at a `.sql` file. This one hands you real, ready-to-run Laravel migrations — one per table, plus the foreign keys — and Eloquent models with fillable, casts, and relationships already wired up, so the schema actually becomes code. [More →](https://schemasketch.dev/laravel)

Already have a Laravel app? The [schemasketch/laravel package](https://schemasketch.dev/laravel-package) draws a diagram of your database and turns diagram changes back into migrations.

## Everything a schema needs, nothing it doesn't

Every one of these ships in the free tier — there's no paid tier holding features back.

### Live text-to-diagram

Type a table, see it appear. No dragging boxes around just to sketch a schema.

### Drag-and-drop relationships

Draw a foreign key by dragging from one column to another — direction inferred automatically.

### Subject areas

Group related tables into colored, labeled regions — drag the region to move every table inside it together.

### Built-in validation

Catches duplicate names, dangling references, and type mismatches before you ship the SQL.

### Reverse-engineer SQL

Paste an existing `CREATE TABLE` dump and get a full diagram back — no manual redrawing.

### Four SQL dialects

PostgreSQL, MySQL, SQL Server, and Oracle — with real type translation, not just find-and-replace.

### Export to image or PDF

Download the diagram itself as SVG, PNG, or PDF — for docs, slide decks, or a quick visual share.

### Mermaid & PlantUML, both ways

Import an existing `erDiagram` or PlantUML entity diagram, or export either straight from your schema — for docs sites and wikis that already speak those formats.

### Live preview, no export needed

Tabs above the editor show your schema as Mermaid, PlantUML, or SQL in real time — read-only, no download, just switch and look.

### Live collaboration

See who else is viewing or editing, watch their cursor move, and see their edits appear on your canvas in real time. [More →](https://schemasketch.dev/collaboration)

### Collaborator roles

Invite people by email as a viewer or editor — permissions are enforced on every request, not just hidden in the UI.

### Public or private share links

One link, toggled either way: public means anyone who opens it sees a read-only copy, no account needed; private means only people you've added below can open it, and only once logged in. Switch between the two anytime without the link itself changing.

### Embed it anywhere

Turn a public link into a live `<iframe>` for a blog post, wiki, or docs site — always read-only, one snippet from the Share dialog.

### Version history

Every diagram keeps a timeline of edits, renames, and sharing changes — restore any earlier version in one click.

### Synced to your account

Every diagram is saved to a real account, not just one browser's local storage — open it from any device.

### Encrypted at rest

Every schema is stored encrypted in the database, not just behind a login — a raw database dump reveals nothing.

### Undo, redo, shortcuts

Copy/paste/duplicate tables, full undo history, and keyboard shortcuts for everything.

### Presentation mode

Fullscreen the canvas and hide every editing control for reviews and screen-shares.

### Dark & light themes

Follows your system by default; toggle it anytime, everywhere in the app.

## Bring your own AI assistant

SchemaSketch ships with an MCP server, so any MCP-compatible AI client can read and edit your diagrams directly — no copy-pasting DBML back and forth.

`get_dbml_syntax_guide` The exact syntax reference, for the AI to read before writing anything`list_diagrams` List every diagram in your account`get_diagram` Fetch one diagram's full DBML source and layout`validate_dbml` Check syntax errors and warnings before saving`create_diagram` Start a brand new diagram`update_diagram` Edit or rename an existing diagram`delete_diagram` Remove a diagram`export_sql` PostgreSQL, MySQL, SQL Server, or Oracle DDL`export_laravel_migrations` Ready-to-run Laravel migration files`export_laravel_models` Eloquent models with casts and relationships`export_mermaid` Mermaid erDiagram syntax`export_plantuml` PlantUML entity syntax`import_sql` Convert SQL DDL into DBML`import_mermaid` Convert Mermaid erDiagram syntax into DBML`import_plantuml` Convert PlantUML entity syntax into DBML

```
{
  "mcpServers": {
    "schemasketch": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-server/index.js"],
      "env": {
        "SCHEMASKETCH_API_BASE": "https://schemasketch.dev/api",
        "SCHEMASKETCH_TOKEN": "your-sanctum-token"
      }
    }
  }
}
```

## Three steps, no manual

### Write your schema

Plain text — tables, columns, and relationships. Autocomplete suggests types as you go.

### Watch it render

Tables, keys, and foreign keys appear live on an infinite canvas you can drag and zoom.

### Ship it

Export SQL or Laravel migrations, or let an AI assistant read and edit it over MCP.

## Questions, answered

Pricing, storage, the schema language, SQL import/export, and the MCP server — [see the full FAQ →](https://schemasketch.dev/faq)

## Your next schema is a few tables away.

[Start designing — free](https://schemasketch.dev/app?tab=signup)
