dbhub

dbhub

A zero-dependency, high-performance MCP server for databases with support for multiple database systems.

MCPDataOpen source
Type
MCP
Transport
http
Open source
Yes
GitHub Stars
★ 3.0k
Source
mcp-github

Overview

DBHub is a zero-dependency, high-performance MCP server implementing the Model Context Protocol (MCP) server interface. This lightweight gateway enables MCP-compatible clients to connect and explore various databases. It supports PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite, offering features such as multi-database connections and read-write protection. DBHub can be installed via Docker or NPM, making it ideal for AI applications requiring database operation capabilities.

Capabilities

  • Execute SQL queries
  • Search database objects
  • Define custom SQL operations
  • Multi-database connection
  • Read-write protection

Use cases

Database querying and operationsDatabase schema explorationMulti-database managementSecure data access

Setup

Requires: Node.js >= 22.5.0数据库连接信息
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"`

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

Which databases does DBHub support?

PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite.

How do I configure multi-database connections?

Use a TOML configuration file for multi-database setup.

Related skills