MCP Configs2026年4月6日·1 分钟阅读

DBHub — Universal Database MCP Server, Zero Dependencies

Token-efficient database MCP server supporting Postgres, MySQL, MariaDB, SQL Server, and SQLite. Just two MCP tools, zero dependencies, read-only safe.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

直接运行(无需安装):

npx @bytebase/dbhub --transport http --port 8080 --dsn "postgres://user:pass@host/db"

或体验演示:

npx @bytebase/dbhub --transport http --port 8080 --demo

简介

DBHub 是一个零依赖、Token 高效的数据库 MCP 服务器,拥有 2,500+ GitHub stars。支持 PostgreSQL、MySQL、MariaDB、SQL Server 和 SQLite,仅使用两个 MCP 工具——保持上下文窗口干净。内置安全特性包括只读模式、行数限制和查询超时。由 Bytebase 团队创建。


DBHub — AI 连接你的数据库

支持的数据库

PostgreSQL、MySQL、MariaDB、SQL Server、SQLite 全部支持。

安全特性

  • 只读模式 — 防止意外写入
  • 行数限制 — 限制结果集大小
  • 查询超时 — 防止失控查询

🙏

来源与感谢

Created by Bytebase. Licensed under MIT.

dbhub — ⭐ 2,500+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产