MongoTUI
A modern terminal UI for MongoDB administration
Like Compass, but for your terminal.
What is MongoTUI?
MongoTUI is a terminal-based MongoDB administration tool built with Python, Textual, and PyMongo. It provides a Compass-like experience entirely in your terminal — perfect for servers, SSH sessions, and environments where GUI tools can't be installed.
Key Features
-
Database Management
Browse databases, collections, documents. Query with filters. Run aggregation pipelines. -
User Administration
Create users, reset passwords, grant and revoke roles with a built-in role picker. -
Index Management
View, create, and drop indexes. Support for search indexes and vector search. -
Live Monitoring
Real-time graphs for connections, operations per second, and memory usage.
Quick Install
Quick Start
# Interactive mode
mongotui
# Direct connection
mongotui -u "mongodb://admin:admin@localhost:27017/?authSource=admin"
Why MongoTUI?
| Use Case | MongoTUI | Compass | mongosh |
|---|---|---|---|
| SSH access | ✅ | ❌ | ✅ |
| Visual UI | ✅ | ✅ | ❌ |
| No install needed on server | ✅ (pip) | ❌ | ❌ |
| User management UI | ✅ | ✅ | ❌ |
| Live monitoring | ✅ | ✅ | ❌ |
| Lightweight | ✅ | ❌ | ✅ |