mcpbeat Sign in

DBHub MCP Server

local only

DBHub runs on your own machine — the client starts it, so there is no endpoint to ping. 34 901 installs a week from npm. Last commit 26 Oct 2026.

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite

Installs per day peak 12 127 · avg 4 213 · +104% w/w
a month agotoday
34 901
Installs / week
npm · @bytebase/dbhub
3 767
Stars
2 open issues
26 Oct 2026
Last commit
9 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 6 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

  return path.join(__dirname, 'toml', name);
Known vulnerability in the package @bytebase/dbhub · GHSA-fm8p-53ww-hf6w
Known vulnerability in the package @bytebase/dbhub · GHSA-mwwr-p57h-56pf
  '~/.ssh/id_rsa',

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add dbhub -- npx -y @bytebase/dbhub
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.dbhub]
command = "npx"
args = ["-y", "@bytebase/dbhub"]
.cursor/mcp.json
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "dbhub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: DSN (Database connection string (e.g., postgres://user:pass@host:5432/db)), DB_TYPE (Database type: postgres, mysql, mariadb, sqlserver, oracle, sqlite), DB_HOST (Database hostname), DB_PORT (Database port), DB_USER (Database username), DB_PASSWORD (Database password), DB_NAME (Database name or SQLite file path), TRANSPORT (Transport mode: stdio or http), PORT (HTTP server port (default: 8080)), ID (Instance identifier for tool names), SSH_HOST (SSH server hostname), SSH_PORT (SSH server port (default: 22)), SSH_USER (SSH username), SSH_PASSWORD (SSH password), SSH_KEY (Path to SSH private key), SSH_PASSPHRASE (SSH key passphrase), SSH_AUTH_SOCK (Path to SSH agent socket).

Alternatives to DBHub

same job, measured the same way
Strut Stack SQL
by rzlco666

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

local only
MCP SQL Rust
by rzlco666

Token-efficient MCP server for MySQL, PostgreSQL, and SQLite

local only
DBHub Analytics
by amansingh63

MCP server for Databricks, BigQuery, PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

59 installs/wk local only
Dbmcp
by haymon

Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention

local only
Database MCP
by cocaxcode

MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.

85 installs/wk local only
DataLink
by pilat

MCP server for secure database access (PostgreSQL, MySQL, SQLite)

31 installs/wk local only
Faucet
by faucetdb

SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.

86 installs/wk local only
DB MCP Server
by stucchi

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

162 installs/wk local only

DBHub — questions

Answers built from our own checks of this server.

Why is there no uptime for DBHub?
DBHub runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @bytebase/dbhub was installed 34 901 times last week.
How do I connect DBHub?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls @bytebase/dbhub straight from npm; nothing to host, nothing to sign up for.
How many people use DBHub?
The npm package @bytebase/dbhub was installed 34 901 times in the last week. Week over week that is +104%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is DBHub open source?
Yes — it is published under the MIT licence, written in TypeScript, 3 767 stars on GitHub and 2 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.