How to Give Your AI Access to Email on Mac
Connect Claude, Cursor, VS Code, ChatGPT or any MCP-compatible AI client to Mail.app in 2 minutes. Read, search, send, and reply to emails. Works with Gmail, Outlook, iCloud, and any IMAP account. No API keys required.
Why Connect Your AI to Email?
Email is where most of your important information lives — project updates, client requests, invoices, travel confirmations, meeting notes. But finding what you need usually means scrolling through hundreds of messages or trying to remember the right search terms.
With LMCP, your AI assistant can access your email directly. Ask questions in plain English: “What did Sarah say about the budget?” or “Find the tracking number from my Amazon order last week.” Your AI reads through your messages, pulls out the relevant information, and gives you a direct answer.
You can also draft replies, send follow-ups, and move messages to folders — all by describing what you want in natural language.
What You Will Need
- macOS 12 (Monterey) or later — Apple Silicon or Intel
- Any MCP-compatible AI client: Claude Desktop, Cursor, VS Code (Copilot), Windsurf, Zed, or ChatGPT
- Mail.app with at least one email account configured
You do not need API keys, OAuth tokens, or any third-party accounts. LMCP talks directly to Mail.app on your Mac, so any email account you have set up there is automatically available to your AI.
Step 1: Install LMCP on Your Mac
Download LMCP and install it:
- Open the downloaded
.dmgfile from your Downloads folder - Drag Local MCP to your Applications folder
- Open Local MCP from your Applications folder — it appears in your menu bar
Takes about 30 seconds. Your AI clients are configured automatically.
On first launch, macOS will ask you to grant permission for LMCP to access Mail. Click “Allow” — this is what lets your AI read and send emails through Mail.app.
Step 2: Restart Your AI Client
Quit your AI client completely (Cmd+Q, not just closing the window) and reopen it. It needs to restart to discover the new MCP server.
- Claude Desktop — look for the hammer icon in the chat input
- Cursor — MCP tools appear automatically in the composer
- VS Code — check the MCP panel in Copilot settings
- ChatGPT — add
https://local-mcp.com/mcpas a custom connector
Step 3: Try It Out
Start a new conversation and try these prompts:
- “Summarize my unread emails” — reads your inbox and gives you a quick overview of what needs attention.
- “Find emails from John about the contract” — searches by sender, subject, and content across all your mailboxes.
- “Reply to the latest email from Sarah saying I will be there at 3pm” — drafts and sends the reply from your account.
- “Save the attachment from the invoice email to my Desktop” — extracts attachments and saves them where you want.
- “Move all newsletters to the Archive folder” — bulk operations in natural language.
Your AI will always show you a preview before sending or moving messages, so you can review and confirm before anything happens.
Which Email Providers Work?
Any email account configured in Mail.app works with LMCP. If you can see it in Mail.app, your AI can access it:
- Gmail — personal and Google Workspace accounts
- Outlook.com / Hotmail — Microsoft consumer accounts
- iCloud Mail — Apple's email service
- Microsoft Exchange / Office 365 — work accounts
- Any IMAP provider — Fastmail, ProtonMail Bridge, Yahoo, custom domains
If you have multiple accounts, your AI can search across all of them. You can specify which account to use: “Send from my work email...”
What Your AI Can Do with Email
LMCP exposes a full set of email tools:
- List emails — browse your inbox, sent folder, or any mailbox
- Read emails — get the full content of any message, including HTML
- Search emails — find messages by sender, subject, date range, or content
- Send emails — compose and send new messages from any of your accounts
- Reply to emails — reply or reply-all to existing threads
- Move emails — organize messages into folders or move to trash
- Save attachments — download attachments from any message to your Mac
For destructive operations like sending and moving, your AI always shows a preview and asks for confirmation first.
Privacy: Everything Stays on Your Mac
This is the key difference between LMCP and cloud-based email integrations:
- LMCP runs as a local server on
localhost:8765 - It talks to Mail.app through macOS native APIs
- Email content goes directly from Mail.app to your AI client — no intermediate servers
- No email data is stored, cached, or logged by LMCP
No API keys, no OAuth flows, no cloud service that could be breached. Your email stays exactly where it is — in Mail.app on your machine. GDPR and CCPA compliant by architecture.
Troubleshooting
AI does not show any emails
First, make sure Mail.app has the account configured and can receive emails. Then check that LMCP has permission: go to System Settings > Privacy & Security > Automationand ensure LMCP has access to Mail.
MCP tools not visible in AI client
Make sure you fully quit and restarted your AI client. You can also check the config file:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Cursor:
~/.cursor/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json
Permission denied errors
macOS requires explicit permission for apps to control other apps. Go to System Settings > Privacy & Security > Automation and ensure LMCP is listed with access to Mail. If it is not listed, download and reinstall LMCP.
Real-World Workflows
Morning email triage
Summarize my unread emails, flag the urgent ones, draft replies to routine requests, and create reminders for anything that needs follow-up.
Your AI reads your inbox, categorizes messages by urgency, handles the easy ones, and makes sure nothing falls through the cracks.
Meeting coordination
Check everyone's availability in my contacts, draft a meeting invite for Tuesday or Wednesday afternoon, and send it to the project team.
Your AI cross-references contacts and calendar, finds a time that works, composes the invite, and sends it after your confirmation.
Weekly digest
Go through all emails from this week, group them by project, summarize key decisions and action items, and create a note with the weekly digest.
Instead of scrolling through a week of email, your AI produces a structured summary you can review in two minutes.
What Else Can LMCP Do?
Email is just the beginning. LMCP also connects your AI to Microsoft Outlook, Microsoft Teams, Calendar, Contacts, OneDrive, and local files. Check the full list of guides or visit local-mcp.com to learn more about all 92 tools available.