L'Agora
MCPLocal

DBHub

io.github.bytebase/dbhub

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

Repository
github.com/bytebase/dbhub
Version
2.1.0
Author
bytebase (namespace verified by the registry)
Source
Official MCP registry (updated Nov 21, 2026)

How to install it

Variables to fill in: DSN, DB_TYPE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME, TRANSPORT, PORT, ID, SSH_HOST, SSH_PORT, SSH_USER, SSH_PASSWORD, SSH_KEY, SSH_PASSPHRASE, SSH_AUTH_SOCK.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add dbhub -e DSN=YOUR_DSN -e DB_TYPE=YOUR_DB_TYPE -e DB_HOST=YOUR_DB_HOST -e DB_PORT=YOUR_DB_PORT -e DB_USER=YOUR_DB_USER -e DB_PASSWORD=YOUR_DB_PASSWORD -e DB_NAME=YOUR_DB_NAME -e TRANSPORT=YOUR_TRANSPORT -e PORT=YOUR_PORT -e ID=YOUR_ID -e SSH_HOST=YOUR_SSH_HOST -e SSH_PORT=YOUR_SSH_PORT -e SSH_USER=YOUR_SSH_USER -e SSH_PASSWORD=YOUR_SSH_PASSWORD -e SSH_KEY=YOUR_SSH_KEY -e SSH_PASSPHRASE=YOUR_SSH_PASSPHRASE -e SSH_AUTH_SOCK=YOUR_SSH_AUTH_SOCK -- npx -y @bytebase/[email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/[email protected]"
      ],
      "env": {
        "DSN": "YOUR_DSN",
        "DB_TYPE": "YOUR_DB_TYPE",
        "DB_HOST": "YOUR_DB_HOST",
        "DB_PORT": "YOUR_DB_PORT",
        "DB_USER": "YOUR_DB_USER",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_NAME": "YOUR_DB_NAME",
        "TRANSPORT": "YOUR_TRANSPORT",
        "PORT": "YOUR_PORT",
        "ID": "YOUR_ID",
        "SSH_HOST": "YOUR_SSH_HOST",
        "SSH_PORT": "YOUR_SSH_PORT",
        "SSH_USER": "YOUR_SSH_USER",
        "SSH_PASSWORD": "YOUR_SSH_PASSWORD",
        "SSH_KEY": "YOUR_SSH_KEY",
        "SSH_PASSPHRASE": "YOUR_SSH_PASSPHRASE",
        "SSH_AUTH_SOCK": "YOUR_SSH_AUTH_SOCK"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/[email protected]"
      ],
      "env": {
        "DSN": "YOUR_DSN",
        "DB_TYPE": "YOUR_DB_TYPE",
        "DB_HOST": "YOUR_DB_HOST",
        "DB_PORT": "YOUR_DB_PORT",
        "DB_USER": "YOUR_DB_USER",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_NAME": "YOUR_DB_NAME",
        "TRANSPORT": "YOUR_TRANSPORT",
        "PORT": "YOUR_PORT",
        "ID": "YOUR_ID",
        "SSH_HOST": "YOUR_SSH_HOST",
        "SSH_PORT": "YOUR_SSH_PORT",
        "SSH_USER": "YOUR_SSH_USER",
        "SSH_PASSWORD": "YOUR_SSH_PASSWORD",
        "SSH_KEY": "YOUR_SSH_KEY",
        "SSH_PASSPHRASE": "YOUR_SSH_PASSPHRASE",
        "SSH_AUTH_SOCK": "YOUR_SSH_AUTH_SOCK"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "dbhub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/[email protected]"
      ],
      "env": {
        "DSN": "YOUR_DSN",
        "DB_TYPE": "YOUR_DB_TYPE",
        "DB_HOST": "YOUR_DB_HOST",
        "DB_PORT": "YOUR_DB_PORT",
        "DB_USER": "YOUR_DB_USER",
        "DB_PASSWORD": "YOUR_DB_PASSWORD",
        "DB_NAME": "YOUR_DB_NAME",
        "TRANSPORT": "YOUR_TRANSPORT",
        "PORT": "YOUR_PORT",
        "ID": "YOUR_ID",
        "SSH_HOST": "YOUR_SSH_HOST",
        "SSH_PORT": "YOUR_SSH_PORT",
        "SSH_USER": "YOUR_SSH_USER",
        "SSH_PASSWORD": "YOUR_SSH_PASSWORD",
        "SSH_KEY": "YOUR_SSH_KEY",
        "SSH_PASSPHRASE": "YOUR_SSH_PASSPHRASE",
        "SSH_AUTH_SOCK": "YOUR_SSH_AUTH_SOCK"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.bytebase/dbhub on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.bytebase/dbhub on L’Agora](https://lagora.dev/badge/io.github.bytebase/dbhub.svg?lang=en)](https://lagora.dev/en/entry/io.github.bytebase/dbhub)

HTML

<a href="https://lagora.dev/en/entry/io.github.bytebase/dbhub"><img src="https://lagora.dev/badge/io.github.bytebase/dbhub.svg?lang=en" alt="io.github.bytebase/dbhub on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

Bytebase Local

Report this entry