BarSQL
FreeNot checkedFast, local-first SQL client for PostgreSQL, MySQL/MariaDB, SQL Server, ClickHouse, SQLite and Turso. A native Rust + GPUI app for Windows, macOS and Linux. No
About
Fast, local-first SQL client for PostgreSQL, MySQL/MariaDB, SQL Server, ClickHouse, SQLite and Turso. A native Rust + GPUI app for Windows, macOS and Linux. No accounts, no telemetry.
README
A fast, local-first SQL workbench built with Rust and GPUI.
No cloud. No accounts. No telemetry.
Just a focused, native desktop tool for PostgreSQL, MySQL / MariaDB, SQL Server, ClickHouse, Turso / libSQL and SQLite, on Windows, macOS and Linux.
🌐 barsql.bare7a.eu · 🎬 Demo video · 📖 User Guide
https://github.com/user-attachments/assets/ea4b7bd3-82b9-469b-b99c-4619aeb6e83a
⬇️ Download
Grab the latest build for Windows, macOS, or Linux from the Releases page.
Recommended assets:
- Windows:
BarSQL-windows-amd64.zip(portable) orBarSQL-amd64-installer.exe(installer) - Linux:
BarSQL-linux-amd64.tar.gz(x86-64) orBarSQL-linux-arm64.tar.gz(ARM64), both portable - macOS:
BarSQL-darwin-arm64.zip(Apple Silicon) orBarSQL-darwin-amd64.zip(Intel)
Additional options:
- Windows:
BarSQL.exe(standalone) - Linux:
BarSQL-x86_64.AppImageandBarSQL-aarch64.AppImage(ARM64), plusBarSQL.deb,BarSQL.rpm,BarSQL.pkg.tar.zstandBarSQL(standalone) for x86-64 - macOS:
BarSQL-macos-universal.dmg
No account required - just download and run.
Every build above updates itself. The installer, the Linux packages and copies in protected folders ask for admin rights first.
First launch
The macOS app is signed with a Developer ID and notarized by Apple, so it opens like any other app.
The Windows build isn't code-signed yet, so Windows asks once before BarSQL first opens: when SmartScreen says Windows protected your PC, click More info → Run anyway. Smart App Control, where it's turned on, blocks unsigned apps without an exception, so BarSQL can't run there until it's signed.
Every release lists each file's SHA-256 in SHA256SUMS, which the updater checks its downloads against, and every file carries a signed build provenance attestation from the GitHub Actions run that built it.
Prefer to build it yourself? See Build from source below.
⚡ SQL tools are usually overkill. BarSQL isn’t.
Work with SQLite, PostgreSQL, MySQL / MariaDB, SQL Server, ClickHouse and Turso / libSQL in a single fast desktop app that runs entirely on your machine.
🧳 Portable
⚡ Fast startup
🔒 Local-first
🧠 Developer-focused
🔄 Auto-updating
👉 Everything you need. Nothing you don’t.
- Query faster with smart, schema-aware autocomplete - functions included, with their signatures on hover
- Edit SQL the VS Code way - multiple cursors, line commands, go to definition and a command palette
- See what the server said - notices, warnings and
PRINToutput in a Messages tab - Check what a server is doing in one click - activity, blocking, sessions, table statistics
- Reach databases behind a bastion over an SSH tunnel
- Stream results - rows arrive as the driver yields them
- Run multi-statement scripts and get a result tab per output
- Edit rows in the grid - in a table, or in the results of a
SELECTfrom one - Plot any result as a bar or line chart
- Explore schemas instantly - down to indexes, constraints and triggers, or as an ER diagram
- Design tables in a Structure tab and see the exact SQL before it runs
- Rename, truncate, drop and back up tables straight from the schema tree
- Compare two schemas and get the script that syncs them
- Copy any object's DDL in one click
- Import a CSV or run a
.sqlscript - Save and reuse queries
- Export anything in one click
- Let AI assistants such as Claude read your databases over MCP - and change them only where you allow it
- Auto-update with one click
🖥️ Screenshots
![]() Editor |
![]() Transactions & multiple results |
![]() Table data |
![]() Cell editor |
![]() Grid |
![]() Export |
![]() Connections |
![]() Quick Search |
![]() DDL viewer |
![]() Plan viewer |
![]() CSV & SQL import |
![]() Structure editor |
![]() ER diagram |
![]() Quick charts |
![]() Appearance |
⚡ What BarSQL is
BarSQL is a desktop SQL client built for developers who want speed, clarity and control.
It combines:
- 🦀 Rust from the database drivers up to the window
- 🖥️ GPUI, the GPU-accelerated UI framework behind the Zed editor
- 🧩 GPUI Kit components, including a code editor with tree-sitter highlighting
- 🔌 Native drivers for each engine:
tokio-postgres,mysql_async, a bundled SQLite,tiberiusfor SQL Server, and BarSQL's own HTTP clients for ClickHouse and Turso
🚨 Why it exists
Most SQL tools today are:
- slow to start and heavy on memory
- cloud-connected by default
- tied to subscriptions or accounts
- overloaded with features you don’t use
BarSQL focuses on one thing:
A fast, local environment for working with databases.
🗄️ Supported Databases
| Database | Read & write | Read-only mode | Secure transport | SSH tunnel |
|---|---|---|---|---|
| PostgreSQL | ✅ | ✅ | SSL - disable / require / verify-full |
✅ |
| MySQL | ✅ | ✅ | TLS | ✅ |
| MariaDB | ✅ | ✅ | TLS | ✅ |
| SQLite | ✅ | ✅ | local file | n/a |
| SQL Server | ✅ | ✅ | TLS - disable / require / verify-full / strict (TDS 8.0) |
✅ |
| ClickHouse | ✅ | ✅ | HTTP or HTTPS - disable / require / verify-full |
✅ |
| Turso / libSQL | ✅ | ✅ | HTTPS, or HTTP for a local sqld |
self-hosted sqld |
Per-engine details are in the engine notes.
📖 User Guide
Every feature in detail, one area per page:
| Page | What it covers |
|---|---|
| 🔌 Connections | Folders, read-only mode, SSL and TLS, SSH tunnels, SQLite extensions, engine notes |
| 🧠 SQL Editor | Autocomplete, multiple cursors, scripts, transactions, the query plan viewer, saved queries and history |
| 🗃️ Schema Explorer | The schema tree, ER diagrams, schema compare, Copy DDL, schema changes, the structure editor, table backups |
| 📊 Results Grid | Sorting, selection stats, quick charts, the cell and JSON viewers, editing data |
| 📥 Import & Export | CSV and SQL import, export formats |
| 🤖 AI Assistants (MCP) | Letting AI apps read your databases, and change them only where you allow it |
| 🌍 The App | Themes, languages, palettes, the status bar, keyboard shortcuts, the data folder, auto updates |
🧳 Portable by Design
Everything lives in a single BarSQL-data/ folder. When the app sits somewhere writable, that folder is created right next to the executable (beside the .app bundle on macOS) - move it to a USB stick, network drive, or another PC and it just works.
What's in it, and where it goes when the app can't write beside itself: The App.
⚙️ Build from source
cargo run -p barsql --release
Requirements, tests and the project layout are in CONTRIBUTING.md, packaging and releases in RELEASING.md.
🤝 Contributing
Issues and pull requests are welcome. Good places to start:
- Report a bug or ask for a feature - especially anything that misbehaves on your engine or server version
- Add a language - mostly JSON, plus a few lines of Rust to register it
If BarSQL is useful to you, a ⭐ helps other people find it.
📄 License
GPL-3.0-only; see LICENSE.
Installing BarSQL
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Bare7a/BarSQLFAQ
Is BarSQL MCP free?
Yes, BarSQL MCP is free — one-click install via Unyly at no cost.
Does BarSQL need an API key?
No, BarSQL runs without API keys or environment variables.
Is BarSQL hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install BarSQL in Claude Desktop, Claude Code or Cursor?
Open BarSQL on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Postgres
Query your database in natural language
by Anthropicwenb1n-dev/SmartDB_MCP
Connect to multiple databases at once (MySQL, PostgreSQL, SQL Server, MariaDB, Dameng, Oracle) for operations, health analysis and SQL optimization.
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labsjulien040/anyquery
Query apps with SQL from a single local-first binary; also connects to PostgreSQL, MySQL and SQLite-compatible databases.
by julien040drakonkat/wizzy-mcp-tmdb
Search and retrieve movie, TV show and person information from The Movie Database (TMDB) API.
by drakonkatlongevity-genie/opengenes-mcp
Query the OpenGenes database for aging and longevity research.
by longevity-genieCompare BarSQL with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs















