User Interface for MongoDB Atlas - Web UI and CLI tool
Project description
AtlasUI - MongoDB Atlas User Interface
A comprehensive user interface for MongoDB Atlas, providing both a web-based UI and CLI tool for managing MongoDB Atlas resources.
Features
- Web UI: FastAPI-based web interface for MongoDB Atlas management
- CLI Tool: Command-line interface for Atlas operations
- Complete API Coverage: Built from official MongoDB Atlas OpenAPI specifications
- Modern Stack: FastAPI, Typer, Rich, and modern Python tooling
- Secure Authentication: Supports both API keys (recommended for full functionality) and service accounts (project-scoped only)
Atlas API Coverage
This UI provides access to all MongoDB Atlas administration APIs including:
- Clusters: Create, configure, and manage MongoDB clusters
- Projects: Manage Atlas projects and organizations
- Backup & Restore: Configure backups and restore operations
- Alerts: Set up and manage alert configurations
- Access Control: Manage users, roles, and API keys
- Monitoring: View metrics and performance data
- Federation: Configure identity providers and SSO
- Network Access: Manage IP access lists and private endpoints
Installation
# Install from PyPI
pip install atlasui
# Or install from source
pip install -e .
# With development dependencies
pip install -e ".[dev]"
# With documentation dependencies
pip install -e ".[docs]"
Configuration
AtlasUI provides an interactive configuration tool that guides you through the setup process.
Quick Setup (Recommended)
Run the interactive configuration wizard:
atlasui-configure
This wizard will:
- Help you choose between API Keys (recommended) and Service Accounts
- Explain the limitations and benefits of each method
- Guide you through entering your credentials
- Create and configure your
.envfile automatically - Test your connection to verify everything works
Authentication Methods
API Keys (Recommended) ⭐
Best for: Full AtlasUI functionality
API keys provide organization-level access, allowing AtlasUI to:
- Manage all organizations in your Atlas account
- Access all projects across organizations
- Control all clusters across all projects
Quick start:
atlasui-configure
# Choose option 1 (API Keys)
# Follow the wizard instructions
How to get API keys:
- Go to https://cloud.mongodb.com
- Organization → Access Manager → API Keys
- Create API Key with Organization Owner permissions
- Copy Public Key and Private Key
Service Accounts (Limited) ⚠️
Best for: Single project operations only
⚠️ Important Limitation: Service accounts are project-scoped - each can only access ONE project.
Since AtlasUI needs organization-level access, service accounts have limited utility.
Only use service accounts if:
- You only need to manage a single specific project
- You prefer OAuth 2.0 authentication
- You understand you won't have full AtlasUI functionality
Setup:
atlasui-configure
# Choose option 2 (Service Account)
# Follow the wizard (will warn about limitations)
See Service Account Documentation for details.
Manual Configuration
If you prefer to configure manually:
For API Keys:
cp .env.example .env
# Edit .env and set:
ATLAS_AUTH_METHOD=api_key
ATLAS_PUBLIC_KEY=your_public_key
ATLAS_PRIVATE_KEY=your_private_key
⚠ Important: Never commit credentials to version control!
Usage
Web UI
Start the web server:
atlasui-server
Then open your browser to http://localhost:8000
The server can also be started with custom options:
# Custom host and port
uvicorn atlasui.server:app --host 0.0.0.0 --port 8080
# With auto-reload for development
uvicorn atlasui.server:app --reload
CLI Tool
# List all clusters
atlasui clusters list <project-id>
# Get cluster details
atlasui clusters get <project-id> <cluster-name>
# Create a new cluster
atlasui clusters create --name my-new-cluster --project-id <project-id>
# List projects
atlasui projects list
# View help
atlasui --help
Development
For developers working on AtlasUI, the project uses Invoke for task automation.
Setup
# Install with development dependencies
pip install -e ".[dev]"
# Or use invoke
inv setup
Running Tests
# Run all tests
inv test
# Run tests without coverage
inv test --no-coverage
# Or use pytest directly
pytest
pytest --cov=atlasui --cov-report=html
Code Quality
# Format code
inv format
# Check formatting without changes
inv format --check
# Lint code
inv lint
# Run all checks (format, lint, test)
inv check
# Or use tools directly
black atlasui tests
ruff check atlasui tests
mypy atlasui
Building Documentation
# Build docs with invoke
inv docs
# Build and open in browser
inv docs --open-browser
# Or build directly with Sphinx
cd docs
sphinx-build -b html . _build/html
Other Development Tasks
# Run development server
inv run
# Run with custom host/port
inv run --host=0.0.0.0 --port=8080
# Clean build artifacts
inv clean
# Show version
inv version
Project Structure
atlasui/
├── atlasui/ # Main package
│ ├── api/ # FastAPI routes and endpoints
│ ├── cli/ # CLI commands
│ ├── client/ # Atlas API client (generated from OpenAPI)
│ ├── models/ # Pydantic models
│ ├── services/ # Business logic
│ ├── static/ # Static files for web UI
│ ├── templates/ # HTML templates
│ └── config.py # Configuration management
├── tests/ # Test suite
├── docs/ # Sphinx documentation
├── openapi/ # MongoDB Atlas OpenAPI specs
└── tasks.py # Invoke task definitions
API Access
The web server exposes RESTful APIs at:
- Root: http://localhost:8000/
- Health: http://localhost:8000/health
- Projects: http://localhost:8000/api/projects/
- Clusters: http://localhost:8000/api/clusters/{project_id}
- Alerts: http://localhost:8000/api/alerts/{project_id}
- Backups: http://localhost:8000/api/backups/{project_id}/{cluster_name}/snapshots
- Interactive Docs: http://localhost:8000/docs
License
See LICENSE file for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
Quick Links
- Quick Start Guide - Get started in 5 minutes
- Contributing Guide - Development guidelines
- MongoDB Atlas API Docs
- MongoDB Atlas OpenAPI Specs
Built with Claude
This project was built with assistance from Claude, Anthropic's AI assistant.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atlasui-0.1.5.tar.gz.
File metadata
- Download URL: atlasui-0.1.5.tar.gz
- Upload date:
- Size: 75.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e93fc692c8f38e1694ac8bd4db991298bafbdf523ad05be3d02fe42fd16025
|
|
| MD5 |
32b96294de3db8893b2ee616324a7019
|
|
| BLAKE2b-256 |
5734a3c028beed13d645ff82569e4f47ffb180775b5a153ab06f831c62ed4767
|
Provenance
The following attestation bundles were made for atlasui-0.1.5.tar.gz:
Publisher:
publish.yml on jdrumgoole/atlasui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlasui-0.1.5.tar.gz -
Subject digest:
93e93fc692c8f38e1694ac8bd4db991298bafbdf523ad05be3d02fe42fd16025 - Sigstore transparency entry: 709990299
- Sigstore integration time:
-
Permalink:
jdrumgoole/atlasui@73919bbee077bb8119cba972b287fb0851ec4504 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/jdrumgoole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@73919bbee077bb8119cba972b287fb0851ec4504 -
Trigger Event:
release
-
Statement type:
File details
Details for the file atlasui-0.1.5-py3-none-any.whl.
File metadata
- Download URL: atlasui-0.1.5-py3-none-any.whl
- Upload date:
- Size: 89.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd206dcd1af8069e7455955cacc99f5f4d940c4174b2ee83c0c0ef53dca71462
|
|
| MD5 |
6d17a817d2faa098f2efa47aed73a9be
|
|
| BLAKE2b-256 |
fb8d2676ed5f0e668d9a7eae9e7d3e1db126a6d6c739c17723d8886cb3842bd1
|
Provenance
The following attestation bundles were made for atlasui-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on jdrumgoole/atlasui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
atlasui-0.1.5-py3-none-any.whl -
Subject digest:
dd206dcd1af8069e7455955cacc99f5f4d940c4174b2ee83c0c0ef53dca71462 - Sigstore transparency entry: 709990303
- Sigstore integration time:
-
Permalink:
jdrumgoole/atlasui@73919bbee077bb8119cba972b287fb0851ec4504 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/jdrumgoole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@73919bbee077bb8119cba972b287fb0851ec4504 -
Trigger Event:
release
-
Statement type: