🔌 Socketlist

dbhub MCP server

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

Repository: bytebase/dbhub
Website: https://dbhub.ai
Stars: ★3651
Language: TypeScript
Last updated: 2026-10-13
agentsaianthropicclaudeclaude-aicodexcursordatabasellmmariadbmcpmcp-servermssqlmysqloraclepostgrespostgresqlsqlsqlitesqlserver

How to install dbhub MCP in Claude Desktop, Cursor and VS Code

Install

Taken from the official documentation (Claude Code MCP docs). Check it for required API keys before use.

Claude Code

Terminal (claude CLI)

claude mcp add --transport stdio db -- npx -y @bytebase/dbhub --dsn "postgresql://readonly:pass@prod.db.com:5432/analytics"

Claude Desktop

claude_desktop_config.json

{
  "mcpServers": {
    "db": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub",
        "--dsn",
        "postgresql://readonly:pass@prod.db.com:5432/analytics"
      ]
    }
  }
}

Cursor

~/.cursor/mcp.json

{
  "mcpServers": {
    "db": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub",
        "--dsn",
        "postgresql://readonly:pass@prod.db.com:5432/analytics"
      ]
    }
  }
}

VS Code

.vscode/mcp.json

{
  "servers": {
    "db": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub",
        "--dsn",
        "postgresql://readonly:pass@prod.db.com:5432/analytics"
      ]
    }
  }
}

Add to config generator – combine it with other servers, or get the Windsurf format.

Featured in: Best MCP servers for PostgreSQL · Best MCP servers for TypeScript developers · Best MCP servers for data analysis · Best MCP servers for OpenCode · Best MCP servers for LM Studio

Listed on Socketlist – add this badge to your README:
Listed on Socketlist

Maintain this project? Get it featured for free during launch →

Compare with codebase-memory-mcp →

Related Databases MCP servers

codebase-memory-mcp by DeusData · ★46616
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 langu
Databases
nightingale by ccfos · ★13354
Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
Databases
code-graph-rag by vitali87 · ★5258
The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
Databases
tabularis by TabularisDB · ★5215
Open-source desktop SQL workspace with 3 built-in database drivers and 16 shipped plugins, including SQL Server, DuckDB, ClickHouse and Redi
Databases
whodb by clidey · ★5037
Where data access meets operational intelligence
Databases
FlyEnv by xpf0000 · ★3281
Native local development environment for Windows, macOS & Linux. A modern alternative to XAMPP, MAMP, Laragon and Laravel Herd, with runtime
Databases
Weekly MCP digest – new and trending MCP servers in your inbox.