System Requirements
Before installing mitmproxy, ensure your system meets these requirements:- Python: 3.12 or higher (for pip/pipx installations)
- Operating System: macOS, Linux, or Windows
- Memory: 512MB RAM minimum (1GB+ recommended)
- Storage: ~100MB for binary packages
The standalone binaries include a self-contained Python environment and all dependencies, so you don’t need Python pre-installed for those installation methods.
Installation Methods
macOS
macOS Installation
The recommended way to install mitmproxy on macOS is using Homebrew:All three tools are included:
mitmproxy (interactive CLI), mitmdump (command-line), and mitmweb (web interface).Alternative: Standalone Binaries
Download the latest binary from mitmproxy.org:- Download the
.tar.gzfile for macOS - Extract:
tar -xzf mitmproxy-*-macos.tar.gz - Move to PATH:
sudo mv mitmproxy mitmdump mitmweb /usr/local/bin/
Linux
Linux Installation
The recommended way to install mitmproxy on Linux is to download standalone binaries from mitmproxy.org.Distribution Packages
Some Linux distributions provide community-maintained packages: Windows
Windows Installation
Download the installer from mitmproxy.org:Install Windows Terminal (Recommended)
For better console rendering, install Windows Terminal:
WSL (Windows Subsystem for Linux)
All mitmproxy tools are fully supported under WSL. After installing WSL, follow the Linux installation instructions above. pip/pipx
Installation from PyPI
If you need to install additional Python packages for custom addons, install from PyPI.Using pipx (Recommended)
Using uv (Modern Alternative)
uv is a fast Python package installer:Using pip
Docker
Install uv
Install the uv package manager:
Run from Source
Use This creates a virtual environment in
uv run to automatically set up the environment:.venv and installs all dependencies automatically.For more development details, see CONTRIBUTING.md on GitHub.
Verifying Installation
After installation, verify all three tools are available:http://localhost:8080.
Press Ctrl+C to stop.
Dependencies
For reference, mitmproxy requires these key Python dependencies:Binary packages include all dependencies pre-compiled. You only need to worry about dependencies if installing via pip/pipx.
Security Considerations
- Binary packages include a self-contained Python environment and OpenSSL
- Dependencies are frozen at release time and cannot be updated in-place
- Update mitmproxy regularly to ensure all dependencies remain current
- mitmproxy does not “phone home” or perform automatic update checks
Troubleshooting
Command not found after installation
Command not found after installation
Linux/macOS: Ensure the binary location is in your PATH:Windows: Restart your terminal after installation to refresh PATH.
Python version error
Python version error
mitmproxy requires Python 3.12+:If your version is too old, either:
- Use standalone binaries (include Python)
- Upgrade your Python installation
Permission denied on Linux/macOS
Permission denied on Linux/macOS
If you get permission errors:
SSL/TLS errors
SSL/TLS errors
If you encounter SSL errors, ensure you have the latest CA certificates:
Next Steps
Quickstart Guide
Get your first request intercepted in under 5 minutes
Configuration
Learn about mitmproxy’s configuration options
Writing Addons
Extend mitmproxy with custom Python scripts
Certificate Setup
Configure SSL/TLS certificate trust
