mu-mcp
Click on "Deploy 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., "@mu-mcp find my most recent emails from Alice"
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.
mu-mcp
An MCP server that lets your local LLM search your email using mu.
Privacy
Your emails never leave your machine.
mu indexes your local maildir and searches it entirely on-device — no email content is sent to any server. When paired with a local LLM such as Qwen, Mistral, or Llama running via Ollama, the full pipeline is local:
your emails → mu index (local) → mu-mcp → local LLMNothing touches the internet. This is in contrast to cloud-based email AI integrations that require granting third-party services access to your inbox.
If you use a cloud LLM (e.g. Claude, GPT-4), be aware that email metadata — subjects, sender addresses, dates, and full message bodies if you invoke get_email — will be sent to that provider as part of the conversation context.
Related MCP server: Mailing Manager MCP
Requirements
Installation
git clone ...
cd mu-mcp
uv syncMCP client configuration
{
"mcpServers": {
"mu": {
"command": "uv",
"args": [
"run",
"--directory", "/path/to/mu-mcp",
"mu-mcp"
]
}
}
}Tools
search_emails(query, max_results, sort_field, sort_order)
Search your maildir using mu query syntax. Returns email metadata (subject, sender, date, path, flags).
get_email(path)
Retrieve the full content of a message by its file path (as returned by search_emails). Returns headers and body as plain text.
Available Tools
5 toolscount_emailsA
Count emails matching a query without fetching their content.
Use this when the user asks 'how many emails' rather than asking to see them.
Inputs: query (required). Returns: result
find_contactsA
Search contacts by name or email address using mu cfind.
Use this to resolve a person's name to their exact email address before searching emails with from: or to: filters.
Inputs: query (required), max_results. Returns: result
get_emailA
Get the full content of an email by its file path.
The path is obtained from the path field of search_emails results.
Returns the raw email text including headers and body.
Inputs: path (required). Returns: result
list_mailboxesA
List all maildirs in the mu index.
Call this first to discover maildir names before using maildir: in queries.
Inputs: no named parameters. Returns: result
search_emailsB
Search emails using mu find query syntax.
Examples: 'from:alice subject:report date:2w..'
sort_field: one of date, from, to, subject, size, maildir (default: date) sort_order: "desc" for newest/largest first, "asc" for oldest/smallest first
Inputs: query (required), sort_field, sort_order, max_results. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a unique and clearly defined purpose: counting emails, finding contacts, fetching full email content, listing mailboxes, and searching emails. No overlap in functionality.
All tool names follow a consistent verb_noun pattern (e.g., count_emails, find_contacts, get_email), all in lowercase snake_case. The naming is predictable and clear.
With 5 tools covering core email operations (search, count, retrieve, list mailboxes, find contacts), the number is well-scoped and each tool serves a necessary role.
The set covers the main query and retrieval needs, but lacks operations like deleting or moving emails. For a read-oriented MCP, it's mostly complete; minor gap for listing all contacts without a query.
Maintenance
Related MCP Connectors
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Private, EU-hosted email for AI agents over JMAP: read, search, reply, draft, organize, send.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Your own AI reads, searches and drafts in your mailbox, on your Windows computer.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to search and read email from a notmuch archive, providing tools for searching threads, retrieving messages, and listing tags through an MCP endpoint.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage multiple email accounts with secure credentials, local full-text search, thread-aware replies, and automation.10 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query and recall your entire Gmail inbox locally, providing fast summarization and semantic search without relying on Gmail's search API.84 npm4MIT
- AlicenseAqualityCmaintenanceReads and searches local email archives (.mbox or .eml) with full MIME parsing, enabling queries about senders, subjects, dates, and bodies while keeping all data on your machine.3124 npmMIT