maze

maze: privacy first, unified email MCP

Give your AI agents access to all of your email accounts, without handing your inbox to a third party. maze is local-first and self-hostable, with granular permissions for every account.

Works with Gmail, Outlook, iCloud, Fastmail, Yahoo, Proton Mail, and any IMAP/SMTP server.

maze showing Work Gmail, Personal Outlook and Private Proton accounts, each with its own access level

All your accounts, your rules

Give an agent full autonomy on one mailbox and keep another read-only. You set permissions per account in the terminal UI, and maze enforces them on every call.

Permissions for a work account: full access within acme.dev, drafts for everyone else, hidden folders and attachment blocking
Full send access within acme.dev; mail to anyone else waits in Drafts.

Local-first and private

maze runs on your own machine or server. No third-party service sits between your mail provider and your agent, no mail is cached to disk, and your credentials stay encrypted in one local file.

Every action an agent takes, allowed or refused, is recorded in a local audit log so you can always see what it touched.

Audit log showing recent agent calls, including a refused send and a refused read of a hidden folder

Get started

$ curl -fsSL https://raw.githubusercontent.com/HACKE-RC/maze/main/install.sh | sh

The script builds maze from source with Go, and downloads Go for the install if yours is missing or older than 1.21. Then run maze to add your accounts. It walks you through signing into each provider and setting its permissions.

Or paste this into your coding agent and let it handle setup:

Read https://raw.githubusercontent.com/HACKE-RC/maze/main/AGENT_SETUP.md and set up maze for me.

Connect your agent

$ claude mcp add maze -- ~/.local/bin/maze serve
$ npx skills add HACKE-RC/maze -g

Runs locally over stdio by default, or self-hosted over HTTP with maze serve --http. More clients and a background service guide are in the README.