dbhub
Level ALocalToken conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.
Overview
DBHub is a lightweight database MCP server that connects to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite through a single interface. It loads just two tools by default at about 1.4k tokens to save context window. It supports multiple simultaneous connections, read-only mode, row limiting, and query timeouts, plus SSH tunneling and SSL/TLS. A built-in web workbench lets you run queries and view request traces.
Installation
MCP client config (paste into mcp.json)
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub@latest",
"--transport",
"stdio",
"--dsn",
"postgres://user:password@localhost:5432/dbname"
]
}
}
}Agent install prompt
Copy and paste into Cursor / Claude / other agents to install this MCP for you
Please read this MCP repository and install it into my current environment:
https://github.com/bytebase/dbhub
Known working client config (can write into mcp.json):
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub@latest",
"--transport",
"stdio",
"--dsn",
"postgres://user:password@localhost:5432/dbname"
]
}
}
}
Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.
Related servers
mempalaceThe best-benchmarked open-source AI memory system. And it's free.private-gptComplete API layer for private AI applications on local models: RAG, skills, toocodebase-memory-mcpLocal code intelligence for developers and AI agents. Connect code, docs and infcontext-modeFree, local plugin that keeps tool output out of your coding agent's context wincogneeCognee is the open-source AI memory platform for agents. Give your AI agents pergraphitiBuild Real-Time Knowledge Graphs for AI Agents