DBHub
Free通用数据库 MCP 服务器,可连接 MySQL, PostgreSQL, SQLite, DuckDB 等。
About DBHub
DBHub is a zero-dependency, token-efficient database MCP (Model Context Protocol) server that enables MCP-compatible clients to connect to and explore multiple databases through a single interface. It supports PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite. DBHub is designed for local development with a focus on maximizing the context window by providing just two core MCP tools: execute_sql for executing SQL queries with transaction support and safety controls, and search_objects for exploring database schemas with progressive disclosure. It also supports custom reusable SQL operations defined via TOML configuration, multi-connection capabilities, guardrails like read-only mode and row limiting, and secure access via SSH tunneling and SSL/TLS encryption. Additionally, DBHub includes a built-in web workbench for visual query execution and trace viewing.
Key Features
Pros & Cons
- Zero-dependency and lightweight, maximizing token context window
- Supports five major SQL databases through a single unified interface
- Includes safety guardrails to prevent runaway operations
- Provides secure connection options (SSH tunneling, SSL/TLS)
- Offers both CLI/NPM and Docker installation methods
- Built-in web workbench for visual database interaction
- Requires Node.js version 22.5.0 or higher for NPM installation
- Only supports SQL databases, no NoSQL support listed
- Limited to MCP-compatible clients; not a standalone database client