AIFeed

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

Original text(via HN AI)

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 →

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.


        {
  "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"
      }
    }
  }
}
      

Works with Claude Desktop, Claude Code, and any other MCP-compatible client — the same tools power every one of them. Full tool reference & setup →

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.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