Turn SQL into an editable ER diagram link. With an API token, read diagrams and propose changes.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Optional. `Bearer <DrawSQL API token>` (Account → API tokens, paid plans) unlocks list_diagrams, get_schema and get_diagram_link; a token with the write ability also unlocks create_diagram and propose_diagram_changes. Omit for anonymous visualize_schema.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Create an interactive, editable DrawSQL entity-relationship diagram from a database schema. Return a shareable drawsql.app/draw link.
SQL CREATE TABLE and ALTER TABLE statements. Provide either this field or `schema`, but not both.
Database dialect, one of: mysql, pgsql, sqlsrv. Defaults to mysql.
A DrawSQL schema patch encoded as a JSON string. Top-level keys: tables, relationships, groups, sticky_notes. Example: {"tables":[{"name":"users","columns":[{"name":"id","type":"bigint"}]},{"name":"posts","columns":[{"name":"id","type":"bigint"},{"name":"user_id","type":"bigint"}],"parent_name":"Content"}],"relationships":[{"type":"one-to-many","source_table":"users","source_column":"id","target_table":"posts","target_column":"user_id"}],"groups":[{"name":"Content"}],"sticky_notes":[{"content":"Draft"}]}. Relationship types: one-to-one, one-to-many, many-to-one (hyphenated). Identifiers (names, uuids, references) match exactly: no leading/trailing whitespace or control characters, table and group names unique, uuids unique across the whole patch, and entries repeating a uuid must repeat its name. Full format: https://drawsql.app/llms-full.txt. Provide either this field or `ddl`, but not both.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http mcp https://drawsql.app/mcp
Headers
Authorization (optional, not in the config above): Optional. `Bearer <DrawSQL API token>` (Account → API tokens, paid plans) unlocks list_diagrams, get_schema and get_diagram_link; a token with the write ability also unlocks create_diagram and propose_diagram_changes. Omit for anonymous visualize_schema.Create an interactive, editable DrawSQL entity-relationship diagram from a database schema. Return a shareable drawsql.app/draw link.
| Argument | Type | Description |
|---|---|---|
| ddl | string | SQL CREATE TABLE and ALTER TABLE statements. Provide either this field or `schema`, but not both. |
| driver | string | Database dialect, one of: mysql, pgsql, sqlsrv. Defaults to mysql. |
| schema | string | A DrawSQL schema patch encoded as a JSON string. Top-level keys: tables, relationships, groups, sticky_notes. Example: {"tables":[{"name":"users","columns":[{"name":"id","type":"bigint"}]},{"name":"posts","columns":[{"name":"id","type":"bigint"},{"name":"user_id","type":"bigint"}],"parent_name":"Content"}],"relationships":[{"type":"one-to-many","source_table":"users","source_column":"id","target_table":"posts","target_column":"user_id"}],"groups":[{"name":"Content"}],"sticky_notes":[{"content":"Draft"}]}. Relationship types: one-to-one, one-to-many, many-to-one (hyphenated). Identifiers (names, uuids, references) match exactly: no leading/trailing whitespace or control characters, table and group names unique, uuids unique across the whole patch, and entries repeating a uuid must repeat its name. Full format: https://drawsql.app/llms-full.txt. Provide either this field or `ddl`, but not both. |
{
"type": "object",
"properties": {
"ddl": {
"type": "string",
"description": "SQL CREATE TABLE and ALTER TABLE statements. Provide either this field or `schema`, but not both."
},
"driver": {
"enum": [
"mysql",
"pgsql",
"sqlsrv"
],
"type": "string",
"description": "Database dialect, one of: mysql, pgsql, sqlsrv. Defaults to mysql."
},
"schema": {
"type": "string",
"description": "A DrawSQL schema patch encoded as a JSON string. Top-level keys: tables, relationships, groups, sticky_notes. Example: {\"tables\":[{\"name\":\"users\",\"columns\":[{\"name\":\"id\",\"type\":\"bigint\"}]},{\"name\":\"posts\",\"columns\":[{\"name\":\"id\",\"type\":\"bigint\"},{\"name\":\"user_id\",\"type\":\"bigint\"}],\"parent_name\":\"Content\"}],\"relationships\":[{\"type\":\"one-to-many\",\"source_table\":\"users\",\"source_column\":\"id\",\"target_table\":\"posts\",\"target_column\":\"user_id\"}],\"groups\":[{\"name\":\"Content\"}],\"sticky_notes\":[{\"content\":\"Draft\"}]}. Relationship types: one-to-one, one-to-many, many-to-one (hyphenated). Identifiers (names, uuids, references) match exactly: no leading/trailing whitespace or control characters, table and group names unique, uuids unique across the whole patch, and entries repeating a uuid must repeat its name. Full format: https://drawsql.app/llms-full.txt. Provide either this field or `ddl`, but not both."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 27, 2026.