
Sqemo
io.github.sqemo由 GitHub 账号 sqemo 发布v2.8.3更新于 Oct 25, 2026
Design ERDs with your team's naming standards: query/edit entities and relationships, SQL/DBML
概览
Sqemo 是一个本地 MCP 服务器,让 AI 助手按团队命名词表设计 ERD 并生成数据库物理名称。
- 可以做什么
- 读取与查看 ERD:列出实体、关系、域和词表词条,获取 ERD 概览或搜索团队词典。检查与生成名称:按命名规范校验逻辑名称,并依据词表推导物理名称。导出与比较:生成七种方言的 CREATE TABLE SQL 或 DBML,比较两个 ERD,并生成 ALTER 迁移脚本。编辑模型:创建 ERD,新增或删除实体、属性、关系、域、词表词条和命名规则。检查在线数据库:导入 PostgreSQL 或 MySQL 结构并检查与模型的偏差,仅读取 information schema。在 CI 中运行 CLI 的 lint 与导出命令。
- 适用场景
- 适合团队希望助手在保持数据库命名一致的前提下设计或编辑 ERD,或在编写 DDL 前检查命名偏差和数据库结构偏差。也适合拥有共享词表、并在 CI 中以命名规则作为门禁的团队。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js 22 或更高版本。本地 .erd.json 文件无需账号;云端 ERD 和 Pro 工具需通过 CLI 登录,可用交互式 OAuth 或邮箱加密码,也可使用 SQEMO_EMAIL 和 SQEMO_PASSWORD 环境变量。在线数据库工具需要连接 URL。
安装
在 SourceWeft 中
- 打开 控制台中的 Sqemo,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
sqemo-mcp
[npm version] [npm downloads] [MCP Registry] [Node] [License: MIT]
MCP server for Sqemo — AI agents that follow your team's database naming standard.
Your agent models in business terms ("Customer Number"); the column comes out as cust_no
because your word list says customer → cust, number → no (case and delimiter are rules
too, so CUST_NO is one setting away). Same input, same name, every
table, every agent. Overrides are allowed but flagged, and a CLI lint catches drift in CI.
Works with Claude Code, Claude Desktop, Cursor, and any MCP client. Local .erd.json files
need no account; cloud ERDs and Pro tools need npx sqemo-mcp login.
What it looks like
Model a discussion board where members post articles, a post can be a reply to another post, and members comment on posts.
The agent calls the tools with logical names and never types a column name:
CNTS and YN are not the agent's taste. They are your word list's abbreviations, applied the
same way they were applied in every other table your team has modelled. Domains carry the data
type, so Content is varchar(1000) everywhere it appears.
[Building a database schema with an AI agent — without naming a single column (3:25)]
Full walkthrough with every tool call: Describe the work, get a governed schema.
Overview
AI agents can query and edit entities, relationships, and domains; generate physical names
from a shared team glossary; import/export SQL (7 dialects) and DBML; and compare the model
against a live database. Works with both local .erd.json files and ERDs stored on the
Sqemo cloud.
- npm:
sqemo-mcp - Official MCP Registry:
io.github.sqemo/sqemo - Web app: app.sqemo.com
Requires Node.js >= 22. Local-file tools work without any account or configuration. Login is needed for cloud ERD tools, and for the tools marked (Pro) below.
Installation
Claude Code (.mcp.json)
Claude Desktop
Add the same mcpServers entry to your config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Cursor (.cursor/mcp.json)
Login (cloud ERDs and Pro tools)
login asks how you want to sign in. Google and GitHub open a browser tab, complete a
PKCE OAuth flow, and hand the session back through a one-shot loopback server on
127.0.0.1; the third option takes an email and password in the terminal. Only a
refresh token is ever stored.
- Credentials are stored in
~/.erdmaker/credentials.json(mode 0600 on POSIX); your password is never persisted. - Non-interactive shortcuts:
--passwordforces the email + password path,--provider google|githubforces a browser path. - Piped input skips the menu and goes straight to email + password, so existing
automation keeps working:
printf 'email\npassword\n' | npx sqemo-mcp login - The browser paths need a browser on the same machine (the callback returns to
127.0.0.1). Over SSH or in CI, use--passwordor theSQEMO_EMAIL/SQEMO_PASSWORDenvironment variables.
What you can do
36 tools in total.
Read (17 tools)
Live database (2 tools)
Read-only against your own database. Both query only the information schema — never table data — and the connection URL is used by this local process only, never sent to Sqemo servers.
Write (17 tools)
Cloud writes require owner or shared-editor permission and are protected by version CAS with 3-way auto-merge for concurrent edits.
CLI for CI pipelines
Offline, file-based subcommands (no login needed):
Drift mode compares the model against a real database or a dump, and exits 1 when they disagree (Pro, requires login):
GitHub Actions example:
Environment variables
The request caps are a safety net against agents stuck in loops; exceeding them
returns a rate_limited error that tells the agent to stop and notify the user.
Errors
All tool errors return { code, message } — e.g. not_authenticated, no_permission,
save_conflict (retry after re-reading), validation_failed, rate_limited.
Links
- Sqemo — team naming standards + ERD design in the browser
- Live database guide — drift checks in CI, step by step
- Plans — which tools need Pro
- sqemo-mcp on npm
- Feedback and bug reports: issues or [email protected]
License
来源:README.md,提交 b08b386
工具
0版本历史
2- v2.8.3最新Oct 16, 2026
- v2.8.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分