# MailFathom [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Krzysztof318/MailFathom  
**GitHub Stars:** 22  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mailfathom

## Description
Security-first, self-hosted email archive with read-only search and cited answers for AI agents.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Krzysztof318/MailFathom), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/fathomise/MailFathom.git
```

2. Install:

```sh
cd MailFathom
```

3. Install:

```sh
scripts/quick-start-compose.sh
```

## Documentation

## What the MailFathom MCP server does

The MailFathom MCP server copies mail from configured IMAP accounts into PostgreSQL, indexes that local data, and makes it available to MCP-compatible agents. The design separates retrieval from mailbox changes: reading uses the database copy, does not contact the mail server, and cannot set the remote `\\Seen` flag.

Its read tools include account listing, recent-message listing, lexical email search, full content retrieval for up to ten messages, and question answering over stored mail. `ask_mail` cites every message used in its answer. Search can also use embedding similarity when an embedding model is configured. Results report the freshness of the local synchronization.

Optional write operations cover flags, drafts, replies, forwards, and sending. Draft operations save messages to the account's Drafts folder without sending. Sending is disabled by default and requires explicit account and credential permissions. A recipient policy and per-period limit can further constrain delivery. Contacts are stored in MailFathom's own database rather than read from the mail provider.

## How it works

A synchronization process imports IMAP data into the PostgreSQL instance you operate. MCP tools then query or mutate the local application state according to the permissions enabled for each account. Outbound messages are recorded and handled by a delivery pass rather than being sent during the tool call. A queued message receives a record identity and can be cancelled before delivery.

The local archive allows read queries to continue when the mail server is unavailable, but the answer reflects the last completed synchronization. Mail rules and spam actions are outside the read-only retrieval path and may still change the mailbox according to your configuration.

## Setup and configuration

The recommended first installation uses Docker Compose. The quick-start script asks for mailbox details, generates credentials, writes configuration, starts the stack, and can apply the database schema. Its defaults publish both services on loopback, but the generated setup keeps credentials in files under the checkout and does not provide backups.

The project also documents Podman Quadlet, Kubernetes, and a native systemd deployment. Local development can use Aspire to provision PostgreSQL and apply the schema. Read the installation and getting-started documentation before connecting an agent. The MailFathom MCP server is under active development before version 1.0.0; releases may change tools, configuration, schema, or deployment behavior, so review the changelog and keep a recoverable backup before upgrading.

## Tools and capabilities

- List accounts, recent messages, and search results.
- Retrieve full content for up to ten messages.
- Ask questions over archived mail with message citations.
- Set read, unread, starred, and keyword flags.
- Create, update, delete, and send drafts.
- Send, reply to, forward, inspect, and cancel outgoing messages.
- Manage contacts in the local contact book.

## Limitations and notes

The MailFathom MCP server is read-only only when deployed and configured that way; write features exist but remain disabled unless explicitly enabled. Sending is asynchronous, subject to account credentials, recipient policy, and a configured period limit, and cannot be withdrawn after the delivery window. The archive is only as current as its last synchronization. Sensitive content is not automatically redacted unless the relevant `SensitiveContent` setting is enabled. Pre-1.0 compatibility is not guaranteed between releases.

_Full upstream README: https://allmcps.com/mcp/mailfathom/readme_

