LibreAI / AI Agents / dbhub
// agents · bytebase/dbhub

dbhub

A token-conscious MCP server that connects AI tools to Postgres, MySQL, SQLite and more.

★ 3.6k stars⑂ 316 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

dbhub is an open-source ai agents project by bytebase (bytebase/dbhub on GitHub). It has 3,618 GitHub stars and 316 forks, is released under the MIT license, and was last updated on GitHub on 2 October 2026.

Repository
bytebase/dbhub
GitHub stars
3,618
Forks
316
License
MIT
Last updated on GitHub
2 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide the first concrete outcome you want from it, so you can pick the right example, template or mode instead of exploring everything at once.

  2. Get the project

    Clone the repository (or install the published package) and skim its README quick start for the requirements for your platform.

  3. Install and configure

    Run the documented install step and set any required configuration — such as provider keys, data sources or local services — before the first run.

  4. Run your first task

    Execute the smallest documented example end to end, confirm the output is what you expected, then adapt it to your real data or workflow.

// features

Why people love it

Multi-database, one server

PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite through a single MCP interface — no separate server per database.

Minimal, token-efficient tools

execute_sql, search_objects and opt-in explain_sql / health_check keep context use small.

Custom tools

Define reusable, parameterised SQL operations in dbhub.toml for your team.

Guardrails

Read-only mode, row limiting and query timeouts prevent runaway operations against production.

Secure access

SSH tunneling and SSL/TLS encryption for reaching databases safely.

Workbench included

A web workbench for exploring and querying connected databases.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source so you can inspect, configure and run it locally.

    git clone https://github.com/bytebase/dbhub.git
    cd dbhub
  2. Run DBHub with npx

    Point it at a database with a DSN — no install required.

    npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
  3. Add it to your MCP client

    Register the same command (stdio transport) in your client's MCP config and restart the client, as the README shows.

    npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"  # see README for client config
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains dbhub?

It is maintained by bytebase on GitHub (bytebase/dbhub), where the source, issues and releases live.

Is it free to use?

Yes — it is free and open source under the MIT licence, which permits use, modification and redistribution, including commercially, with attribution.

Does it need a paid API key?

No LLM key is needed by DBHub itself; your MCP client uses its own model, and your database credentials stay in your DSN/config.

How does it compare to per-database community MCP servers?

Compared with per-database community MCP servers, dbhub's distinguishing focus is: a token-conscious MCP server that connects AI tools to Postgres, MySQL, SQLite and more. Pick it when that focus matches your need; the alternative may suit you better if its broader or different scope is the priority.

How do I get started?

Clone https://github.com/bytebase/dbhub (or install its published package), follow the README quick start to install and configure it, then run the smallest documented example — the Run section on this page mirrors those steps.

// keep exploring

Similar tools

AI Agents

google_workspace_mcp

Control Gmail, Calendar, Docs, Sheets, Drive and more from AI — a full Google Workspace MCP server.

★ 3.3k starsMIT
View guide →
AI Agents

mcp

An MCP server that puts Hyperbrowser's browsers behind the protocol.

★ 789 starsMIT
View guide →
AI Agents

ouroboros

An Agent OS with interview-gated, budgeted evolution — one MCP server across 14 agent runtimes.

★ 6.2k starsMIT
View guide →
AI Agents

arxiv-mcp-server

A local MCP server for serious arXiv work — LaTeX section reads, BibTeX and topic watches.

★ 3.2k starsApache-2.0
View guide →
AI Agents

paper-search-mcp

MCP server, CLI and skills for searching and downloading academic papers from arXiv, PubMed and 20+ sources

★ 2.8k starsMIT
View guide →
AI Agents

mcp-shrimp-task-manager

Shrimp Task Manager: an MCP server that turns natural language into structured, dependent dev tasks.

★ 2.1k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if dbhub is not the right fit.

Get dbhub

Free and open — grab the source, star the repo, and start creating.