Back to Home
bytebase icon

dbhub

Verified Safe

by bytebase

Overview

A database gateway that exposes SQL data sources via a RESTful API and the Model Context Protocol (MCP), enabling structured interaction with multiple database types.

Installation

Run Command
pnpm dev

Environment Variables

  • 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_PROXY_JUMP
  • NODE_ENV

Security Notes

The server employs several good security practices, including explicit redaction of sensitive credentials (passwords, SSH keys) from API responses and the use of parameterized queries in database connectors to mitigate SQL injection risks. It also includes SDK-level read-only mode enforcement for PostgreSQL and SQLite. CORS is configured to allow requests only from localhost origins. Potential areas for further tightening include a more explicit whitelist for CORS origins beyond simple localhost checks. The server relies on user-provided DSNs and SSH configurations, requiring careful handling of these inputs by the deployment environment.

Similar Servers

Stats

Interest Score91
Security Score8
Cost ClassHigh
Avg Tokens1500
Stars1918
Forks161
Last Update2026-01-02

Tags

Database managementAPI gatewayModel Context Protocol (MCP)SQLData sources