
Db Planner
io.dbplanner由 dbplanner.io 发布官方发布者v1.1.0更新于 Oct 27, 2026
Read and edit DB Planner database schemas, diagrams and board layouts as an AI agent.
概览
DB Planner 的托管 MCP 服务器,让助手读取和编辑你项目中的数据库架构、图表与画板布局。
- 可以做什么
- 查看会话与公开资料,列出组织、项目及其成员
- 创建、重命名和删除组织与项目,并管理其成员
- 创建、更新、删除和重排文档与图表,设置数据表颜色
- 读取画板、渲染为 PNG 或 SVG、列出数据表与绘图,并更新画板布局
- 在画板上绘制墨迹、箭头、形状和图片,并擦除绘图
- 浏览模板市场、套用模板,并发布或下架自己的模板
- 适用场景
- 适合在 DB Planner 中设计或维护数据库架构时使用,让助手起草 DBML 或 SQL 文档、调整图表,或重新排布共享画板,而无需切换到网页应用。
- 运行要求
- 通过 streamable HTTP 连接 api.dbplanner.io/mcp 远程端点,无需安装。首次调用工具时在浏览器中完成 OAuth 2.1(PKCE)登录,支持动态客户端注册。客户端配置中不保存 API 密钥或密码。
安装
在 SourceWeft 中
- 打开 控制台中的 Db Planner,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.dbplanner%2Fdb-planner/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"db-planner": {
"type": "http",
"url": "https://api.dbplanner.io/mcp"
}
}
}README
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.
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.
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.
Connect
Claude Code
Cursor and other clients with a JSON config
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
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.
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-resource- Dynamic 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:
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.
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 - Smithery
- Glama
- mcp.so
- cursor.directory
Support
Questions and problems: [email protected]. 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.
来源:README.md,提交 e9909a0
工具
0版本历史
1- v1.1.0最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分