gogoymh/auto-ontology-mcp
把数据库问答与个人知识库接入任意 MCP 客户端
解决什么问题
没有它,模型只能对着原始 schema 猜连接路径和字段取值,text-to-SQL 出错也不会报警;笔记与资料也停留在零散文件里,缺少可查的事实与来源。
- 语义层校验 SQL 连接与取值
- 知识库保留来源与原文引文
- 无需配置 LLM API Key
适用客户端
- claude-desktop
- cursor
- vscode
- cline
- cli
安装命令
uvx --from git+https://github.com/gogoymh/auto-ontology-mcp auto-ontology-mcp demo claude mcp add auto-ontology -- uvx --from git+https://github.com/gogoymh/auto-ontology-mcp auto-ontology-mcp uvx --from git+https://github.com/gogoymh/auto-ontology-mcp auto-ontology-mcp serve --transport http --port 8765 --token "$(openssl rand -hex 24)" uvx --from git+https://github.com/gogoymh/auto-ontology-mcp --with "psycopg[binary]" auto-ontology-mcp add shop "postgresql+psycopg://readonly_user:pass@host:5432/db" --schemas sales,geo 一键配置
{
"mcpServers": {
"auto-ontology": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gogoymh/auto-ontology-mcp",
"auto-ontology-mcp"
]
}
}
} {
"servers": {
"auto-ontology": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gogoymh/auto-ontology-mcp",
"auto-ontology-mcp"
]
}
}
} {
"mcpServers": {
"auto-ontology": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/gogoymh/auto-ontology-mcp",
"auto-ontology-mcp"
]
}
}
} 安全标记
- 需要 API Key: 否
- 本地运行: 是
- 访问网络: 是
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-06(0d) |
|---|---|
| Star | 580 |
| 待处理 issue | 3 |
| 协议 | Apache-2.0 |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-06 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
Point it at a database, and the model you already use (Claude Code, Codex, OpenClaw, Hermes Agent, Cursor, VS Code, or the Claude and ChatGPT apps) builds business Terms, reviews joins and answers questions with SQL that the server checks against the ontology and the data.