DBHub

Active
GitHub TypeScript MIT

Description

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite.

Key Features

  • Zero-dependency MCP server with only two tools to maximize context window
  • Multi-database support: PostgreSQL, MySQL, MariaDB, SQL Server, SQLite
  • Multi-connection via TOML config for simultaneous database access
  • Built-in safety guardrails: read-only mode, row limits, query timeouts
  • SSH tunneling and SSL/TLS encryption for secure database access
  • Integrated web workbench for visual query execution and request tracing

Use Cases

💡 Connecting AI coding assistants (Claude, Cursor, Copilot) to production databases
💡 Schema exploration and SQL query generation through natural language
💡 Multi-environment database management from a single MCP server instance
💡 Secure database access for development teams with audit and guardrails

Categories

Quick Start

npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

Related Projects