Server data from the Official MCP Registry
Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB
Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB
Valid MCP server (1 strong, 1 medium validity signals). 1 code issue detected. 5 known CVEs in dependencies (0 critical, 2 high severity) ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 2 finding(s) downgraded by scanner intelligence.
5 files analyzed · 7 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: DSN
Environment variable: DB_TYPE
Environment variable: DB_HOST
Environment variable: DB_PORT
Environment variable: DB_USER
Environment variable: DB_PASSWORD
Environment variable: DB_NAME
Environment variable: TRANSPORT
Environment variable: PORT
Environment variable: ID
Environment variable: SSH_HOST
Environment variable: SSH_PORT
Environment variable: SSH_USER
Environment variable: SSH_PASSWORD
Environment variable: SSH_KEY
Environment variable: SSH_PASSPHRASE
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-bytebase-dbhub": {
"env": {
"ID": "your-id-here",
"DSN": "your-dsn-here",
"PORT": "your-port-here",
"DB_HOST": "your-db-host-here",
"DB_NAME": "your-db-name-here",
"DB_PORT": "your-db-port-here",
"DB_TYPE": "your-db-type-here",
"DB_USER": "your-db-user-here",
"SSH_KEY": "your-ssh-key-here",
"SSH_HOST": "your-ssh-host-here",
"SSH_PORT": "your-ssh-port-here",
"SSH_USER": "your-ssh-user-here",
"TRANSPORT": "your-transport-here",
"DB_PASSWORD": "your-db-password-here",
"SSH_PASSWORD": "your-ssh-password-here",
"SSH_PASSPHRASE": "your-ssh-passphrase-here"
},
"args": [
"-y",
"@dbhub/frontend"
],
"command": "npx"
}
}
}From the project's GitHub README.
[!NOTE]
Brought to you by Bytebase, open-source database DevSecOps platform.
+------------------+ +--------------+ +------------------+
| | | | | |
| | | | | |
| Claude Desktop +--->+ +--->+ PostgreSQL |
| | | | | |
| Claude Code +--->+ +--->+ SQL Server |
| | | | | |
| Cursor +--->+ DBHub +--->+ SQLite |
| | | | | |
| VS Code +--->+ +--->+ MySQL |
| | | | | |
| Copilot CLI +--->+ +--->+ MariaDB |
| | | | | |
| | | | | |
+------------------+ +--------------+ +------------------+
MCP Clients MCP Server Databases
DBHub is a zero-dependency, token efficient MCP server implementing the Model Context Protocol (MCP) server interface. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:
PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite.
DBHub implements MCP tools for database operations:
dbhub.toml configuration fileDBHub includes a built-in web interface for interacting with your database tools. It provides a visual way to execute queries, run custom tools, and view request traces without requiring an MCP client.

See the full Installation Guide for detailed instructions.
Docker:
docker run --rm --init \
--name dbhub \
--publish 8080:8080 \
bytebase/dbhub \
--transport http \
--port 8080 \
--dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
NPM:
npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
Demo Mode:
npx @bytebase/dbhub@latest --transport http --port 8080 --demo
See Command-Line Options for all available parameters.
Connect to multiple databases simultaneously using TOML configuration files. Perfect for managing production, staging, and development databases from a single DBHub instance.
See Multi-Database Configuration for complete setup instructions.
# Install dependencies
pnpm install
# Run in development mode
pnpm dev
# Build and run for production
pnpm build && pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.