Skip to content

Install MailAtlas

Install MailAtlas from PyPI to use the CLI, Python API, or MCP server locally.

This page shows the pip, uv, Homebrew, and source install paths. Start with pip unless you prefer one of the other tools.

MailAtlas is currently alpha. Expect CLI, schema, and packaging details to keep improving.

  • Python 3.12 is recommended.
  • A local directory where MailAtlas can write an email workspace.
  • Chrome or Chromium only if you want PDF export.
  • Provider credentials only when you connect a live mailbox or send email.

MailAtlas does not require a hosted MailAtlas service. For live mailboxes or sending, it uses the provider credentials you configure for IMAP, Gmail OAuth, SMTP, Cloudflare, or Gmail sending.

Terminal window
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install mailatlas

Verify the installation:

Terminal window
mailatlas doctor

mailatlas doctor verifies that MailAtlas can create a temporary workspace, ingest a sample message, read it back, and export JSON. PDF export is checked only when Chrome or Chromium is available.

Terminal window
python -m pip install "mailatlas[mcp]"
python -m pip install "mailatlas[keychain]"

Use mailatlas[mcp] when you want to run the optional MCP server.

Use mailatlas[keychain] when you want the local Gmail OAuth helper to store token material in the operating system keychain.

The Python API ships in the base package.

MailAtlas writes received messages, sent messages, exports, assets, and SQLite lookup data into a local email workspace. By default, the workspace is .mailatlas in the current directory.

Terminal window
export MAILATLAS_HOME="$PWD/.mailatlas"

You can also pass a root per command:

Terminal window
mailatlas --root .mailatlas list

Use MAILATLAS_HOME when you want several commands to share the same workspace. Use --root when you want a one-off command to point somewhere else.

PDF export uses local Chrome or Chromium. Install a browser if you need PDF exports.

If the browser executable is not on the default path, set:

Terminal window
export MAILATLAS_PDF_BROWSER="/path/to/chrome-or-chromium"
Terminal window
python3.12 -m pip install uv
uv tool install mailatlas
mailatlas doctor
Terminal window
brew tap mailatlas/mailatlas
brew install mailatlas
mailatlas doctor

If Homebrew resolves a different formula named mailatlas, use:

Terminal window
brew install mailatlas/mailatlas/mailatlas

Use a source checkout when you want shipped fixtures, examples, the demo API, or editable development.

Terminal window
git clone https://github.com/mailatlas/mailatlas.git
cd mailatlas
python3.12 -m venv .venv
source .venv/bin/activate
make bootstrap-python
mailatlas doctor

If you are changing the docs site too:

Terminal window
make bootstrap-docs

Run the local command list:

Terminal window
make help
  • Use Manual IMAP Sync when your agent should read a live mailbox.
  • Use Gmail Receive when your agent should read Gmail with OAuth.
  • Use Quickstart when you want to try local .eml files.
  • Use Python API when you want to embed MailAtlas in an application or worker.
  • Use MCP Server when you want to expose email tools to an AI agent.
  • Use Outbound Email when your agent or application needs to send through a configured provider.