DBX: A 25 MB Tauri Database Client That Ships 100+ Drivers, a Rust MCP Server, and a `dbx agent setup` That Installs Itself Into Your Coding Agent — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

DBX: A 25 MB Tauri Database Client That Ships 100+ Drivers, a Rust MCP Server, and a `dbx agent setup` That Installs Itself Into Your Coding Agent

t8y2/dbx is a 25 MB Tauri/Rust desktop client for 100+ databases, a separate Rust-powered Model Context Protocol server with 18 tools, and a CLI that bootstraps an official `~/.agents/skills/dbx/` Agent Skill for shell-capable coding agents. The angle is not the surface count — it's that the same project ships all three layers with a coordinated release pipeline (dbx, packages, agents). Pick apart how the layering works, what `dbx_get_schema_context` actually returns, and the Salesforce two-step write pattern.

DBX: A 25 MB Tauri Database Client That Ships 100+ Drivers, a Rust MCP Server, and a dbx agent setup That Installs Itself Into Your Coding Agent

https://github.com/t8y2/dbx is the kind of project that looks, at first, like a DBeaver replacement. The README leads with a 25 MB binary, 100+ supported engines, and the kinds of feature rows you’d expect from a desktop SQL client: schema browser, ER diagram, explain plan, field lineage, data compare. It also supports message queues (Kafka, RocketMQ, RabbitMQ, Pulsar, MQTT) and service-discovery backends (Nacos, Consul, ZooKeeper, etcd) in the same UI. That alone would be a reasonable post in 2024, but it isn’t the story in 2026. The story is that the same project ships a Rust-powered Model Context Protocol server with 18 tools, a CLI that installs an official Agent Skill into ~/.agents/skills/dbx/, and three parallel release channels (dbx, packages, agents) so each layer can ship on its own cadence.

The post is the layering.

What the project actually is

The repository at t8y2/dbx is a monorepo with three independent surfaces, each with its own release channel on GitHub and its own npm package name:

  1. DBX desktop — t8y2/dbx main repo, the Tauri/Rust + Vue frontend GUI, ~25 MB across macOS, Windows, Linux. License: Apache-2.0. Releases tagged v0.6.x (most recent: v0.6.34 on 2026-10-04). Installs via Homebrew, Scoop, WinGet, or Flatpak.
  2. DBX MCP server — packages/mcp-server/ in the same monorepo, distributed as @dbx-app/mcp-server on npm and as native binaries under packages-v* GitHub releases. The MCP protocol, connection loading, SQL safety, schema access, Redis support, MongoDB shell parsing, Web backend access, and database execution are all implemented in Rust. Node.js is only a launcher shim so existing npm/npx and MCP client configs keep working.
  3. DBX CLI — packages/cli/ in the same monorepo, distributed as @dbx-app/cli on npm (also via Homebrew t8y2/tap and direct native downloads). The CLI is the third surface and the one that does something interesting: it bundles a dbx Agent Skill and installs it offline into ~/.agents/skills/dbx/ when you run dbx agent setup.

The release log shows all three channels moving in lockstep: v0.6.34 (2026-10-04 21:47 UTC) → packages-v0.4.107 (2026-10-04 21:14 UTC) → agents-v0.2.131 (2026-10-04 20:34 UTC). Three separate version lines, three release artifacts, all cut within 90 minutes of each other. The desktop, the MCP server, and the agent skill are the same release, not three loosely-coupled projects.

The bet, in one sentence

A database client that wants to be the canonical bridge between a human running SQL and a coding agent running SQL needs the same connection storage, the same SQL safety model, the same schema introspection code, and the same release cadence — and the only way to deliver that is to ship the GUI, the MCP server, and the Agent Skill from a single repo with three parallel release lines.

The README makes the bet explicit: “DBX provides a separate Rust-powered MCP server … that lets AI coding agents query databases using connections configured in DBX. The MCP server is distributed independently from the desktop application, so installing DBX does not automatically install the MCP executable.” The MCP server reads DBX’s connection storage (~/Library/Application Support/com.dbx.app/dbx.db on macOS, ~/.local/share/com.dbx.app/dbx.db on Linux, %APPDATA%\com.dbx.app\dbx.db on Windows). Add a connection once in the GUI; both the desktop and the MCP server see it.

The 18 MCP tools

