mcp

v0.2.0
@drawdb/mcp Checked 9 hours ago Published 2 months ago

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

ParameterTypeDescription
categorystringFilter by category, e.g. commerce, saas, fintech
querystringFree-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.

ParameterTypeDescription
slug *stringExample slug from list_examples, e.g. ecommerce-store
dialectstringSQL dialect when format is 'sql'. Defaults to the example's primary dialect.
formatstringOutput format. Defaults to dbml.