SQL

vi-sql – browse and work with SQL databases

vi-sql is a terminal user interface for browsing and working with SQL databases.

The software lets you explore schemas, run queries, edit table data, inspect query plans, and connect AI assistants through a built-in Model Context Protocol (MCP) server.

This is free and open source software.

Key Features

  • Multi-tab SQL editor with syntax highlighting and autocomplete.
  • Query history and integration with your preferred external editor.
  • Browse tables, columns, indexes, DDL, and other schema information.
  • Filter, sort, add, edit, and delete table rows.
  • Copy rows in JSON or CSV format.
  • Follow foreign keys and find references between database objects.
  • Vim-style navigation and multi-key commands throughout the interface.
  • View EXPLAIN and EXPLAIN ANALYZE query plans with cost and timing details.
  • Import and export data in CSV, JSON, SQL INSERT, and Markdown formats.
  • Built-in MCP server for integration with compatible AI assistants.
  • Encrypted connection details with keyring and master-password support.
  • Customizable interface themes defined using YAML.
  • Supports PostgreSQL, MySQL, and SQLite connections.

Website: github.com/kopecmaciej/vi-sql
Support:
Developer: Maciej Kopeć
License: Apache-2.0

vi-sql in action
Click image for full size

vi-sql is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

MySQL Tools
DBeaverUniversal database tool
phpMyAdminMySQL web administration tool
NocoDBBuild databases as spreadsheets
MySQL WorkbenchComplete visual database design tool
mycliCommand line interface for MySQL, MariaDB, and Percona
gh-ostGitHub's Online Schema Migrations for MySQL
Beekeeper Studio Cross-platform SQL editor and database manager
usqlCommand-line database client
sqlitlazygit of SQL databases
HarlequinEasy, fast, and beautiful database client for the terminal
DbGateDatabase manager for MySQL, PostgreSQL, MongoDB
Percona ToolkitEssential command-line utilities for MySQL
SQuirreL SQL ClientGraphical SQL client written in Java
AdminerFull-featured tool for managing content in MySQL database
dblabInteractive client for PostgreSQL, MySQL, SQLite3, and more
AntaresSQL client based on Electron.js and Vue.js
XtraBackupBackup utility for MySQL
innotopReal-time, advanced investigation tool
SQLCheckDetects common SQL anti-patterns
SkeemaManage MySQL and MariaDB schema changes
SequelerNative Linux SQL client built in Vala and Gtk
orchestratorHigh availability and replication management tool
OmniDBCollaborative environment For database management

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted