AgentSQL vs DBHub
AgentSQL and DBHub are both databases MCP servers. DBHub scores higher (94 vs 70 out of 100). DBHub has more GitHub stars (4k), and AgentSQL was updated more recently (4 days ago). The table compares them side by side.
| AgentSQL | DBHub | |
|---|---|---|
| Score | 70 / 100 | 94 / 100 |
| What it does | AgentSQL is a database security gateway for AI agents that use PostgreSQL or MySQL through MCP. It adds SQL audit, authorization, result masking and write approval. It is for teams that want external AI agents to query data under controlled access. | Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails. |
| Publisher | Community: cuipengdba | Community: bytebase |
| Grades | Maintenance A, Licence A, Quality C | Maintenance A, Licence A, Quality A |
| npm downloads a week | Not on npm | 342,756 |
| Runs | Remote | Local |
| Works with | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf, ChatGPT | Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, VS Code, Windsurf |
| GitHub stars | 24 | 4,034 |
| Last commit | 1 Dec 2026 | 25 Nov 2026 |
| Licence | Apache-2.0 | MIT |
| Listed since | 19 Oct 2026 | 19 Oct 2026 |
| Install AgentSQL | Install DBHub |
Questions
Is AgentSQL or DBHub more popular?
DBHub has more GitHub stars: 4,034.
Can I use AgentSQL and DBHub together?
Yes. AI assistants can load several MCP servers at once. Install both and the assistant picks the right one for each task.