📚 Manx
A blazing-fast CLI documentation finder that brings Context7 MCP docs right to your terminal - no IDE required
What is Manx?
Manx is a command-line interface documentation finder designed for developers who prefer working in the terminal. It uses Context7 MCP (Model Context Protocol) as its primary backend to provide real-time, version-specific documentation snippets without leaving your development environment.
Why Manx?
- ⚡ < 1 second search results
- 🎯 Version-specific docs (e.g., React 18 vs 17)
- 📦 Single 2.9MB binary - no dependencies
- 🔌 Context7 MCP integration - always up-to-date
- 💾 Smart caching - works offline after first use
- 🌈 Beautiful terminal output with syntax highlighting
- 📊 Smart result limiting - shows 10 results by default, customizable
- 🚀 Export to Markdown/JSON for documentation
Quick Install
# Linux/macOS - Install to /usr/local/bin
|
# Or with wget
|
Quick Start
# Search for any library
# Search with a query
# Version-specific search
# Get full documentation
# Limit results (default: 10, use 0 for unlimited)
# Save results to file
Manual Installation
-
Download the latest release for your platform:
-
Make executable and move to PATH:
-
Verify installation:
From Source (Cargo)
# Install from crates.io (coming soon)
# Or build from source
Basic Search
# Examples
Full Documentation
# Examples
Result Limiting
# Default limit is 10 results
Export Options
Cache Management
Other Options
Important: Without an API key, Manx uses Context7's shared MCP endpoint which has strict rate limits. Users often experience rate limiting after just a few searches. Setting up an API key provides dedicated access with much higher limits.
Why You Need an API Key
- Without API Key: Uses shared MCP endpoint (
mcp.context7.com/mcp) with very low rate limits - With API Key: Uses dedicated API endpoint with high rate limits
- ✅ Faster responses and better reliability
- ✅ Premium features access
Getting Your API Key
- Visit the Context7 Dashboard
- Create a free account or log in
- Generate your API key (starts with
sk-) - Set it up in manx:
# Method 1: Using config command (recommended)
# Method 2: Environment variable
# Method 3: Direct config file edit (~/.config/manx/config.json)
{
}
Verifying Your Setup
# Check current configuration
# Test with your API key (should be much faster)
Removing Your API Key
# Remove API key (switches back to shared rate limits)
# Or unset environment variable
Note: The API key only affects rate limiting and endpoint selection. All documentation content remains the same.
Manx stores configuration in ~/.config/manx/config.json:
Configuration Commands
# Note: Default result limit (10) is configurable in config.json
Environment Variables
# Disable colored output
# Custom cache directory
# API key (overrides config)
# Enable debug logging
Manx is designed for speed and efficiency:
| Metric | Value | Notes |
|---|---|---|
| Binary Size | 2.9MB | Single static binary |
| Startup Time | < 50ms | Near-instantaneous |
| Search Speed | < 1s | Including network + parsing |
| Memory Usage | < 10MB | Minimal RAM footprint |
| Cache Size | 100MB max | Auto-managed, configurable |
| Offline Mode | ✅ | Full functionality with cache |
Benchmarks
# Cold search (first time)
# Warm search (cached)
# Export benchmark
Common Issues
"No results found"
# Check if library name is correct
# Clear cache and retry
Network/Connectivity Issues
# Test with debug mode
# Use offline mode if you have cache
# Check Context7 status
Cache Issues
# Check cache stats
# Clear and rebuild cache
# Use custom cache location
Permission Issues
# Fix binary permissions
# Alternative install location (no sudo)
Logs and Debug Info
# Enable debug mode
|
# Check cache directory
# View config file
Remove Manx completely:
# Remove binary
# Remove config and cache
# Or use the installer
|
Contributing
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make changes and add tests
- Run tests:
cargo test - Check formatting:
cargo fmt --check - Run linter:
cargo clippy - Submit a Pull Request
Development Setup
License
MIT License - see LICENSE for details
Acknowledgments
- Context7 for the excellent MCP documentation API
- Rust community for amazing crates and tooling
- Clap for beautiful CLI parsing
- All contributors who make Manx better
Built with ❤️ for developers who live in the terminal.