TUI database client with a built-in MCP server. Five databases (postgres, mysql, sqlite, duckdb, clickhouse), vim editing, Lua plugins.
Narwhal is a terminal-based database client that lets you connect to Postgres, MySQL, SQLite, DuckDB, or ClickHouse databases, write SQL queries with smart auto-completion, and view results in a split-screen interface—all without leaving your command line.
How It Works
A friend tells you about Narwhal, a terminal app that lets you browse databases without leaving your command line.
You install Narwhal using a simple command or package manager, and it appears in your terminal ready to use.
You type 'narwhal' and a clean split-screen appears with an editor on top and a results area below, ready for your queries.
You type ':add' to open a simple form, enter your database details, and save the connection for future use.
As you type, suggestions pop up showing table and column names from your database, making queries faster to write.
For big queries, press F7 to see rows appear one by one as they arrive
For smaller queries, results appear immediately in the bottom pane
You can click through results, edit cells directly, copy data to your clipboard, or export everything to a file with one command.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.