The MCP server exposes 18 tools. The interesting ones:

  • dbx_list_connections / dbx_list_databases / dbx_add_connection / dbx_duplicate_connection / dbx_remove_connection — full connection lifecycle, so the agent can manage the same connection set the human does.
  • dbx_list_tables / dbx_describe_table / dbx_list_routines / dbx_get_routine_source / dbx_get_schema_context — schema introspection, including source code for stored procedures.
  • dbx_execute_query (default 100 rows, max_rows 1–1000) / dbx_execute_batch (multi-statement scripts with optional use_transaction) / dbx_open_session / dbx_close_session — query primitives, with a stateful session mode that pins one backend connection.
  • dbx_execute_redis_command / dbx_send_message / dbx_peek_messages — Redis, Kafka, and message-queue support, with dbx_peek_messages accepting start_position (latest/earliest/offset) and honoring a 256 KiB output budget with outputTruncated and incomplete flags.
  • dbx_open_table / dbx_execute_and_show — desktop integration that surfaces the result inside the running DBX UI for human review.
  • dbx_salesforce_current_user / dbx_salesforce_prepare_write / dbx_salesforce_apply_write — the Salesforce two-step write pattern.

The Salesforce pair is the one that needs a closer look.

The Salesforce two-step write pattern

SOQL is read-only, so dbx_execute_batch and dbx_open_session are explicitly refused for Salesforce connections. A record write is a two-step confirmed operation. dbx_salesforce_prepare_write returns a summary plus a single-use confirm_token that expires after 5 minutes. A person approves that summary. Then dbx_salesforce_apply_write sends exactly the prepared statement. The per-connection Allow DML switch in DBX Settings → MCP, which is off by default, gates preparing; “Salesforce cannot roll an applied write back” is the README’s load-bearing warning.

This is the only write pattern in the entire 18-tool set that requires a human-in-the-loop confirm token. The reason is operationally honest: every other write is recoverable (Postgres BEGIN/ROLLBACK, Redis MULTI/DISCARD, Mongo session abort). A Salesforce DML, once applied, is real production state in someone else’s org. The 5-minute TTL on the confirm token and the two-step prepare/apply split is the project admitting that, for this one engine, the agent’s write authority is not the same as the human’s. The fact that the same project that ships 18 tools and 100+ drivers — and uses MCP resources with URI templates like dbx://connections/{id}/table-schema{?database,schema,table} for read paths — pauses for a human approval on a single write path is the most useful design detail in the entire codebase.

The Agent Skill, and what dbx agent setup actually does

The CLI ships a dbx Agent Skill. The CLI command:

dbx agent setup
dbx agent status

installs or updates the bundled official DBX Skill into ~/.agents/skills/dbx/. The README specifies that setup runs entirely offline and can be repeated to install a newer bundled version. It refuses to overwrite an unmanaged or locally modified DBX Skill unless --force is supplied. dbx agent status reports the installed version. The skill is the same file shape that Claude Code, Codex, Hermes Agent, and other shell-capable coding agents read from ~/.agents/skills/.

The reason this matters: the MCP server is a process that listens on stdio (or HTTP with a bearer token) and answers tool calls. An Agent Skill is a prompt-time artifact — markdown or YAML that the coding agent reads at the start of a session to know which CLI commands exist, what flags they take, and what their safe defaults are. dbx ships both. When the user types “show me the schema for the production database and count orders from last week,” the agent’s prompt carries the DBX Skill and reaches for dbx context production --tables orders and dbx query production "select count(*) from orders where created_at > now() - interval '7 days'". The MCP server then executes the query against the same connection storage the user set up in the GUI. Three layers, one connection set, one release pipeline.

What dbx_get_schema_context actually returns

Most of the 18 tools are self-explanatory wrappers around obvious operations. dbx_get_schema_context is the one that earns its place. The MCP server’s “compact schema context suitable for an AI model” is the bridge between the database’s full DDL and what the model can fit in a context window. The CLI’s analog is dbx context <connection> --tables users,orders, which prints a compact human-readable version of the same thing. The compaction is what lets a coding agent ask “tell me about the schema” without burning 30k tokens on column lists, indexes, and foreign keys. The skill probably tells the agent to prefer dbx context over dbx_describe_table for this exact reason. (I have not read the bundled skill source directly — dbx agent setup writes to ~/.agents/skills/dbx/SKILL.md after install. Reading it would be the next step if you wanted to fact-check the compaction format.)

Why the desktop app is 25 MB

A 25 MB desktop SQL client for 100+ databases sounds like a typo until you read the architecture. Tauri uses the OS’s native WebView rather than bundling Chromium — that alone is the difference between Tauri (~MBs) and Electron (~150MB+). The frontend is Vue. The backend is Rust. Database connectivity is implemented in Rust without Node.js native-addon dependencies; the project explicitly notes “no better-sqlite3 runtime dependency and no Node native-addon ABI coupling.” DuckDB, Postgres, MySQL, SQLite, Redis, MongoDB, ClickHouse, SQL Server, Oracle, Elasticsearch, Meilisearch, the JDBC agent path for Dameng, KingbaseES, Oracle, DB2, Hive, Trino, Snowflake, SAP HANA — all driven from Rust.

