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. 25 860 installs a week from npm. Last commit 16 Sep 2026.

Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

Installs per day peak 12 261 · avg 3 990 · -1% w/w
a month agotoday
25 860
Installs / week
npm · @bytebase/dbhub
3534
Stars
2 open issues
16 Sep 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 21 h ago · rules 3dff92dd89df

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);
  '~/.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": {
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.dbhub]
command = "npx"
args = ["-y", "@bytebase/dbhub"]
.cursor/mcp.json
{
  "mcpServers": {
    "dbhub": {
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "dbhub": {
      "args": [
        "-y",
        "@bytebase/dbhub"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: DSN (Database connection string (e.g., postgres://user:pass@host:5432/db)), DB_TYPE (Database type: postgres, mysql, mariadb, sqlserver, 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). The author declared them in the registry entry; get the values from the project itself.

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

34 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.

139 installs/wk local only
DataLink
by pilat

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

42 installs/wk local only
I
DB MCP Server
by stucchi

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

245 installs/wk local only
MCP Database Server
by souhar-dya

MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling.

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 25 860 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 with the file path 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 25 860 times in the last week. Week over week that is -1%. 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 534 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.