DBHub
MCP server by Bytebase
Query and explore Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite databases through one token-efficient MCP server.
Install DBHub
Runs on your machine. We don’t have a confirmed install command for it yet, so follow the project’s own instructions.
DSNsecret optional Database connection string (e.g., postgres://user:pass@host:5432/db)DB_TYPEoptional Database type: postgres, mysql, mariadb, sqlserver, oracle, sqliteDB_HOSToptional Database hostnameDB_PORToptional Database portDB_USERoptional Database usernameDB_PASSWORDsecret optional Database password
Share this server
Opens this page, with the install command and setup steps.
mcp.tc/i/dbhubAbout
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.
What you can do
- 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
Tools
Local servers list their tools once they’re running, and this one doesn’t publish its list in advance. Your client shows them after you add it.
Example 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.
Set up
Every client starts DBHub on your machine with the same command. Pick yours; the page remembers your choice.
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.
Embed
Show DBHub in a README or on your site. Each embed links to this page, uses the server’s own install command, and sets no cookies. How embeds work
The card, the iframe and the JSON are in English. Add ?lang=it, fr, de or es to their address for another language.
README 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>It follows the reader’s light or dark mode. Add ?theme=light or ?theme=dark to fix it, or ?style=compact to show the mark without the word.
Website card
<script src="https://mcp.tc/w/dbhub.js" async></script>The card appears where the tag is. Add data-theme="dark" or data-size="compact" to the tag to change it. The file holds everything it needs, so it makes no other requests and sets no cookies.
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>Use it on pages that don’t allow scripts. Add ?theme=light or ?theme=dark to the address to fix the colors.
JSON
The listing as data for your own pages and tools: name, tagline, install command, tools and the “Add to” links. Any site can read it (CORS is open).
https://mcp.tc/i/dbhub.jsonAI prompt
Paste this into an AI coding assistant, such as Claude Code or Cursor, and it adds the DBHub card to your site.
Add the mcp.tc card for DBHub, an MCP server, to my website. It is one static script: no build step, no package to install, no cookies.
Put this tag where the card should appear. The card renders right before it:
```html
<script src="https://mcp.tc/w/dbhub.js" async></script>
```
To show the card somewhere else, put this placeholder there and load the same script once, for example before `</body>`. Keep the link inside: visitors without JavaScript see it.
```html
<div data-mcptc="dbhub"><a href="https://mcp.tc/i/dbhub">DBHub on mcp.tc</a></div>
```
Options:
- `data-theme="light"` or `"dark"` on the tag or the placeholder fixes the colors. Without it, the card follows the visitor’s light or dark mode.
- `data-size="compact"` gives a smaller card without the tagline.
- The CSS variable `--mcptc-max-width` on the placeholder or a parent sets the width (default `520px`).
- `?lang=` on the script URL sets the card’s language: `en`, `it`, `fr`, `de` or `es`.
If the site has a Content Security Policy, allow `script-src https://mcp.tc` and `img-src data:` (the icon is inline).
For a README or other Markdown docs, use the badge instead:
```markdown
[](https://mcp.tc/i/dbhub)
```
Reference: https://mcp.tc/embedChange history
This server runs on your computer, so we follow its npm package: each new version shows up here, with edits by its owner.
-
New version 1.7.0 (was 1.6.1). Read from npm.
-
New version 1.6.1 (was 1.6.0). Read from npm.
-
New version 1.6.0 (was 1.5.1). Read from npm.
-
New version 1.5.1 (was 1.5.0). Read from npm.
-
New version 1.5.0 (was 1.4.0). Read from npm.
-
Tracking started: version 1.4.0.
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 values 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.
Does mcp.tc track changes to DBHub?
Partly. It runs on your computer, so we follow its npm package: its History tab shows each new version and edits by its owner. Follow the listing to get an email when it changes.
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.
mcp.tc isn’t affiliated with Bytebase. This page was built from DBHub’s public metadata, last checked on 3 Oct 2026, and an AI model wrote the description, so it can be wrong. Names and marks belong to their owners. Something off? Report this listing.