MCP directory
D

DBHub

by github.com/bytebase · v2.1.0 · updated Nov 21, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @bytebase/[email protected]

Environment variables

  • DSNsecret

    Database connection string (e.g., postgres://user:pass@host:5432/db)

  • DB_TYPE

    Database type: postgres, mysql, mariadb, sqlserver, oracle, clickhouse, sqlite

  • DB_HOST

    Database hostname

  • DB_PORT

    Database port

  • DB_USER

    Database username

  • DB_PASSWORDsecret

    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_PASSWORDsecret

    SSH password

  • SSH_KEY

    Path to SSH private key

  • SSH_PASSPHRASEsecret

    SSH key passphrase

  • SSH_AUTH_SOCK

    Path to SSH agent socket

More from github.com/bytebase

More MCP servers