Esta página se muestra en inglés. Una traducción al español está en curso.
MCP ConfigsMay 13, 2026·2 min de lectura

DBHub — Token-Efficient Database MCP Server

Database MCP server for Postgres/MySQL/MariaDB/SQL Server/SQLite. Includes execute_sql + schema search with guardrails: read-only, row limits, timeouts.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 17/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
Mcp Config
Instalación
Stage only
Confianza
Confianza: Established
Entrada
Asset
Comando de staging seguro
npx -y tokrepo@latest install e2d65e60-8e23-5483-9d77-568f90a028ba --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

Introducción

DBHub is a token-efficient database MCP server: connect MCP clients to multiple databases and run safe queries with built-in guardrails.

Best for: Agent builders who need a safer, maintainable database tool surface via MCP

Works with: MCP clients (Claude Desktop/Code, Cursor, VS Code, Copilot CLI) and DB DSNs (see README)

Setup time: 10–30 minutes

Key facts (verified)

  • README lists multiple databases: PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite.
  • Quick start includes both Docker and NPM (npx @bytebase/dbhub@latest ...) install paths (README).
  • GitHub: 2,744 stars · 232 forks; pushed 2026-04-21 (GitHub API verified).

Main

Database MCP without tool sprawl

If you want agents to work with data, you usually need two safe primitives:

  • Search schema (tables/columns/indexes) before writing SQL
  • Execute SQL with strict limits

DBHub ships both and adds guardrails (read-only mode, row limits, query timeouts). For production, start read-only and gate write access behind explicit review or separate credentials.

README excerpt (verbatim)

[!NOTE]
Brought to you by Bytebase, open-source database DevSecOps platform.

DBHub Logo

            +------------------+    +--------------+    +------------------+
            |                  |    |              |    |                  |
            |                  |    |              |    |                  |
            |  Claude Desktop  +--->+              +--->+    PostgreSQL    |
            |                  |    |              |    |                  |
            |  Claude Code     +--->+              +--->+    SQL Server    |
            |                  |    |              |    |                  |
            |  Cursor          +--->+    DBHub     +--->+    SQLite        |
            |                  |    |              |    |                  |
            |  VS Code         +--->+              +--->+    MySQL         |
            |                  |    |              |    |                  |
            |  Copilot CLI     +--->+              +--->+    MariaDB       |
            |                  |    |              |    |                  |
            |                  |    |              |    |                  |
            +------------------+    +--------------+    +------------------+
                 MCP Clients           MCP Server             Databases

DBHub is a zero-dependency, token efficient MCP server implementing the Model Context Protocol (MCP) server interface. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:

  • Local Development First: Zero dependency, token efficient with just two MCP tools to maximize context window
  • Multi-Database: PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through a single interface
  • Multi-Connection: Connect to multiple databases simultaneously with TOML configuration
  • Guardrails: Read-only mode, row limiting, and query timeout to prevent runaway operations
  • Secure Access: SSH tunneling and SSL/TLS encryption

Supported Databases

FAQ

Q: Can it connect to multiple DBs? A: Yes—README mentions multi-connection support via TOML configuration.

Q: Is it safe by default? A: README describes guardrails like read-only mode, row limiting, and query timeouts—still review before production use.

Q: How do I try it quickly? A: Use the README demo mode: run with --demo and then connect an MCP client to the server.

🙏

Fuente y agradecimientos

Source: https://github.com/bytebase/dbhub > License: MIT > GitHub stars: 2,744 · forks: 232

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados