mcp-drawdb MCP Server

MCP server for drawdb — lets AI assistants (Claude Code, Cursor, etc.) directly read and modify database diagrams in your browser.

Local serverstdioMIT

What is the mcp-drawdb MCP Server?

mcp-drawdb is an MCP project maintained in the tovarsh/mcp-drawdb repository. The maintainer describes its purpose as “MCP server for drawdb — lets AI assistants (Claude Code, Cursor, etc.) directly read and modify database diagrams in your browser”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-drawdb. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
pingTest connection to the browser
list_tablesList all tables with fields
get_diagramFull diagram overview: tables, fields, layout (x/y/w/h), relationships, database type
add_tableAdd a table with fields, color, comment
update_tableRename table, add/drop/alter fields with full property control
delete_tableDelete a table (cascades to relationships)
add_relationshipAdd FK with cardinality (1:1, 1:n, n:1, n:m) and constraint rules
delete_relationshipDelete a relationship
set_layoutReposition tables on canvas
set_databaseSwitch database type (mysql, postgresql, sqlite, mariadb, transactsql, oraclesql, generic)
get_issuesValidate diagram: duplicate names, missing PKs, type mismatches, etc.
export_sqlGenerate DDL SQL for the target database
clear_diagramRemove all tables and relationships
undoView last action on the undo stack

How to install the mcp-drawdb MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.