DB Planner
Provides tools for editing Mermaid diagrams, enabling agents to create and modify Mermaid diagram definitions as part of database design documents and board layouts.
Enables importing SQL dumps from MySQL to generate or update database schemas in DB Planner.
Enables importing SQL dumps from PostgreSQL to generate or update database schemas in DB Planner.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DB Planneradd an orders table with a user_id foreign key to my e-commerce schema"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DB Planner MCP server
Hosted MCP server for DB Planner that lets any MCP client edit database schemas (DBML/SQL), Mermaid diagrams and board layouts. OAuth sign-in, nothing to install.
https://api.dbplanner.io/mcpThis repository is documentation. The server is built into the DB Planner API and there is no code to run: add the URL to your client, sign in once in the browser, and your agent has 38 tools over your projects.
What is DB Planner
DB Planner is a collaborative database design tool. You write schemas in DBML or import SQL dumps (PostgreSQL, MySQL and SQL Server), sketch diagrams in Mermaid, and lay both out on a shared board that renders relationships, notes and drawings in real time. The template marketplace is where published schemas are shared.
Related MCP server: Cacoo Remote MCP Server
Connect
Claude Code
claude mcp add --transport http db-planner https://api.dbplanner.io/mcpCursor and other clients with a JSON config
{
"mcpServers": {
"db-planner": {
"type": "http",
"url": "https://api.dbplanner.io/mcp"
}
}
}The url is the same everywhere; the type value is not. Claude Code's .mcp.json takes http as above, Cursor's .cursor/mcp.json needs no type at all, and Cline's mcp.json takes streamableHttp. Check your client's documentation for its remote-server shape.
Claude.ai and Claude Desktop
Settings, then Connectors, then Add custom connector. Paste the URL. Leave authentication on "Always required" and the OAuth client on "register one automatically". No headers.
MCP Inspector
npx @modelcontextprotocol/inspectorClick Add Servers, then fill in the form: server ID db-planner, transport streamable-http, URL https://api.dbplanner.io/mcp. Add it, switch it on, and the consent screen opens in the browser.
On every client the first tool call opens the DB Planner consent screen. Sign in, pick the scopes, and you are connected. No password or API key is stored in the client configuration. An agent setting this up on your behalf should read llms-install.md.
Authentication
The endpoint is protected by OAuth 2.1 with PKCE. Discovery is standard, so clients configure themselves from the URL alone:
https://api.dbplanner.io/.well-known/openid-configurationhttps://api.dbplanner.io/.well-known/oauth-protected-resourceDynamic client registration at
https://api.dbplanner.io/connect/register, for both public clients (token_endpoint_auth_method=none) and confidential ones (client_secret_post,client_secret_basic)
Two scopes are the whole permission model, and the split is enforced on the server, not in the client:
Scope | Grants |
| Every read tool. Always granted, because the endpoint requires it. |
| The mutating tools, checked per tool. Also covers publishing to the public marketplace. |
MCP clients ask for both. Read is always granted, and write is a checkbox on the consent screen, on by default. Turning it off means the token is issued without write even though the client requested it, so a read-only connection is a real guarantee rather than a client-side courtesy.
Clients also request offline_access. That is a session mechanism rather than a permission: it yields a refresh token so the connection survives token expiry, and it is granted whenever asked.
A tool never sees more than the signed-in user can see in the app: organization and project roles are resolved from the token's subject and enforced by the same services the web app uses.
Tools
Every tool carries a title, a read-only or destructive hint, an openWorldHint of false, a description on every parameter and an output schema, so clients can run reads without confirmation prompts and read structured results instead of parsing text.
Group | Read | Write |
Session |
| |
Organizations |
|
|
Projects |
|
|
Documents |
|
|
Board |
|
|
Marketplace |
|
|
A few things worth knowing before an agent calls them:
Design lives in documents, never on the board. Tables, columns, references, enums, classes and flowchart steps are derived by parsing a document, so the design changes through
create_documentandupdate_documentand the board follows. There is no tool that creates a table directly.get_board_imagerenders the board to a PNG so the model can look at a layout rather than infer it from coordinates. Passformat='svg'for the vector source as text.drawanddraw_shapeare the drawing tools. Ink and arrows are one tool with akind; rectangles, diamonds and ellipses, with optional bound text, are the other. Both mint ids and round coordinates the way the app does. Free text on its own, groups and links go throughupdate_board.update_boardtakes a partial delta. Send only the card ids you are changing; a null value deletes one. It is the same merge contract the app uses, so an agent moving one card does not clobber a collaborator's layout.Publishing is creator-only, and no tool takes a price. Only the person who created a project may list it, and a listing published through MCP is always free. Pricing requires Stripe onboarding that nobody can do on someone's behalf.
Where it is listed
Official MCP Registry as
io.dbplanner/db-planner
Support
Questions and problems: support@dbplanner.io. Product documentation is at dbplanner.io/features.
License
This documentation is released under the MIT License. DB Planner itself is a hosted product; see dbplanner.io/pricing.
This server cannot be deployed
Maintenance
Related MCP Connectors
Build multi-tenant apps over MCP. Schemas, CRUD, deploys — access control enforced server-side.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
- WoWSQLOAuthcom.wowsql
Managed Postgres MCP: projects, SQL, docs search, and storage buckets via OAuth.
14 Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI agents to read and write architecture-map projects and diagrams with per-project access controls via OAuth 2.1/PKCE.11 npm1ISC
- AlicenseNot gradedqualityBmaintenanceEnables managing Cacoo diagrams, folders, organizations, and account information through MCP tools over HTTP, with OAuth-based authentication, email allowlisting, and support for multiple Cacoo accounts.MIT

ForIT MCP Gatewayofficial
AlicenseNot gradedqualityBmaintenanceEnables turning selected OpenAPI operations into authenticated MCP tools with branded OAuth, operation allowlisting, and live schema refreshes.Apache 2.0- AlicenseNot gradedqualityAmaintenanceEnables existing apps to expose their users and data to external AI agents via MCP with OAuth 2.1 authentication and scoped tools.356 npmMIT