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
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
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
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
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
The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
Databases
Weekly MCP digest – new and trending MCP servers in your inbox.