Skip to main content
Glama

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.

PostgreSQL sales result imported into DuckDB and joined with a local targets CSV

  1. Run a source query and choose Analyze locally: a full result or a sample.

  2. Add a CSV or Parquet file (with a delimiter preview) and join it with SQL.

  3. 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

SQL editor walkthrough: schemas, autocomplete, results, and PostgreSQL execution plans

  • 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 /catalog SQL 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 /mongo conversion. 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.

Review an SQL edit proposed through MCP before applying it

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

.exe installer or x64-portable.zip

Debian/Ubuntu amd64

.deb

macOS 15+ Apple Silicon / Intel

aarch64.dmg / x64.dmg

On Windows you can also install with WinGet:

winget install cccadet.omni-sql

Node.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

MIT

Available Tools

9 tools
executeSqlA
Destructive

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

explainSqlB
Read-only

Generate a non-executing query plan on an Omni SQL connection (the active one unless connectionId is given).

Inputs: sql (required), connectionId.

getActiveConnectionContextA
Read-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.

getActiveSqlA
Read-only

Read SQL from active Omni SQL tab.

Inputs: no named parameters.

getLatestSqlExecutionErrorA
Read-only

Read latest failed SQL execution error from active Omni SQL tab.

Inputs: no named parameters.

getSchemaSummaryA
Read-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.

getTableIndexesB
Read-only

Read indexes for a table in an Omni SQL connection (the active one unless connectionId is given).

Inputs: table (required), schema (required), connectionId.

listConnectionsA
Read-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

    A3.8/5.0

    Scored across 9 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      6
      17 npm
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      6
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      20
      MIT