omni-sql
Provides embedded DuckDB analysis, letting the MCP server query local CSV/Parquet files and imported database results, join them with SQL, and inspect/export local query output.
Enables connecting to MariaDB databases to inspect schemas and execution plans, propose SQL edits, and run queries through the MCP server.
Provides native MongoDB access with Extended JSON queries, document views, and read-only SQL conversion, allowing schema/field inspection and query execution.
Enables connecting to MySQL databases to inspect schemas and execution plans, propose SQL edits, and run queries through the MCP server.
Enables connecting to PostgreSQL databases to inspect schemas and execution plans, propose SQL edits, and run queries through the MCP server.
Features
Analyze files and database results locally
Received a CSV or Parquet export to investigate? Import it and query it with SQL in the same IDE, using embedded DuckDB, without loading it into your source database or writing a separate script. You can also import a query result from any supported connection and join it with the file locally.

Run a source query and choose Analyze locally: a full result or a sample.
Add a CSV or Parquet file (with a delimiter preview) and join it with SQL.
Inspect the result and export the full local query output.
Local datasets persist across restarts, and S3 objects (CSV, Parquet, Delta, Iceberg, DuckLake) can be queried and imported too. A sample stays a sample: exports never restore rows left out at import time. Try the demo with fictional data or read the local analysis guide.
SQL editing and exploration

Metadata-aware completion with PK/FK badges and types, including columns projected by CTEs; preview a single CTE's rows with Ctrl+Alt+Enter.
Dialect quick fixes, formatting (
Ctrl+Alt+L) and/catalogSQL templates.Execution plans for PostgreSQL, MySQL/MariaDB, SQL Server and Oracle.
Filter, sort, page and export results; edit rows when a primary key makes the update safe.
MongoDB: native Extended JSON queries, a document view, and read-only SQL with
/mongoconversion. See MongoDB usage.
Connections
Organize connections in folders, tag them with your own environments (Development, Staging, Production or custom ones, each with a color), and import them from an omni-sql export or from DBeaver. Passwords stay in the OS keyring and are never exported.
AI assistants through MCP
A local MCP server lets compatible clients (Codex, Claude Desktop, ChatGPT Desktop) read the active SQL tab, inspect schemas and plans, propose edits, and run SQL. Edits and executions always need approval in the desktop, and each connection can be set to Off, Read-only (default) or Read and write.

