Move Email to a Folder with AI on Mac (LMCP)

Let your AI assistant move emails into any Mail folder on your Mac. LMCP is a free, native macOS MCP server — local only, no API keys, no cloud copy.

L
LMCP··5 min read

The move_email tool lets your AI assistant move a message out of your inbox and into another mailbox in Apple Mail — instantly, by name. Nested target folders are matched automatically, so you don't need the full path. You just say what you want and the AI does it. For example, you can type: "Move that receipt from Amazon into my Receipts folder." The AI finds the message, identifies the right mailbox, and files it for you.

Under the hood the tool takes an account= value (returned by list_emails or search_emails) so it knows exactly which account and message to act on. That makes it reliable even when you have several mail accounts configured. Download LMCP to enable it.

Which AI agents work?

LMCP exposes move_email to every major AI client. Desktop apps configure themselves automatically over local stdio, while web AIs connect through the LMCP Cloud Relay connector:

  • Desktop (auto-configure via local stdio): Claude Desktop, Cursor, VS Code (GitHub Copilot), Windsurf and Zed.
  • Web (via LMCP Cloud Relay connector): ChatGPT, Claude.ai (web), Grok and Perplexity.

The same 150+ tools are available across all of them, so your inbox cleanup works wherever you prefer to chat.

Automation

move_email shines when chained with other Mail tools. A typical flow: the AI runs search_emails to find every newsletter from last month, then loops move_email to file each one under "Newsletters." Combine it with read_email to triage by content first, or with list_emails to sweep an inbox into project folders. You can describe a rule once — "file anything from my accountant into Finance" — and the AI executes the whole batch in one turn.

Context

Because LMCP runs on your Mac, the AI works with your real Mail data: your actual accounts, your actual folder structure, the messages sitting in your inbox right now. There's no syncing, no import step, and no separate copy. The assistant sees the same mailboxes you see in Apple Mail, which is why it can match a folder by name and move the correct message every time.

Productivity

Manually dragging emails into nested folders is slow and easy to get wrong. With move_email you delegate the whole chore: "Clean up my inbox — move all shipping notifications to Orders and anything from HR to Work." What used to be ten minutes of clicking and scrolling becomes a single sentence. Inbox-zero routines that you'd put off for days happen in seconds, and the AI never misfiles into the wrong account.

Privacy & GDPR

Everything happens locally on your Mac. move_email talks directly to Apple Mail on your machine — no message content, folder names, or metadata ever leave your computer, and nothing is stored on a server. There are no API keys to hand out and no cloud mailbox to trust. This local-first design makes LMCP GDPR-compliant by architecture: data minimization and on-device processing are built in, not bolted on.

Ready to try it?

Works with Claude, Cursor, VS Code, ChatGPT and any MCP client

Download LMCP (.dmg)
FreemacOS 12+ · Apple Silicon & Intel

✦ llms.txt