The size budget has to cover 100+ drivers, the message-queue consoles (Kafka / RocketMQ / RabbitMQ / Pulsar / MQTT), the service-discovery backends (Nacos, Consul, ZooKeeper, etcd), the schema tools (ER diagram, schema diff, field lineage, explain plan), the data grid with inline editing and CSV/JSON/Markdown/XLSX/INSERT export, the AI SQL Assistant that “describes what you want in plain language — get SQL back” and “runs AI-generated SQL through built-in safety checks,” the connection import from DBeaver or Navicat, the SSH tunnel, the encrypted credential store, the plugin marketplace — and the 25 MB figure holds. The trade-off is what Tauri always trades: native menus and title bars feel like the host OS, but the WebView rendering path is the WebView, not a fully custom paint pipeline. If you’ve used DataGrip, the comparison is “less visual polish, smaller download, way more drivers.”

The MCP server, in production

@dbx-app/mcp-server is the npm package; dbx-mcp-server is the global binary after npm install -g. The configuration for an MCP client (Claude Code, Cursor, Windsurf, anything MCP-compatible) is one block:

{
  "mcpServers": {
    "dbx": {
      "command": "npx",
      "args": ["-y", "@dbx-app/mcp-server"]
    }
  }
}

The npm package automatically installs the native package matching the current OS and CPU. The README warns explicitly: “Do not install with --no-optional, because npm optional dependencies carry the platform binary.” For users who can’t or won’t use npm, every package release publishes native archives and SHA256SUMS in GitHub Releases under packages-v*:

PlatformRelease assetnpm platform package
macOS Apple Silicondbx-mcp-darwin-arm64.tar.gz@dbx-app/mcp-darwin-arm64
macOS Inteldbx-mcp-darwin-x64.tar.gz@dbx-app/mcp-darwin-x64
Linux glibc ARM64dbx-mcp-linux-arm64-gnu.tar.gz@dbx-app/mcp-linux-arm64-gnu
Linux glibc x64dbx-mcp-linux-x64-gnu.tar.gz@dbx-app/mcp-linux-x64-gnu
Windows ARM64dbx-mcp-win32-arm32.zip@dbx-app/mcp-win32-arm64
Windows x64dbx-mcp-win32-x64.zip@dbx-app/mcp-win32-x64

The native archive path is the one to remember when the deployment is an air-gapped machine, a server without Node, or a CI runner that doesn’t have npm. Direct native execution does not require Node.js. The default transport is stdio; an optional Streamable HTTP transport is gated by DBX_MCP_HTTP_TOKEN=replace-with-a-long-random-secret dbx-mcp-server --http, listening on http://127.0.0.1:5225/mcp. Streamable HTTP is the right choice when the MCP client is in a different process from the database — e.g. a hosted agent that needs to talk to a DBX instance running on a developer laptop across an SSH tunnel.

Three execution modes, one tool surface

The same 18 tools run in three modes, all of which look identical to the MCP client:

  • Local native mode is the default. MCP reads DBX connection storage and executes supported connections (PostgreSQL, MySQL, SQLite, compatible SQL databases, Redis standalone, MongoDB) directly in the Rust process.
  • DBX Web / Docker mode swaps the local connection storage for a deployed DBX Web backend: DBX_WEB_URL=https://dbx.example.com, DBX_WEB_PASSWORD=<web login password>. Desktop UI tools (dbx_open_table, dbx_execute_and_show) are hidden in Web mode because there is no desktop to surface results into. Web mode honors the standard system proxy env vars (HTTP_PROXY/HTTPS_PROXY/ALL_PROXY, bypass via NO_PROXY); proxies that need auth use the http://user:pass@host:port URL form. Extra headers go through DBX_WEB_HEADERS (a JSON object, applied to every request including auth). For self-signed HTTPS backends: DBX_WEB_INSECURE_SKIP_VERIFY=1 to skip cert verification, or DBX_WEB_CA_CERT to trust a private CA.
  • Agent/JDBC databases — Dameng, KingbaseES, Oracle, DB2, Hive, Trino, Snowflake, SAP HANA, etc. — route through DBX’s Java agent infrastructure rather than a Node.js database driver. The native binary does not bundle every proprietary JDBC driver or JRE; you install the database agent through DBX first.

The three modes are not separate servers; they are configurations of the same Rust binary. The MCP client config block changes, the 18 tools stay the same.

