Evermail MCP Server
# Evermail MCP Server (`evermail-mcp`)
[](https://glama.ai/mcp/connectors/ai.evermail/mcp)
[](https://glama.ai/mcp/servers/kallehiitola/evermail-mcp)
[](https://registry.modelcontextprotocol.io/v0/servers?search=ai.evermail%2Fmcp)
Official **Model Context Protocol (MCP)** server and zero-dependency stdio bridge for [Evermail](https://www.evermail.ai), letting **Claude, Claude Code, Cursor, VS Code, Windsurf, and Cline** search, read, analyze, and export your uploaded email archives (**PST, OST, MBOX, EML, and Google Takeout**) directly inside a conversation.
- **Hosted Streamable HTTP Endpoint:** `https://mcp.evermail.ai/mcp`
- **Official MCP Registry ID:** `ai.evermail/mcp`
- **Documentation:** [Connecting Evermail to Claude](https://www.evermail.ai/docs/connecting-claude)
- **Glama Connector Listing:** [glama.ai/mcp/connectors/ai.evermail/mcp](https://glama.ai/mcp/connectors/ai.evermail/mcp)
## Why Evermail MCP?
- **Search years of archived email without desktop mail clients:** Query uploaded Outlook PST/OST files, Apple Mail and Thunderbird MBOX files, standalone EML messages, and Google Takeout exports in seconds.
- **One-click OAuth 2.1 + PKCE sign-in:** Connect Claude web, Claude Desktop, and Claude Code by signing in with your Evermail account (Dynamic Client Registration supported, no API key required). Revoke any connected AI app anytime in `Settings -> Integrations -> Connected AI apps`.
- **Safe by design (7 read-only tools, 2 additive tools):** No tool edits or deletes emails, mailboxes, or archives. Zero-Access encrypted archives stay unreadable to AI, and archives imported directly from Google stay excluded from AI tools unless you explicitly switch AI access on per archive.
- **EU-hosted, GDPR-compliant storage:** Archive files remain on Evermail's EU infrastructure. Only the specific messages requested by a tool call are returned to your AI client.
- **Zero runtime dependencies:** Pure Node.js standard library (`>= 18`) for stdio clients that require a local bridge.
## Prerequisites
- An [Evermail](https://app.evermail.ai) account on a paid plan (**Starter, Pro, Team, or Enterprise**; Free-tier accounts cannot connect to MCP) with at least one uploaded email archive.
## Connect Evermail MCP
### 1. Claude Web or Desktop (Recommended, OAuth sign-in)
1. Open **Customize -> Connectors** (or **Organization settings -> Connectors** for Team/Enterprise owners) and click **Add custom connector**.
2. Paste `https://mcp.evermail.ai/mcp`.
3. Keep the detected **OAuth** setting, click **Connect**, sign in to Evermail, and click **Allow access**.
### 2. Claude Code (Hosted Streamable HTTP + OAuth)
```sh
claude mcp add --transport http evermail https://mcp.evermail.ai/mcp
claude mcp login evermail
```
Add `--scope user` to make `evermail` available across all projects.
### 3. Cursor, VS Code, Windsurf, or Generic HTTP MCP Clients
For clients that support Streamable HTTP with OAuth or custom headers:
```json
{
"mcpServers": {
"evermail": {
"type": "http",
"url": "https://mcp.evermail.ai/mcp"
}
}
}
```
If your client uses an API key header instead of OAuth, create an `em_live_` key in [Evermail Settings -> Integrations](https://app.evermail.ai/settings/integrations) and pass `X-API-Key`:
```json
{
"mcpServers": {
"evermail": {
"type": "http",
"url": "https://mcp.evermail.ai/mcp",
"headers": {
"X-API-Key": "em_live_your_key_here"
}
}
}
}
```
### 4. Local Stdio Bridge (Cline and stdio-only MCP Clients)
Requires Node.js 18+ and an `em_live_` API key from [app.evermail.ai/settings/integrations](https://app.evermail.ai/settings/integrations):
```json
{
"mcpServers": {
"evermail": {
"command": "npx",
"args": ["-y", "github:kallehiitola/evermail-mcp"],
"env": {
"EVERMAIL_API_KEY": "em_live_your_key_here"
}
}
}
}
```
Once published to npm, you can also run `npx -y evermail-mcp`.
## Available Tools (9 Tools)
| Tool | Title | Behavior | Description |
| :--- | :--- | :--- | :--- |
| `search_emails` | Search emails | Read-only | Full-text search across archives with sender, mailbox, date range, attachment, and limit filters. |
| `get_email` | Read email | Read-only | Read a full email by ID, including body text, headers, recipients, and attachment metadata. |
| `list_mailboxes` | List mailboxes | Read-only | List uploaded mailboxes with message counts, storage sizes, source format, and security level. |
| `get_mailbox` | Get mailbox details | Read-only | Get processing details and metadata for a specific mailbox ID. |
| `get_archive_analytics` | Get archive statistics | Read-only | Aggregate stats: total messages, date span, top senders/recipients, attachments, yearly volume, busiest times, and top threads. |
| `list_saved_searches` | List saved searches | Read-only | List all saved search filters in the workspace. |
| `get_profile` | Get account profile | Read-only | Read workspace profile, subscription tier, and plan limits. |
| `create_saved_search` | Create saved search | Additive (non-destructive) | Save a reusable search filter without modifying or deleting existing searches. |
| `export_emails` | Export emails | Additive (non-destructive) | Export selected email IDs as EML (ZIP) or MBOX and return a temporary download link (also manageable under Settings -> Data & privacy -> Email exports). |
## Example Prompts
- "Search my archive for the 2019 Henderson contract."
- "Who emailed me the most, and how far back does my archive go?"
- "Find every email from our old accountant and summarize what they were chasing."
- "Export the selected invoices from Q3 2020 as MBOX."
## Security and Privacy
- **OAuth 2.1 + PKCE:** Authorization server at `https://app.evermail.ai/` with RFC 9728 Protected Resource Metadata at `https://mcp.evermail.ai/.well-known/oauth-protected-resource`.
- **Revocation:** Revoke any connected AI app or API key at `https://app.evermail.ai/settings/integrations`.
- **Privacy Policy:** [evermail.ai/privacy](https://www.evermail.ai/privacy)
- **Vulnerability Disclosure:** [evermail.ai/.well-known/security.txt](https://www.evermail.ai/.well-known/security.txt)
- **Support:** `support@evermail.ai`
## Local Smoke Test
```sh
npm test
```
## License
MIT (c) Ludoitte Oy
TDQS
Scored across 9 tools
Each tool targets a clearly distinct resource and action: search vs. get email, list vs. get mailbox, analytics, saved-search listing/creation, export, and profile. There is little realistic chance of misselection because the boundaries between retrieval, analytics, export, and account metadata are explicit.
All tools follow a consistent snake_case verb_noun pattern: search_emails, get_email, list_mailboxes, get_mailbox, get_archive_analytics, list_saved_searches, create_saved_search, export_emails, get_profile. No naming convention deviations appear.
Nine tools is well-scoped for an email archive server, covering search, retrieval, mailbox visibility, analytics, saved searches, export, and profile without obvious redundancy. Each tool has a clear place in the surface.
The core email-archive workflow is covered: search, retrieve, inspect mailboxes, view analytics, manage saved searches, export, and check profile limits. Minor gaps remain around updating/deleting saved searches and downloading attachment content rather than only metadata.