Skip to main content
Glama

DBHub

by bytebase
.env.example1.42 kB
# DBHub Configuration # Method 1: Connection String (DSN) # Use one of these DSN formats: # DSN=postgres://user:password@localhost:5432/dbname # DSN=sqlite:///path/to/database.db # DSN=sqlite::memory: # DSN=sqlserver://user:password@localhost:1433/dbname # DSN=mysql://user:password@localhost:3306/dbname DSN= # Method 2: Individual Database Parameters # Use this method if your password contains special characters like @, :, /, #, etc. # that would break URL parsing in the DSN format above # DB_TYPE=postgres # DB_HOST=localhost # DB_PORT=5432 # DB_USER=postgres # DB_PASSWORD=my@password:with/special#chars # DB_NAME=mydatabase # Supported DB_TYPE values: postgres, mysql, mariadb, sqlserver, sqlite # DB_PORT is optional - defaults to standard port for each database type # For SQLite: only DB_TYPE and DB_NAME are required (DB_NAME is the file path) # Transport configuration # --transport=stdio (default) for stdio transport # --transport=sse for SSE transport with HTTP server TRANSPORT=stdio # Server port for SSE transport (default: 3000) PORT=3000 # SSH Tunnel Configuration (optional) # Use these settings to connect through an SSH bastion host # SSH_HOST=bastion.example.com # SSH_PORT=22 # SSH_USER=ubuntu # SSH_PASSWORD=mypassword # SSH_KEY=~/.ssh/id_rsa # SSH_PASSPHRASE=mykeypassphrase # Read-only mode (optional) # Set to true to restrict SQL execution to read-only operations # READONLY=false

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bytebase/dbhub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server