{"slug": "schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp", "title": "SchemaSketch – database diagrams your AI agent can edit (DBML, MCP)", "summary": "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.", "body_md": "# Think it in text.\n\nWatch your database draw itself.\n\n 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.\n\n## Not a screenshot. This is the actual editor.\n\nTyping on the left renders live on the right — the same engine that runs the real app.\n\n## Three reasons this isn't just another diagram tool\n\n### Every feature, actually free\n\nNot 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.\n\n### Built for AI, not bolted on\n\nPoint 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.\n\n### Speaks Laravel, not just SQL\n\nMost 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)\n\nAlready 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.\n\n## Everything a schema needs, nothing it doesn't\n\nEvery one of these ships in the free tier — there's no paid tier holding features back.\n\n### Live text-to-diagram\n\nType a table, see it appear. No dragging boxes around just to sketch a schema.\n\n### Drag-and-drop relationships\n\nDraw a foreign key by dragging from one column to another — direction inferred automatically.\n\n### Subject areas\n\nGroup related tables into colored, labeled regions — drag the region to move every table inside it together.\n\n### Built-in validation\n\nCatches duplicate names, dangling references, and type mismatches before you ship the SQL.\n\n### Reverse-engineer SQL\n\nPaste an existing `CREATE TABLE` dump and get a full diagram back — no manual redrawing.\n\n### Four SQL dialects\n\nPostgreSQL, MySQL, SQL Server, and Oracle — with real type translation, not just find-and-replace.\n\n### Export to image or PDF\n\nDownload the diagram itself as SVG, PNG, or PDF — for docs, slide decks, or a quick visual share.\n\n### Mermaid & PlantUML, both ways\n\nImport an existing `erDiagram` or PlantUML entity diagram, or export either straight from your schema — for docs sites and wikis that already speak those formats.\n\n### Live preview, no export needed\n\nTabs above the editor show your schema as Mermaid, PlantUML, or SQL in real time — read-only, no download, just switch and look.\n\n### Live collaboration\n\nSee 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)\n\n### Collaborator roles\n\nInvite people by email as a viewer or editor — permissions are enforced on every request, not just hidden in the UI.\n\n### Public or private share links\n\nOne 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.\n\n### Embed it anywhere\n\nTurn a public link into a live `<iframe>` for a blog post, wiki, or docs site — always read-only, one snippet from the Share dialog.\n\n### Version history\n\nEvery diagram keeps a timeline of edits, renames, and sharing changes — restore any earlier version in one click.\n\n### Synced to your account\n\nEvery diagram is saved to a real account, not just one browser's local storage — open it from any device.\n\n### Encrypted at rest\n\nEvery schema is stored encrypted in the database, not just behind a login — a raw database dump reveals nothing.\n\n### Undo, redo, shortcuts\n\nCopy/paste/duplicate tables, full undo history, and keyboard shortcuts for everything.\n\n### Presentation mode\n\nFullscreen the canvas and hide every editing control for reviews and screen-shares.\n\n### Dark & light themes\n\nFollows your system by default; toggle it anytime, everywhere in the app.\n\n## Bring your own AI assistant\n\nSchemaSketch 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.\n\n`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\n\n```\n{\n  \"mcpServers\": {\n    \"schemasketch\": {\n      \"command\": \"node\",\n      \"args\": [\"/absolute/path/to/mcp-server/index.js\"],\n      \"env\": {\n        \"SCHEMASKETCH_API_BASE\": \"https://schemasketch.dev/api\",\n        \"SCHEMASKETCH_TOKEN\": \"your-sanctum-token\"\n      }\n    }\n  }\n}\n```\n\n## Three steps, no manual\n\n### Write your schema\n\nPlain text — tables, columns, and relationships. Autocomplete suggests types as you go.\n\n### Watch it render\n\nTables, keys, and foreign keys appear live on an infinite canvas you can drag and zoom.\n\n### Ship it\n\nExport SQL or Laravel migrations, or let an AI assistant read and edit it over MCP.\n\n## Questions, answered\n\nPricing, storage, the schema language, SQL import/export, and the MCP server — [see the full FAQ →](https://schemasketch.dev/faq)\n\n## Your next schema is a few tables away.\n\n[Start designing — free](https://schemasketch.dev/app?tab=signup)", "url": "https://wpnews.pro/news/schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp", "canonical_source": "https://schemasketch.dev/", "published_at": "2026-11-24 15:23:00+00:00", "updated_at": "2026-11-24 15:42:09.296585+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["SchemaSketch", "Claude", "Laravel", "PostgreSQL", "MySQL", "SQL Server", "Oracle", "MCP"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp", "markdown": "https://wpnews.pro/news/schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp.md", "text": "https://wpnews.pro/news/schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp.txt", "jsonld": "https://wpnews.pro/news/schemasketch-database-diagrams-your-ai-agent-can-edit-dbml-mcp.jsonld"}}