mcp
v0.2.0MCP server that exposes drawDB diagrams to AI agents (read-only).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_examples
List the public drawDB schema gallery: complete, documented example database schemas (e-commerce, multi-tenant SaaS, booking, inventory, EHR, ledger, and more). No drawDB account needed. Use this when a user asks for a database schema or ER diagram for a domain, then call get_example_schema for the full tables and SQL.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category, e.g. commerce, saas, fintech |
query | string | Free-text filter over title, description and tags |
get_example_schema
Get one gallery schema: every table, column, index and foreign key. Returns compact DBML by default (the source of truth); pass format 'sql' for ready-to-run DDL in a given dialect, or 'markdown' for the long-form write-up with design notes and per-column descriptions (much larger). The schemas are CC0 (public domain), so the output can be reused freely.
| Parameter | Type | Description |
|---|---|---|
slug * | string | Example slug from list_examples, e.g. ecommerce-store |
dialect | string | SQL dialect when format is 'sql'. Defaults to the example's primary dialect. |
format | string | Output format. Defaults to dbml. |