The access policy, and why it reloads on every request

Three execution modes for the connection (read_only, safe_write, high_risk_write) are managed in DBX Settings → MCP. The MCP server reloads the policy for every request, which is the right default — a policy change in the GUI takes effect on the next tool call without an MCP server restart. When connection scoping is enabled, mutating connection tools and desktop UI tools are hidden. The “upgrade compatibility” line is the load-bearing one: an existing DBX_MCP_ALLOW_WRITES=0 (or false) remains a read-only restriction only until a central MCP policy is saved for the first time; it can never enable writes or override a saved policy. The env var is a one-way ratchet into a more restrictive mode, not a backdoor into a less restrictive one.

What it doesn’t fix

Three honest limits, one per paragraph.

First, the Agent Skill is shipped as a single bundled file inside the CLI binary, not as a curated set of skills the user can mix and match. If the bundled skill’s prompt is wrong about a flag or default, the only recourse is dbx agent setup --force after a CLI upgrade, or manually editing the file (which setup will then refuse to overwrite without --force). The skill is a single point of failure for “what the agent thinks DBX does,” and it ships as a binary blob, not as versioned text in the repo. (The repo probably does keep a versioned text source — I have not grepped for it — but the installed path is ~/.agents/skills/dbx/SKILL.md, and the CLI owns its lifecycle.)

Second, the MCP server is a separate process from the desktop by design, but that means a freshly-installed DBX GUI does not automatically give the agent DBX access. You have to run npm install -g @dbx-app/mcp-server (or npx -y @dbx-app/mcp-server) and add the .mcp.json block and verify the connection storage path. The README’s “the MCP server is distributed independently from the desktop application, so installing DBX does not automatically install the MCP executable” is a feature for the air-gapped / server use case, but it is a three-step setup for the casual user. The dbx agent setup skill-install path is the CLI’s answer to this; the MCP server’s answer is its own separate install.

Third, the MCP server’s “official Agent Skill” is one project’s opinion about how an agent should use DBX. If you’re running Hermes Agent with a different skill set, or you’ve curated your own skill set for your team’s conventions, the bundled skill may conflict. setup refuses to overwrite an unmanaged or locally modified DBX Skill unless --force is supplied — that is the right default for safety, but it means skill curation has to happen outside dbx agent setup. The ~/.agents/skills/dbx/ location is the same convention other skills use; the project chose not to namespace it (~/.agents/skills/dbx-app/ would have been less collision-prone) probably to make dbx agent setup discoverable.

What’s next

The three release channels — dbx (desktop), packages (MCP server + CLI), agents (skill bundles) — are at v0.6.34, packages-v0.4.107, and agents-v0.2.131 as of 2026-10-04. The version numbers tell you where the project thinks the surface is: 0.6.x for the desktop, 0.4.x for the packages, 0.2.x for the agents. The skill layer is the youngest, the desktop is the most mature, and the packages channel sits in between. A natural next milestone is 1.0 of the agents layer, which would imply the skill format is stable and the offline-install pipeline is production-grade — at which point the layered story (desktop + MCP server + agent skill, three release channels, one connection set) becomes the kind of architecture other 2026 database clients are going to copy.

Whether the rest of the open-source SQL client ecosystem will converge on this shape — a single repo, three release channels, Rust at the protocol boundary, an Agent Skill that installs itself from a CLI — is the open question. DBX is the first project I have seen that ships all three layers with the same release cadence and a coordinated version line. The 25 MB download and the 18 MCP tools and the 100+ database drivers are the surface; the bet is that a database client without an Agent Skill is going to feel, by the end of 2026, like a database client without a CLI.

References and where to dig further

  • Repository: https://github.com/t8y2/dbx — 24,799 stars, 5,930 forks, Apache-2.0, last push 2026-10-05
  • MCP server source and README: https://github.com/t8y2/dbx/tree/main/packages/mcp-server (38,632 bytes for the package README)
  • CLI source and README: https://github.com/t8y2/dbx/tree/main/packages/cli
  • npm: @dbx-app/mcp-server, @dbx-app/cli, plus per-platform native packages (@dbx-app/mcp-darwin-arm64, etc.)
  • Homebrew tap: brew tap t8y2/tap && brew install dbx-cli
  • Plugin store: t8y2/dbx-store on GitHub
  • Sister product Vectorize’s earlier Hindsight post (covered in this blog on 2026-09-26) uses a similar “single vendor, multiple surfaces, MIT/Apache split” pattern. DBX is Apache-2.0 across the board; the question of whether the project is sustainable at 24.7K stars and a 3-channel release cadence is the same question every 2026 open-source DB tooling project is going to have to answer.
Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.