DBX

Open-source, lightweight, cross-platform database management tool.

English | 简体中文

## Features - **Multi-database** — MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle, MariaDB, TiDB, OceanBase, openGauss, GaussDB, KingBase, Vastbase, GoldenDB - **Schema browser** — Databases, schemas, tables, columns, indexes, foreign keys, triggers, with sidebar search & pin - **Query editor** — CodeMirror 6 with syntax highlighting, SQL autocomplete (tables & columns), Cmd+Enter execution, selected SQL execution, SQL formatting - **AI SQL assistant** — Natural language to SQL, explain, optimize, fix errors (Claude / OpenAI) - **Data grid** — Virtual-scrolled table with inline editing, sorting, search, pagination, column resize, row numbers, zebra stripes - **Export** — CSV, JSON, Markdown - **File preview** — Drag & drop Parquet, CSV, JSON files to preview data instantly (powered by DuckDB) - **Redis browser** — Key pattern search, value viewer for all data types (String, Hash, List, Set, ZSet, Stream) - **MongoDB browser** — Document CRUD with pagination, direct URL connection (Atlas, replica sets) - **Query history** — Persistent history with search, restore, one-click copy - **Safety** — Confirmation dialog for DROP / DELETE / TRUNCATE / ALTER - **Auto-reconnect** — Transparent retry on connection loss - **SSH tunnel** — Key and password authentication - **Connection colors** — Color-coded connections for visual identification - **Auto-update** — Built-in update checker with release notifications - **Dark mode** — Native title bar theme sync - **i18n** — English & 简体中文 - **Tiny** — ~15 MB installer (no bundled Chromium) ## AI Agent Integration (MCP) DBX provides an [MCP server](mcp/) that lets AI coding agents query your databases using connections already configured in DBX. ```bash npx @dbx-app/mcp-server ``` Add to your `.mcp.json`: ```json { "mcpServers": { "dbx": { "command": "npx", "args": ["-y", "@dbx-app/mcp-server"] } } } ``` Works with Claude Code, Cursor, Windsurf, and any MCP-compatible agent. Supports listing connections, browsing tables, executing SQL, and opening tables directly in DBX's UI. See the [MCP server README](mcp/README.md) for details. ## Screenshot

## Install Download the latest release from the [Releases](https://github.com/t8y2/dbx/releases) page. **Homebrew (macOS):** ```bash brew install --cask t8y2/tap/dbx ``` **Scoop (Windows):** ```bash scoop bucket add dbx https://github.com/t8y2/scoop-bucket scoop install dbx ``` ### macOS Note DBX is not signed with an Apple Developer certificate. On first launch, macOS will block the app. To fix this: ```bash xattr -cr /Applications/dbx.app ``` Or: **System Settings → Privacy & Security → Open Anyway**. ## Getting Started ### Prerequisites - [Node.js](https://nodejs.org/) >= 18 - [pnpm](https://pnpm.io/) - [Rust](https://www.rust-lang.org/tools/install) >= 1.77 ### Development ```bash pnpm install pnpm tauri dev ``` ### Build ```bash pnpm tauri build ``` The installer will be in `src-tauri/target/release/bundle/`. ## Tech Stack | Layer | Technology | | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Framework | [Tauri 2](https://tauri.app/) | | Frontend | [Vue 3](https://vuejs.org/) + TypeScript | | UI | [shadcn-vue](https://www.shadcn-vue.com/) + Tailwind CSS | | Editor | [CodeMirror 6](https://codemirror.net/) | | Backend | Rust + [sqlx](https://github.com/launchbadge/sqlx) / [tiberius](https://github.com/prisma/tiberius) / [redis-rs](https://github.com/redis-rs/redis-rs) / [mongodb](https://github.com/mongodb/mongo-rust-driver) | ## Community [![LINUX DO](https://img.shields.io/badge/LINUX%20DO-Community-blue)](https://linux.do) | WeChat Group | QQ Group | | :---------------------------------------------: | :-----------------------------------------: | | | | ## Contributors ## Star History Star History Chart ## License [MIT](LICENSE)