cd /news/ai-agents/schemasketch-database-diagrams-your-… · home › topics › ai-agents › article
[ARTICLE · art-175489] src=schemasketch.dev ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

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

SchemaSketch launched a database-diagram editor that lets AI agents read and write schemas through an MCP server, with every feature including the MCP server, live collaboration, version history and four SQL dialects (PostgreSQL, MySQL, SQL Server, Oracle) offered free on every account with no paid tier. The tool renders DBML text into a live editable diagram and exports SQL, Mermaid, PlantUML, or Laravel migrations with Eloquent models, and a companion schemasketch/laravel package diagrams an existing Laravel database and turns diagram changes back into migrations. The MCP support matters because it lets Claude or any MCP-compatible client list, edit, validate and export the same DBML a user would type by hand, a capability SchemaSketch says nothing else in the category offers.

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.

read5 min views3 publishedNov 24, 2026
SchemaSketch – database diagrams your AI agent can edit (DBML, MCP)
Image: source

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 →

Already have a Laravel app? The schemasketch/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 →

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 anythinglist_diagrams List every diagram in your accountget_diagram Fetch one diagram's full DBML source and layoutvalidate_dbml Check syntax errors and warnings before savingcreate_diagram Start a brand new diagramupdate_diagram Edit or rename an existing diagramdelete_diagram Remove a diagramexport_sql PostgreSQL, MySQL, SQL Server, or Oracle DDLexport_laravel_migrations Ready-to-run Laravel migration filesexport_laravel_models Eloquent models with casts and relationshipsexport_mermaid Mermaid erDiagram syntaxexport_plantuml PlantUML entity syntaximport_sql Convert SQL DDL into DBMLimport_mermaid Convert Mermaid erDiagram syntax into DBMLimport_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 →

Your next schema is a few tables away. #

Start designing — free

── more in #ai-agents 4 stories · sorted by recency
── more on @schemasketch 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/schemasketch-databas…] indexed:0 read:5min 2026-11-24 · —