Drawdb MCP Server

DrawDB - Free, simple, and intuitive database design tool and SQL generator

Local serverstdio

What is the Drawdb MCP MCP server?

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.

The short version

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.

Getting it running

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 tools it exposes

The server publishes 10 tools. What each one is for:

  • 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
  • Prerequisites — The Prerequisites tool exposed by this server
  • Build — The Build tool exposed by this server

What it needs from you

  • Node.js 20.19+ or 22.22+ (see 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:dev

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Drawdb MCP.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among 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.

Available tools

ToolWhat it does
macOSCmd + Shift + R
DBMLExport to Database Markup Language (human-readable, database-agnostic format)
export_sqlExport diagram as SQL DDL for current database type
export_dbmlExport diagram as DBML
import_dbmlImport database schema from DBML
export_diagramExport complete diagram as JSON
import_diagramImport complete diagram from JSON
Prereleaseslatest 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:
PrerequisitesThe Prerequisites tool exposed by this server.
BuildThe Build tool exposed by this server.

How to install the Drawdb MCP MCP server

{
  "mcpServers": {
    "drawdb": {
      "command": "npx",
      "args": ["-y", "pnpm"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 20.19+ or 22.22+ (see 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:dev

Example prompts to try

  • Use Drawdb MCP to macOS.
  • Use Drawdb MCP to DBML.
  • Use Drawdb MCP to export sql.

Frequently asked questions

It connects Drawdb MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (macOS, DBML, export_sql, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Drawdb MCP directly.