SchemaSketch
MCP server by SchemaSketch-dev Verified · schemasketch.dev
SchemaSketch MCP server lets AI agents read and edit your SchemaSketch database diagrams. It handles DBML, validation, and conversion to and from SQL, Laravel, Mermaid and PlantUML. It suits users of Claude, Cursor, Windsurf, Gemini and other MCP clients.
Install SchemaSketch
Built from the published package, never by AI.
claude mcp add schemasketch -- npx -y schemasketch-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"schemasketch": {
"args": [
"-y",
"schemasketch-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"schemasketch": {
"args": [
"-y",
"schemasketch-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"schemasketch": {
"args": [
"-y",
"schemasketch-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add schemasketch -- npx -y schemasketch-mcp-server{
"mcpServers": {
"schemasketch": {
"args": [
"-y",
"schemasketch-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add schemasketch npx -y schemasketch-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the schemasketch block.
About
SchemaSketch MCP server lets AI agents such as Claude, Cursor, Windsurf and Gemini read and edit database diagrams from SchemaSketch. Agents can list diagrams, read and write DBML, and validate DBML without saving it. They can also convert between DBML and SQL, Laravel migrations and Eloquent models, Mermaid and PlantUML.
It runs locally through npm, or as a hosted server at mcp.schemasketch.dev that needs no install. Access uses a token, which can be set to read-only, can expire, and can be revoked without changing your password. It is aimed at people who keep their database diagrams in SchemaSketch and want AI agents to work on them.
Written from the project's README and checked against it.
Tools it gives your assistant
get_dbml_syntax_guideReturns the DBML syntax reference the agent should read before writing or editing DBML.list_diagramsLists your saved diagrams.get_diagramFetches one diagram's DBML source and positions.validate_dbmlParses DBML and reports syntax errors and warnings, without saving.create_diagramCreates a diagram.update_diagramReplaces a diagram's DBML and/or renames it.export_sqlExports SQL DDL for PostgreSQL, MySQL, SQL Server or Oracle.export_laravel_migrationsExports Laravel migration files for a diagram or raw DBML.export_laravel_modelsExports Laravel Eloquent models with fillable, casts and relationships for Laravel 10 or 11+.import_sqlConverts SQL DDL into DBML that can then be saved with create_diagram or update_diagram.
What you need
- Node.js 18 or newer for the local npm server
- A SchemaSketch account (free sign-in)
- A SchemaSketch access token
| Setting | Needed | What it is |
|---|---|---|
AuthorizationHeader, secret | Required | Your schemasketch.dev token (Connect AI agent in the app menu), as Bearer <token>. |
SCHEMASKETCH_Environment variable, secret | Optional | Token from schemasketch.dev (Connect AI agent in the app menu). Offline tools work without it. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List my SchemaSketch diagrams and summarize the tables in each one
- Validate this DBML and fix any syntax errors before saving it
- Export my users diagram as PostgreSQL SQL and Laravel migrations
Good to know
- Read-only tokens hide the tools that change diagrams
- The hosted server allows 60 requests per minute per token
- delete_diagram permanently deletes a diagram
- Invalid or expired tokens must be replaced with a new one
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to SchemaSketch
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
SchemaSketch: common questions
Can an AI agent use SchemaSketch without being able to change diagrams?
Yes. When you generate a token, choose Read-only. Read-only tokens hide the tools that change diagrams.
Does SchemaSketch MCP server support SQL and Laravel exports?
Yes. It exports SQL DDL for PostgreSQL, MySQL, SQL Server and Oracle, and Laravel migrations and Eloquent models for Laravel 10 or 11+.
What happens if I send too many requests to the hosted server?
The hosted server allows 60 requests a minute per token. Going over returns a 429 response with retry_after in seconds.
How do I install SchemaSketch?
In Claude Code run claude mcp add schemasketch -- npx -y schemasketch-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is SchemaSketch the official server?
SchemaSketch is published by schemasketch.dev from its verified domain in the official MCP Registry.
Is SchemaSketch free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is SchemaSketch safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to SchemaSketch?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does SchemaSketch work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
