Gigamail logo

Gigamail

Local MCP access to M365 and IMAP mail, calendars, search, and approval-gated email actions.

Install Gigamail

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gigamail": {
      "command": "uvx",
      "args": [
        "gigamail"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

gigamail MCP server connects agents to Microsoft Graph and IMAP mailboxes, calendars, and a local searchable archive. It runs over stdio, keeps credentials and indexes on the user's machine, and can use SQLite search alongside provider search. Reading is available directly, while sending and deleting require an out-of-band human approval with the exact action arguments recorded. Reach for it when an agent needs mailbox context and calendar-aware drafts without giving it unrestricted write access.

Use cases

  • Search archived email across Microsoft and IMAP accounts
  • Draft replies using sender history and account knowledge
  • Propose meeting times that fit calendar availability
  • Require approval before sending or deleting messages

Key features

  • Microsoft Graph and IMAP account support
  • Local SQLite mail and attachment archive
  • Calendar-aware draft scheduling
  • Sender memory and contact notes
  • Out-of-band approval for sends and deletes
  • Deterministic sensitive-field masking

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · gigamail (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars22Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.

How Gigamail works

What gigamail does

gigamail gives an AI agent controlled access to email accounts using Microsoft Graph or IMAP. It also exposes calendar context, a local search index, sender memory, contact notes, and account-specific knowledge files. These features support email work that depends on prior conversations, a user's identity, product information, or calendar availability.

Mail from each account is archived locally, including attachments, so the local index can remain useful after messages are no longer available from the provider. Outlook history on the computer can be imported into the archive. Multiple accounts remain distinct to the agent, while the human console can present selected accounts together for reading.

How it works

The MCP process communicates with an agent through stdio and does not open a network port. An optional human console provides a local HTTP API bound to 127.0.0.1. The package includes the MCP server, command-line interface, watcher, and the console's local HTTP backend.

Search combines provider-side results from Graph or IMAP with the local SQLite index. Sender memory records tone, topics, and history, while contact notes and account knowledge files can inform drafts. Calendar-aware drafting limits proposed meeting times to periods that are free and within office hours.

The permission model separates reading from side effects. Reading is allowed directly, but sending or deleting creates an inert request identifier that a human must approve through the console or CLI. The approved operation uses the exact arguments shown during approval, and writes are recorded in an append-only action log.

Setup and configuration

The Python distribution can be installed with:

Terminal
pip install "gigamail[all]"

Microsoft accounts use gigamail login, which starts the Microsoft device flow. IMAP accounts can be added with gigamail accounts add-imap; examples include Aruba, Gmail, and Libero. Account identity and supporting material can be configured with gigamail identity set and gigamail identity add-file.

Register the stdio server in an MCP client with a command such as:

config.json
{
  "gigamail": {
    "command": "gigamail-server"
  }
}

Claude Code and Codex also have repository plugins that register the server and provide guidance for the approval workflow. Desktop installers are available for Windows and macOS. Building the desktop app requires Node.js 22 or newer.

Microsoft's bundled Azure application can show an unverified consent notice, and some corporate tenants may block it. An alternative is to register a separate Azure application and set its client ID in src/gigamail/core/ms_config.json. IMAP does not require that Azure configuration.

Tools and capabilities

  • Access multiple Microsoft Graph and IMAP accounts.
  • Search through provider mail and a local SQLite index.
  • Preserve a local archive of messages and attachments.
  • Read calendar availability for draft scheduling.
  • Use sender memory, contact notes, and account knowledge files when preparing replies.
  • Require human approval before sending or deleting messages.
  • Mask sensitive values such as tax identifiers, VAT numbers, IBANs, email addresses, and phone numbers before agent access.
  • Keep credentials and account management outside the agent's MCP channel.

Limitations and notes

The package does not include a built-in LLM; the connected agent supplies the intelligence and its model provider handles content it reads. Mail indexes, credentials, memory, and configuration remain on the local machine, but content passed to an agent is subject to that agent and model provider's data policies.

Mailbox connection and credential entry should be performed by the human in their own shell. An agent can install the package and register the MCP command, but should stop before running account-login or IMAP-account commands. The server is stdio-only; network-based MCP deployment is not part of the described setup.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gigamail

gigamail is an MCP server that connects AI agents to Microsoft Graph and IMAP mailboxes, calendars, and local mail archives. Its main capabilities include searching messages, using sender and contact context, preparing calendar-aware drafts, and requesting approval before sending or deleting email. It communicates with clients over stdio.

Install it with `pip install "gigamail[all]"`, then register `gigamail-server` as an MCP stdio command. Desktop installers for Windows and macOS are also available. Connect mail accounts separately with the CLI, and have the human enter any requested credentials.

Yes, gigamail works with Claude Desktop through its stdio MCP configuration. Add `gigamail-server` as the command for a server named `gigamail`. The repository also provides a separate plugin workflow for Claude Code.

Yes, sending requires an out-of-band human approval. The agent receives an inert request ID, while the human reviews the exact arguments in the console or CLI. Deletion follows the same approval gate, and approved writes are added to an append-only action log.

Yes, IMAP accounts do not require the Microsoft Azure configuration. Microsoft accounts use the device-flow login, while IMAP accounts are added with `gigamail accounts add-imap`. The supported setup includes providers such as Aruba, Gmail, and Libero.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGigamail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gigamail?style=directory)](https://allmcps.com/mcp/gigamail)
HTML Embed
<a href="https://allmcps.com/mcp/gigamail"><img src="https://allmcps.com/api/badge/gigamail?style=directory" alt="Gigamail on AllMCPs" /></a>