mcp-for-apple-mail
Provides tools for interacting with Apple Mail on macOS via AppleScript, enabling searching messages, listing mailboxes, saving PDF attachments, reading message bodies, and flagging messages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-for-apple-mailfind the hosting invoice PDF from last month and save it to my Downloads folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-for-apple-mail
Ein kleiner MCP-Server (Model Context Protocol), der Apple Mail auf dem Mac per AppleScript kapselt. Er hilft, Rechnungs-PDFs aus dem Posteingang zu finden und gezielt abzulegen, ohne Zugangsdaten zu hinterlegen: Apple Mail hat eine vollständige AppleScript-Schnittstelle und die Konten sind bereits eingerichtet.
Was ist ein MCP-Server?
MCP (Model Context Protocol) ist ein offener Standard, über den KI-Anwendungen (der Host, etwa Claude Desktop oder Claude Code) mit externen Werkzeugen und Daten sprechen. Ein Server stellt Fähigkeiten bereit und weiß selbst nichts von KI. Drei Arten:
Tools — Aktionen, die das Modell aufrufen kann (hier: suchen, speichern).
Resources — Daten zum Lesen (hier nicht genutzt).
Prompts — Vorlagen (hier nicht genutzt).
Kommunikation läuft über JSON-RPC 2.0, hier per stdio (lokaler Prozess).
Related MCP server: apple-mail-mcp
Tools
Tool | Zweck |
| Alle Konten und Mailboxen als |
| Nach Absender-Stichworten und/oder nur geflaggten Nachrichten im Zeitfenster suchen, mit Anhangnamen und Flaggen-Markierung (⚑) |
| Ersten passenden PDF-Anhang (Name enthält Schlüssel, endet auf .pdf) speichern |
| Klartext-Inhalt der ersten passenden Nachricht lesen (für Belege ohne PDF) |
| Fahne an genau einer Nachricht setzen/entfernen, optional mit Farbe; bei mehrdeutigem Schlüssel passiert nichts |
Installation
npm installKein Build-Schritt: reines ESM-JavaScript, läuft direkt mit Node (>= 18).
Konfiguration
Die zu durchsuchenden Mailboxen stehen in einer lokalen config.json, die
nicht eingecheckt wird (in .gitignore). Vorlage kopieren und die eigenen
Konten eintragen:
cp config.example.json config.jsonFormat je Eintrag <Konto>:<Mailbox>. Die exakten Namen liefert das Tool
list_mailboxes. Fehlt die config.json, greifen generische Platzhalter.
Alternativ übergibt der Aufrufer die Mailboxen je Tool direkt im
mailboxes-Parameter.
Lokal testen
Mit dem MCP Inspector zum Durchklicken der Tools:
npm run inspectOder direkt starten (wartet dann auf JSON-RPC über stdin):
npm startBeim ersten echten Lauf fragt macOS nach Automatisierungs-Zugriff auf Mail. Einmal erlauben.
In Claude Code registrieren
claude mcp add apple-mail -- node /absolute/path/to/mcp-for-apple-mail/src/index.jsIn Claude Desktop registrieren
In ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"apple-mail": {
"command": "node",
"args": ["/absolute/path/to/mcp-for-apple-mail/src/index.js"]
}
}
}Beispielablauf
list_mailboxes, um die exakten Konto- und Mailboxnamen zu sehen.search_messagesmitvendors: ["hosting", "software-vendor"]undfromDate: "2026-04-01", um zu sehen, welche Rechnungen als PDF vorliegen (Treffer zeigen die Anhangnamen inATT{...}).Pro Treffer
save_attachmentmitsubjKey,attKeyunddestPath, z. B. nach dem SchemaYYYY-MM/YYYY-MM-DD <Anbieter> <Beleg>.pdf.
Grenzen
Nur macOS mit Apple Mail.
Anbieter mit reinem Portal liefern per Mail kein PDF und müssen weiter manuell geladen werden.
Steht die Rechnungsnummer nur im Anhang, nicht im Betreff, erst mit
search_messagesprüfen, wo der Schlüssel steht.
Lizenz
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that gives Claude and other MCP hosts full access to Mail.app on macOS — search, read, send, reply, flag, move, and more across all accounts configured in Mail.app.Last updated2460MIT
- AlicenseAqualityBmaintenanceThis MCP server allows AI assistants to read, send, search, and manage emails in Apple Mail on macOS. It uses AppleScript to interact with the Mail app locally.Last updated501,18656MIT
- Alicense-qualityDmaintenanceAn MCP server that gives AI assistants comprehensive access to Apple Mail accounts, enabling email discovery, reading, flag management, and server-side message retrieval.Last updatedMIT
- AlicenseAqualityCmaintenanceAn MCP server that provides programmatic access to Apple Mail, enabling AI assistants like Claude to read, send, search, and manage emails on macOS.Last updated25MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shaack/mcp-for-apple-mail'
If you have feedback or need assistance with the MCP directory API, please join our Discord server