PlugWiki
dbx logo

DBX MCP Server: Setup for Claude Code, Cursor and Other Apps

OfficialLocal
Getnpm@dbx-app/mcp-servert8y2/dbx

Lets Claude, Cursor and Codex browse schemas and run queries on the databases you saved in DBX.

DBX is a database client, and this server lets your assistant use the connections you already saved in it. It can list tables, show columns, run queries and, if you allow it, change data. It runs on your computer and uses your saved connections, so you do not paste database passwords into the assistant's config.

Set how much the assistant may do in DBX under Settings, then MCP. Choose Read only, Data read/write or Full access, and limit which connections it can see.

Good for

  • Developers who already keep their databases in the DBX database client
  • Anyone who wants an assistant to explain a schema or write and test SQL
  • Teams that use Redis, MongoDB, Kafka, Nacos or Consul next to SQL
  • Security-minded users who want a read-only default set in one place

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install dbx MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the dbx MCP server to Claude Code. Run this command:
    
    claude mcp add dbx -- npx -y @dbx-app/mcp-server
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us.

Tools

  • Lists the database connections you saved in DBX

    Returns your DBX connections with their names, groups, database types, endpoints and saved notes. Notes are visible to the assistant, so keep passwords out of them.

    Try: “List my DBX connections.”

    Read · dbx_list_connections

  • Lists the databases on a connection

    Lists database names on a connection, limited to the ones DBX MCP settings allow.

    Try: “Which databases are on the production Postgres connection?”

    Read · dbx_list_databases

  • Lists tables and views in a database

    Lists the tables and views for a connection. For some connection types it lists collections or message topics.

    Try: “Show the tables in the billing database.”

    Read · dbx_list_tables

  • Shows a table's columns and details

    Returns column definitions and metadata for one table.

    Try: “Describe the orders table.”

    Read · dbx_describe_table

  • Gives the assistant a compact summary of your tables and columns

    Returns compact table and column context so the assistant can write correct SQL.

    Try: “Build schema context for the billing database.”

    Read · dbx_get_schema_context

  • Lists stored procedures and functions

    Lists stored procedures and functions in a schema.

    Try: “What stored procedures exist in the public schema?”

    Read · dbx_list_routines

  • Shows the code of a stored procedure or function

    Returns the full source text of a stored procedure or function.

    Try: “Show me the source of calculate_invoice.”

    Read · dbx_get_routine_source

  • Runs a SQL query or MongoDB command and returns rows

    Runs a query on a connection and returns 100 rows by default, up to 1000. What it may change depends on the permission mode you set in DBX: read only, data read/write or full access.

    Try: “Count orders created in the last seven days.”

    Delete · dbx_execute_query

  • Runs a script of several SQL statements at once

    Runs a multi-statement SQL script and returns a result per statement. It can run the whole script inside one transaction.

    Try: “Run these three migration statements in one transaction.”

    Delete · dbx_execute_batch

  • Starts a session that keeps settings between queries

    Opens a session pinned to one connection so temporary tables and session settings persist across calls. Idle sessions expire after 30 minutes by default.

    Try: “Open a session and create a temp table for my report.”

    Network · dbx_open_session

  • Ends a query session

    Closes a session and releases its connection.

    Try: “Close the session.”

    Read · dbx_close_session

  • Starts a database transaction

    Begins a transaction on a transaction-enabled native MySQL session.

    Try: “Begin a transaction before the updates.”

    Write · dbx_begin_transaction

Read from the source code

Permissions

high risk · 4 things to watch

High risk

It can query and, depending on the mode you set in DBX, change or delete data in every connection it can see. Use Read only mode and allow only the connections you need.

What it can do

Watch out for

  • Full access allows DDL and deletes

    In Full access it can drop tables, truncate data and run broad updates or deletes. Pick Read only in DBX unless you need writes. github.com

  • It can remove connections and Nacos or Consul data

    Tools can delete DBX connections, Nacos configurations and Consul keys. Delete tools are marked high risk and may need a confirmation in the DBX app. github.com

  • Saved connection notes are visible to the assistant

    Connection notes are returned with the connection list. Do not store passwords or secrets in notes. github.com

  • Plugin tools are open-ended

    One tool runs tools that DBX plugins provide, such as SSH or Kubernetes plugins in the source. Check which plugins are installed before enabling them. github.com

Security advisories

No published security advisories for the MCP server as of Nov 1, 2026.

1 other advisory is about the wider dbx project, not this MCP server. See them on GitHub

Technical details
Turning on read-onlyIn DBX Settings > MCP choose Read only. Connection-level read-only and production protection also still apply.
Talks toConnects to your databases and, in Web mode, to your DBX Web server. Plugin tools may reach other services
Sign-in and keysReads saved connections from DBX's own storage. DBX Web mode uses a password set in an environment variable.
Data retentionSQL text is not included in normal errors or logs unless you turn on debug logging.
Scopes
  • Read only, Data read/write or Full access, set in DBX Settings > MCP

  • Connection allowlist set in DBX

Questions

Is the DBX MCP server official?

Yes. It is built by the DBX project (t8y2/dbx) and lives in the same repository as the DBX desktop app, under packages/mcp-server.

Is DBX MCP free?

Yes. The DBX project is open source under Apache-2.0, and the MCP server is a separate package from the desktop app. You need your database connections set up in DBX.

Do I need the DBX app?

You need DBX to create and store your connections. The native server can run without DBX open, but two tools that show results inside DBX need the app running.

Can I make it read-only?

Yes. Choose Read only under Settings, then MCP in DBX. The docs do not say which mode is the default, so check the setting before first use. The policy is reloaded on every request, so you do not put permission flags in the client config.

Can it run on a server or in Docker?

Yes. Set it to use a DBX Web or Docker deployment and give it the web password. It can also serve a local HTTP endpoint protected by a bearer token.

Which databases does it support?

The README names PostgreSQL, MySQL, SQLite, Redis and MongoDB as native. Other databases may need a DBX agent and Java runtime installed. Kafka, Salesforce, Nacos and Consul have their own tools.

Is there a native install without Node?

Yes. The docs recommend a native installer and also offer Homebrew, with npm as an alternative. The install box above shows the npm route.

Is this list of tools complete?

The list covers the tools registered in the source. The README mentions fewer, and plugins can add more tools at run time.

Information

updated Nov 2, 2026

Publisher
Official
Package
@dbx-app/mcp-server
Registry
npm
Transport
stdio
Version
0.1.3
License
Apache-2.0
Last commit
Oct 31, 2026
Open issues
1,352
Listed in
Official MCP registry

WebsiteGitHubnpmOfficial MCP RegistryChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 3
  1. DBX MCP server README · github.com
  2. DBX MCP docs · github.com
  3. DBX MCP server source · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.