DBHub
listing.by
Query and explore Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite databases through one token-efficient MCP server.
listing.install
listing.local.manual
DSNlisting.env.secret listing.env.optional Database connection string (e.g., postgres://user:pass@host:5432/db)DB_TYPElisting.env.optional Database type: postgres, mysql, mariadb, sqlserver, oracle, sqliteDB_HOSTlisting.env.optional Database hostnameDB_PORTlisting.env.optional Database portDB_USERlisting.env.optional Database usernameDB_PASSWORDlisting.env.secret listing.env.optional Database password
listing.share.h
listing.share.p_local
mcp.tc/i/dbhublisting.about
DBHub connects MCP clients such as Claude Desktop, Claude Code, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite. It exposes two tools by default, one for running SQL and one for searching schemas, tables, columns, indexes and procedures. Explain and health check tools are opt-in. Read-only mode, row limits and query timeouts guard against runaway queries, and SSH tunneling and SSL/TLS are supported.
It runs locally with npx over stdio, or over HTTP with the transport option. Docker, an MCP Bundle and a Claude Code plugin are also available. No sign-in is needed. You supply a database connection string (DSN) or a dbhub.toml file to connect several databases at once. Node.js 22.5 or newer is required.
listing.can
- Run SQL queries with transaction support and safety controls
- Search schemas, tables, columns, indexes and procedures
- Show query execution plans without running them (opt-in)
- Check connection pool state and cache hit ratio (opt-in)
- Connect to several databases at once with a TOML config
- Define reusable parameterized SQL tools in dbhub.toml
- Use read-only mode, row limits and query timeouts
- Reach databases through SSH tunnels and SSL/TLS
listing.tools
listing.notools.key
listing.prompts
List all tables in my Postgres database and describe the orders table.
Run a read-only query to count signups per day for the last week.
Show the execution plan for this SELECT statement.
Find columns named email across all schemas.
listing.setup.h
listing.setup.local
Any client
We don't have a verified install command for this server yet. Its own instructions are the place to start.
Package: @bytebase/dbhub on NPM.
listing.faq
Can I paste mcp.tc/i/dbhub into my MCP client?
No. DBHub runs on your own computer, started by your client, so it has no web address to connect to. The quick link is the page to share.
Does DBHub need an API key?
Yes. It reads DSN, DB_PASSWORD, SSH_PASSWORD and SSH_PASSPHRASE from its environment, and DSN, DB_PASSWORD, SSH_PASSWORD and SSH_PASSPHRASE are secrets. Put the value in your client's config on your own machine, never in a shared file.
Is DBHub a remote or a local server?
Local. Your client starts it as a process on your computer.
What can DBHub do?
You can run SQL queries with transaction support and safety controls, search schemas, tables, columns, indexes and procedures and show query execution plans without running them (opt-in).
Which clients can use it?
Any client that starts local servers: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. claude.ai and ChatGPT only connect to remote servers.
Who wrote this page?
mcp.tc's robot read DBHub's public metadata (its package and repository pages), and an AI model drafted the text from it. A person reviews anything the checks can't confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.
listing.em.h
listing.em.lead_local listing.em.how
listing.em.badge
[](https://mcp.tc/i/dbhub)<a href="https://mcp.tc/i/dbhub"><img src="https://mcp.tc/i/dbhub/badge.svg" alt="DBHub on mcp.tc" height="20"></a>listing.em.badge_note
listing.em.widget
<script src="https://mcp.tc/w/dbhub.js" async></script>listing.em.widget_note
iframe
<iframe src="https://mcp.tc/embed/dbhub" title="DBHub on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>listing.em.iframe_note
listing.disclaimer_checked