Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
3,248 stars279 forksTypeScriptUpdated 7/29/2026100% free ยท open source
What it does
Dbhub is a zero-dependency, token-efficient database MCP server that supports multiple databases including Postgres, MySQL, SQL Server, MariaDB, and SQLite, allowing for efficient database management.
Install / run
git clone https://github.com/bytebase/dbhub.git && cd dbhub
When to use it
โขWhen you need a lightweight and efficient database management system for multiple databases
โขWhen you want to reduce dependencies and simplify your database infrastructure
โขWhen you require a flexible and scalable database solution for your startup
Quick start
1Run `npm install` to install the required dependencies
2Create a `config.yaml` file to configure your database connections, for example: `docker-compose up -d` to start the service
3Use the `dbhub init` command to initialize the dbhub server
4Access the dbhub web interface at `http://localhost:8080` to manage your databases
5Refer to the `README.md` file for more detailed configuration and usage instructions
Ready-to-paste prompt
Use the following command to start the dbhub server with a specific configuration: `DBHUB_CONFIG_PATH=config.yaml npm run start`
Heads up: Make sure you have Node.js (14 or higher) and npm installed on your system before attempting to install and run dbhub, as it is built using TypeScript and requires a compatible Node.js environment
Saves to your device
Topics
agents
ai
anthropic
claude
claude-ai
codex
cursor
database
dify
llm
mariadb
mcp
mcp-server
mssql
mysql
postgres
postgresql
sql
sqlite
sqlserver
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.