Read and edit DB Planner database schemas, diagrams and board layouts as an AI agent.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
This 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.
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.
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.
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.
Click 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.
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-resourcehttps://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 |
|---|---|
dbplanner:read | Every read tool. Always granted, because the endpoint requires it. |
dbplanner:write | 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.
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 | whoami, get_public_profiles | |
| Organizations | list_orgs, get_org | create_org, rename_org, delete_org, upsert_org_member, remove_org_member |
| Projects | list_projects | create_project, update_project, delete_project, upsert_project_member, remove_project_member |
| Documents | list_documents, list_diagrams | create_document, update_document, delete_document, reorder_documents, set_table_color |
| Board | get_board, get_board_image, list_tables, list_drawings | update_board, draw, draw_shape, erase_drawings, add_board_image |
| Marketplace | browse_templates, get_template, list_my_listings | use_template, publish_listing, update_listing, unpublish_listing |
A few things worth knowing before an agent calls them:
create_document and update_document and the board follows. There is no tool that creates a table directly.get_board_image renders the board to a PNG so the model can look at a layout rather than infer it from coordinates. Pass format='svg' for the vector source as text.draw and draw_shape are the drawing tools. Ink and arrows are one tool with a kind; 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 through update_board.update_board takes 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.io.dbplanner/db-plannerQuestions and problems: support@dbplanner.io. Product documentation is at dbplanner.io/features.
This documentation is released under the MIT License. DB Planner itself is a hosted product; see dbplanner.io/pricing.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/db-planner-2)<a href="https://allmcps.com/mcp/db-planner-2"><img src="https://allmcps.com/api/badge/db-planner-2?style=directory" alt="Db Planner on AllMCPs" /></a>