DBX
Lets your AI agent query your databases using the connections you already set up in DBX.
29k stars on GitHubby t8y2License Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add dbx -- npx -y @dbx-app/mcp-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
List the tables in my database and describe what each one holds
How many orders did we get last week? Use the sales database
What it is
DBX is a small database client for desktop, Docker and the command line that supports more than 100 databases. Its MCP server lets AI coding agents query your databases through connections you already configured in DBX. The app also has a built-in AI assistant that writes SQL.
What it can do
- Query databases through DBX connections
- Work with MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server and more
- Use the query editor with autocomplete and history
- Check AI-generated SQL with built-in safety checks
- Inspect Kafka, RabbitMQ and other message queues
When to use
- βΊWhen you want your agent to answer questions from your database
- βΊWhen you already manage connections in DBX and want one config for every agent
- βΊWhen you need to look at topics and messages next to your databases
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
sql-queriesHelps your agent turn plain-language business questions into SQL queries for databases such as PostgreSQL, MySQL or BigQuery.cloud-sql-basicsTeaches your agent to create and manage Cloud SQL databases on Google Cloud for MySQL, PostgreSQL and SQL Server, with backups and secure connections.dbxLets your agent inspect your configured databases, explore schemas and run bounded read-only queries through the DBX command line tool.Frequently asked questions
How big is it?
About 25 MB, with no Java runtime, Python venv or bundled Chromium.
Which databases does it support?
More than 100, including MySQL, PostgreSQL, SQLite, MongoDB, Redis, DuckDB, ClickHouse, SQL Server and Oracle.
Which agents can use the MCP server?
Claude Code, Cursor, Windsurf and other AI coding agents.
Where does it run?
As a desktop app on macOS, Windows and Linux, in Docker for teams, or as a web version.
Does it have its own AI?
Yes. The built-in assistant works with Claude, OpenAI or local models through Ollama.
Does it check AI-written SQL?
The readme says built-in safety checks review AI-generated SQL before it runs.
If it does not work
- βΊSet up and test your database connection in DBX first, since the MCP server uses those connections.
- βΊRestart your MCP client fully after adding the server config.
- βΊCheck the DBX releases page and docs if the desktop app does not start on your system.
5 new skills a week. 1 minute to read.