Skip to content
Databases & Data

DBHub (Postgres & SQL)

Lets Claude explore and query your Postgres, MySQL, SQL Server or SQLite database.

Open sourceBy Bytebase
View on the web

What is it?

DBHub connects Claude to your own database. Ask "how many customers signed up last month by country?" and Claude finds the right tables, writes the SQL, runs it and explains the answer. It works with Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite.

It's deliberately lean: two tools by default, so it barely touches Claude's context. Claude Code's own documentation uses it as its database example. Connect with a read-only database user, as Anthropic recommends, and turn on read-only mode for anything with real customer data.

If you only use Postgres and want deep performance tuning (index advice, health checks, slow-query hunting), Postgres MCP Pro from Crystal DBA is the specialist pick, though it hasn't had a release since May 2025.

What Claude can do once it's connected

  • Look up tables, columns and indexes in your database
  • Write and run SQL to answer a question about your data
  • Explain why a query is slow (optional tool)
  • Run a database health check (optional tool)
  • Stay inside read-only mode, row limits and timeouts you set

Install in Claude Code

Open your terminal in the project folder and run:

Command
claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn "postgresql://readonly:password@localhost:5432/mydb"

Who it's for

Anyone with data in a SQL database who wants answers without writing SQL.

Best for

  • Asking questions of your data
  • Exploring an unfamiliar database
  • Writing and checking SQL
  • Quick business reports

Why it made the list

It's the database connector Anthropic points to, it covers every major SQL database and it's well maintained.

More MCPs like this

  • Supabase MCP

    Databases & Data

    Lets Claude create tables, run queries and deploy functions in your Supabase project.

    Free
  • Neon MCP

    Databases & Data

    Postgres databases Claude can spin up, query and branch for safe testing.

    Free
  • Excel MCP

    Databases & Data

    Lets Claude build and edit real Excel workbooks: formulas, charts, pivots and all.

    Open source
  • Airtable MCP

    Databases & Data

    Lets Claude read, search and update records in your Airtable bases.

    Open source