DrawDB - Free, simple, and intuitive database design tool and SQL generator
Most database access work still happens through a UI a human drives. Drawdb MCP MCP server moves it into the conversation instead. DrawDB - Free, simple, and intuitive database design tool and SQL generator.
This fork of DrawDB extends the original with AI assistant integration via Model Context Protocol (MCP). AI assistants like Claude can create, modify, and manage database diagrams programmatically.
Installation goes through your MCP client rather than a global install: point it at pnpm on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
The server publishes 10 tools. What each one is for:
macOS — Cmd + Shift + RDBML — Export to Database Markup Language (human-readable, database-agnostic format)export_sql — Export diagram as SQL DDL for current database typeexport_dbml — Export diagram as DBMLimport_dbml — Import database schema from DBMLexport_diagram — Export complete diagram as JSONimport_diagram — Import complete diagram from JSONPrereleases — latest tracks stable releases only. Betas and release candidates are published under their exact version and never move latest, so pin the fullPrerequisites — The Prerequisites tool exposed by this serverBuild — The Build tool exposed by this serverengines in package.json) - pnpm 8.15.0+ (install via npm install -g pnpm) Start both GUI and backend: Start GUI only: ```bash pnpm gui:devAmong the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Drawdb MCP's toolset — macOS, DBML, export_sql and 7 more — is a fair guide to whether it matches your workflow. It is maintained by anatoly314; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Drawdb MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| macOS | Cmd + Shift + R |
| DBML | Export to Database Markup Language (human-readable, database-agnostic format) |
| export_sql | Export diagram as SQL DDL for current database type |
| export_dbml | Export diagram as DBML |
| import_dbml | Import database schema from DBML |
| export_diagram | Export complete diagram as JSON |
| import_diagram | Import complete diagram from JSON |
| Prereleases | latest tracks stable releases only. Betas and release candidates are published under their exact version and never move latest, so pin the full version to run one: |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Build | The Build tool exposed by this server. |
{
"mcpServers": {
"drawdb": {
"command": "npx",
"args": ["-y", "pnpm"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
engines in package.json) - pnpm 8.15.0+ (install via npm install -g pnpm) Start both GUI and backend: Start GUI only: ```bash pnpm gui:devRead-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.