- Category
- Utilities
- Publisher
- gridex
- Repository
- Open repository
- Release
- Open release
- Current version
- v0.0.19
- Release date
- 2026-05-23
- Package size
- macOS 34.1 MB
gridex
AI native database IDE for macOS, Windows, and Linux. One app for PostgreSQL, MySQL, SQLite, Redis, MongoDB, SQL Server, and ClickHouse — with a built in MCP server and AI chat.
README
Gridex
AI-native database IDE for macOS, Windows, and Linux.
One app for PostgreSQL, MySQL, SQLite, Redis, MongoDB, SQL Server, and ClickHouse — with a built-in MCP server and AI chat.
Download
macOS — universal DMG (Apple Silicon + Intel), signed & notarized, auto-update via Sparkle · Windows — Velopack installer, Windows 10/11 · Linux — x86_64 AppImage, Qt 6, self-update from JSON feed
Looking for a specific version, delta updates, or checksums? See all releases or the download page.
Supported Databases
Seven drivers in one native binary. All share the same DatabaseAdapter protocol (~50 methods) so every feature — grid, query editor, ER diagram, backup, MCP — works identically across engines.
Why Gridex
- Native. AppKit on macOS, WinUI 3 on Windows, Qt 6 on Linux. No Electron, no web views for the grid.
- Multi-database. Seven drivers on macOS, six on Linux/Windows (ClickHouse macOS-only for now), each with the right primitives (SCAN for Redis, aggregations for MongoDB, stored procedures for SQL Server, sequences for Postgres, MergeTree mutations for ClickHouse).
- AI that sees your schema. Claude, GPT, Gemini, and Ollama can read your tables, run read-only queries, and write SQL scoped to the connection you pick.
- MCP server built in. Plug Gridex into Claude Desktop, Cursor, or any MCP client over stdio — 13 tools with a 3-tier permission model and audit trail.
- Credentials stay local. macOS Keychain / Windows Credential Manager. No cloud sync, no telemetry, no proxy.
Driver Highlights
| Database | Driver | Highlights |
|---|---|---|
| PostgreSQL | PostgresNIO | Parameterized queries, mTLS, sequences, full schema inspection |
| MySQL | MySQLNIO | Charset handling, parameterized queries, TLS, auto-reconnect with keepalive |
| SQLite | System libsqlite3 |
File-based, WAL mode, zero config |
| Redis | RediStack | Key browser, SCAN filter, Server INFO dashboard, Slow Log viewer, rediss:// TLS |
| MongoDB | MongoKitten | Document editor, NDJSON backup/restore, aggregation pipeline |
| SQL Server | CosmoSQLClient | TDS 7.4 (no FreeTDS), native BACKUP DATABASE, stored procedures |
| ClickHouse | Pure Swift (URLSession HTTP) | HTTP/HTTPS on ports 8123/8443, full mTLS via PKCS#12, system.* introspection, version-aware fallbacks (CH 20.8+) |
MCP Server
Expose any saved connection to MCP clients (Claude Desktop, Cursor, custom agents). Available on macOS (stdio), Windows (stdio + HTTP), and Linux (stdio). Every tool call runs through a permission gate and is recorded in the audit log.
15 tools across 5 permission tiers:
| Tier | Tools | When it runs |
|---|---|---|
| Schema | list_connections, list_schemas, list_tables, describe_table, list_relationships, get_sample_rows |
Always allowed for enabled connections |
| Read | query, explain_query, search_across_tables |
Allowed in read_only+ modes; SQL sanitizer rejects write statements |
| Write | insert_rows, update_rows, delete_rows, execute_write_query |
Only in read_write mode; row-count estimator flags bulk changes; user approval required |
| DDL | (future schema migration tools) | Requires read_write + explicit user approval |
| Advanced | (future admin tools) | Requires explicit user approval |
Security layers in macos/Services/MCP/Security/:
MCPPermissionEngine— per-connection mode (locked,read_only,read_write)MCPSQLSanitizer— rejects DDL/DML that escape the declared tierMCPIdentifierValidator— guards against SQL injection in identifiersMCPRowCountEstimator— previews how many rows a mutation will touchMCPRateLimiter— caps calls per tool per minuteMCPApprovalGate— prompts the user for destructive actions
MCP window — 5 tabs: Overview, Setup, Connections, Activity, Advanced.
Every tool invocation lands in the activity log with tier, SQL, duration, row count, and approval state — so you can answer "what did the agent do last night?" without guessing.
ER Diagram
- macOS: custom
NSView+ CoreGraphics renderer. Windows: in-process Dagre layout + WebView. No externald2/Graphviz binary on either platform. - Auto-layout, pan, zoom, fit-to-view, FK relationship routing.
- Reads live schema from the active adapter — no separate import step.
- Click a column to jump to its table; double-click to open data.
AI Chat
Built-in chat that understands your schema and writes SQL scoped to the selected connection.
- Anthropic Claude — streaming, tool use, extended thinking
- OpenAI — GPT-4.x / 5.x, function calling
- Google Gemini — Flash and Pro
- Ollama — local LLMs, no API key needed
Requests go direct from your machine to the provider. Gridex never proxies prompts. API keys live in the macOS Keychain / Windows Credential Manager.
Editor & Grid
Data grid
- Inline cell editing with type-aware parsing
- Sort, filter, paginate, column resize, multi-column sort
- Add/delete rows with pending-change tracking — commit as one transaction
- Copy rows, export to CSV / JSON / SQL
Query editor
- Multi-tab with Chrome-style tab bar grouped by database
- Syntax highlighting (keywords, strings, numbers, comments, functions)
- Execute selection or all
- Redis CLI mode for Redis connections
- Query history persisted via SwiftData — searchable, favoritable
Schema tools
- Structure viewer: columns, indexes, foreign keys, constraints
- Function and stored-procedure inspector (source + parameters)
- Create Table / Create Database sheets with type-aware defaults
SSH Tunnel
Password, private-key, or key-with-passphrase auth. Local port forwarding via swift-nio-ssh. Managed by the SSHTunnelService actor — one tunnel per active connection, torn down on disconnect.
mTLS (Teleport-style)
Connections support sslKeyPath + sslCertPath + sslCACertPath for mutual TLS. Works end-to-end for PostgreSQL, MySQL, Redis, and ClickHouse — drop in the certs a tool like Teleport issues and connect as usual. ClickHouse accepts PKCS#12 client bundles with pinned CA (PEM or DER).
Backup & Restore
| Database | Backup |
|---|---|
| PostgreSQL | pg_dump (custom / SQL / tar) + pg_restore |
| MySQL | mysqldump + mysql |
| SQLite | File copy |
| MongoDB | NDJSON (one doc per line, pure Swift) |
| Redis | JSON snapshot via SCAN (pure Swift) |
| SQL Server | Native BACKUP DATABASE |
| ClickHouse | SQL dump (SHOW CREATE TABLE + FORMAT Values, pure Swift) |
Selective table backup, compression, and progress reporting for the CLI-backed formats.
Import
Connections import from TablePlus, Navicat (NCX with Blowfish decrypt), DataGrip, and DBeaver — including SSH configs and keychain-stored passwords.
Requirements
macOS
- macOS 14.0 (Sonoma) or later
- Swift 5.10+ / Xcode 15+
Windows
- Windows 10 or later (64-bit)
- Visual Studio 2022+, .NET 8 SDK, vcpkg
Linux
- Ubuntu 22.04+/24.04, Debian 12, Fedora 40 (or any distro with Qt 6 ≥ 6.4)
- GCC ≥ 11 or Clang ≥ 14, CMake ≥ 3.24, Ninja, Qt 6 dev packages
Build & Run
macOS
git clone https://github.com/gridex/gridex.git
cd gridex
# Debug (ad-hoc signed, fast local testing)
swift build
.build/debug/Gridex
# Or build .app bundle
./scripts/build-app.sh
open dist/Gridex.app
Linux
git clone https://github.com/gridex/gridex.git
cd gridex
cmake -S linux -B linux/build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build linux/build --parallel
./linux/build/gridex
Full Linux build, packaging, and AppImage instructions in linux/README.md.
Windows
See windows/README.md for the full WinUI 3 / vcpkg / Velopack toolchain.
Release
# Apple Silicon
./scripts/release.sh