Managing MongoDB databases shouldn't require heavy, slow GUI tools or writing raw shell queries for basic tasks.
mongotui provides a fast, keyboard-driven terminal interface to browse databases, inspect collections, edit documents, manage indexes, and monitor server health in real-time.
- Explorer · Browse databases, collections, and indexes with real-time stats.
- Operations · Field-based document editor, query filtering, and CSV/JSON exports.
- Security · Connection credentials storage with optional AES-256-GCM at-rest encryption.
- Monitoring · Real-time performance dashboard (memory, network, operations).
- Keyboard-First · Fully driven by keybindings (Vim-style
j/knavigation).
Requires Go 1.24+.
# Install via Go
go install github.com/afftab/mongotui/cmd/mongotui@latest
# Or build from source
git clone https://github.com/afftab/mongotui.git
cd mongotui
go build -o mongotui ./cmd/mongotuiRun the application:
./mongotuiTo encrypt connection passwords at rest, set a master passphrase:
export MONGOTUI_PASSPHRASE="your master passphrase"
./mongotui| Key | Action |
|---|---|
1 – 6 |
Switch views (Connections, DBs, Collections, Docs, Indexes, Monitor) |
Esc |
Go back to previous screen |
Ctrl+C |
Quit application |
Ctrl+R |
Refresh current view |
↑/↓ or j/k |
Navigate lists |
Enter |
Select item / View details |
e / d / c |
Edit / Delete / Create (Context-dependent) |
Space |
Toggle auto-refresh in Monitoring |
MIT