See the MCP guide for setup and the security model.
Related MCP server: MCP Database Query Server
Database support
Database | Connection | Metadata autocomplete | Query execution |
PostgreSQL | ✅ | ✅ | ✅ |
MySQL | ✅ | ✅ | ✅ |
MariaDB | ✅ | ✅ | ✅ |
SQL Server | ✅ | ✅ | ✅ |
Oracle | ✅ | ✅ | ✅ |
MongoDB | ✅ | ✅ Sampled fields | Native Extended JSON + read-only SQL |
Generic JDBC | 🧪 Experimental | Driver-dependent | Driver-dependent |
ODBC | 🧪 Experimental | Driver-dependent | Driver-dependent |
Generic JDBC needs a user-supplied driver JAR; ODBC needs a separately installed 64-bit driver. Neither offers plans, definitions or row editing. Details and limitations: Database support.
Install
Download your package from the latest release.
Platform | Package |
Windows 10/11 x64 |
|
Debian/Ubuntu amd64 |
|
macOS 15+ Apple Silicon / Intel |
|
On Windows you can also install with WinGet:
winget install cccadet.omni-sqlNode.js, Java and the ODBC driver manager are bundled; native connections need
no database client. Release assets include SHA256SUMS. Linux ARM, AppImage and
RPM are not packaged yet.
macOS builds are ad-hoc signed and not notarized: on first launch use System Settings → Privacy & Security → Open Anyway. The installation guide covers this, the Windows portable archive, where data is stored, and updates.
omni-sql is early-stage software. Try it with development data before using it against important environments, and please report unexpected behavior.
Quick start
Files only: choose Import file, select a CSV or Parquet file, and query it in the Local DuckDB tab.
A database: create a connection, choose Test connection, connect, then browse objects or open a SQL tab. Run the selection or current statement and use Analyze locally to bring the result into DuckDB.
Stuck? See Troubleshooting.
When to use omni-sql
omni-sql focuses on SQL editing plus local analysis of database results and files. Mature tools such as DBeaver and DataGrip cover broader administration; you can use omni-sql alongside them.
Choose omni-sql for… | Consider a broader tool for… |
Local DuckDB joins across database results and files | Deep vendor-specific administration |
One editor across five relational databases and MongoDB | Data modeling and migration tools |
CTE- and metadata-aware completion | A large plugin ecosystem or enterprise support |
A local, MIT-licensed app with no account | Team features and a long-established product |
Documentation
Read the documentation site: installation, getting started, the SQL editor, connections, local analysis, MongoDB, MCP, shortcuts, troubleshooting and contributor guides. The same pages are in docs/.
Built with Tauri, React, Fluent UI, Monaco Editor, TypeScript, Rust, and Kotlin. The interface is available in English, Portuguese and Simplified Chinese.
Contributing
If omni-sql is useful to you, star the repository. Report a bug, share a database compatibility result, or tell us about your first run. Pull requests are welcome; read CONTRIBUTING.md first.
License
Available Tools
9 toolsexecuteSqlADestructive
Execute SQL after explicit approval in the desktop. Runs on the active connection unless connectionId suggests another one; the user can change the connection when approving, and the result's connectionId is the one actually used. Defaults to 100 rows, at most 1000. Results are also byte-limited. May modify data or schema.
Inputs: sql (required), limit, connectionId. Returns: rows, columns, elapsedMs, truncated, +3 more
explainSqlBRead-only
Generate a non-executing query plan on an Omni SQL connection (the active one unless connectionId is given).
Inputs: sql (required), connectionId.
getActiveConnectionContextARead-only
Read safe context for the active Omni SQL connection: id, label, dialect, MCP access level and environment (e.g. development, staging, production).
Inputs: no named parameters.
getActiveSqlARead-only
Read SQL from active Omni SQL tab.
Inputs: no named parameters.
getLatestSqlExecutionErrorARead-only
Read latest failed SQL execution error from active Omni SQL tab.
Inputs: no named parameters.
getSchemaSummaryARead-only
Read schema summary for a connection (the active one unless connectionId is given). Use schema/table filters and offset/limit to page large databases.
Inputs: limit, table, offset, schema, +1 more.
getTableIndexesBRead-only
Read indexes for a table in an Omni SQL connection (the active one unless connectionId is given).
Inputs: table (required), schema (required), connectionId.
listConnectionsARead-only
List Omni SQL connections available to MCP with id, label, dialect, MCP access level and environment, plus the active connection id. Pass a connectionId to the other tools to work on a connection other than the active one; check the environment before targeting production.
Inputs: no named parameters.
proposeSqlEditA
Propose SQL edit for explicit UI approval; never applies it automatically.
Inputs: sql (required), rationale (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes: executeSql (run), explainSql (non-executing plan), proposeSqlEdit (UI-approved edit), getActiveSql, and getLatestSqlExecutionError are easy to separate. The one real overlap is listConnections vs getActiveConnectionContext, which both return id, label, dialect, access level, and environment; the descriptions differentiate them (all connections + active id vs active-only context), but an agent could still hesitate between them.
Every tool uses consistent camelCase verb+noun form (listConnections, getSchemaSummary, executeSql, explainSql, proposeSqlEdit, getActiveSql, getTableIndexes, etc.). The verb vocabulary is small and predictable (list/get/execute/explain/propose), and resource nouns are clear.
Nine tools is well within a comfortable range and each earns its place: connection discovery, context, schema, indexes, explain, execute, propose edit, current SQL, and error retrieval. No redundant filler tools are present for the stated SQL workbench purpose.
The surface covers the core lifecycle: discover connections, inspect schema/indexes, explain, execute with approval, propose edits, and read current SQL/errors. Minor gaps exist, such as no explicit table/column listing beyond schema summary, no query cancellation, and no execution history, but agents can work around these with schema summary and executeSql.
Maintenance
Related MCP Connectors
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to securely interact with MariaDB and MySQL databases using granular per-connection read/write permissions and transaction support. It allows users to manage multiple database connections, explore schemas, and execute controlled SQL queries through a standardized interface.617 npm5MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to query and explore databases including SQLite, PostgreSQL, MySQL, and SQL Server through a secure, read-only workflow. It provides tools for listing connections, inspecting table schemas, and executing SELECT statements directly within VS Code.1-
- AlicenseAqualityCmaintenanceEnables AI to execute SQL queries (SELECT, DML, DDL) on MySQL/MariaDB databases with strong security: connection credentials never exposed to AI, write queries require user approval, read-only connections enforced, and query results limited to 50 rows.6ISC
- AlicenseNot gradedqualityCmaintenanceEnables AI applications to discover MySQL and PostgreSQL database schemas and run validated read-only SELECT queries against a configured database, with result limits and SQL safety controls.20MIT