Mail-MCP
MCP server by Rixtayz Community
Mail-MCP lets an AI assistant read, search, file, delete and unsubscribe from mail in a personal Outlook.com or Hotmail inbox. It works through Microsoft Graph and is aimed at cleaning up an overflowing personal inbox.
Install Mail-MCP
Built from the published package, never by AI.
claude mcp add mail-mcp -e MAIL_MCP_CLIENT_ID=YOUR_MAIL_MCP_CLIENT_ID -- npx -y @rixtay/mail-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mail-mcp": {
"env": {
"MAIL_MCP_CLIENT_ID": "YOUR_MAIL_MCP_CLIENT_ID"
},
"args": [
"-y",
"@rixtay/mail-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mail-mcp": {
"env": {
"MAIL_MCP_CLIENT_ID": "YOUR_MAIL_MCP_CLIENT_ID"
},
"args": [
"-y",
"@rixtay/mail-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mail-mcp": {
"env": {
"MAIL_MCP_CLIENT_ID": "YOUR_MAIL_MCP_CLIENT_ID"
},
"args": [
"-y",
"@rixtay/mail-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mail-mcp --env MAIL_MCP_CLIENT_ID=YOUR_MAIL_MCP_CLIENT_ID -- npx -y @rixtay/mail-mcp{
"mcpServers": {
"mail-mcp": {
"env": {
"MAIL_MCP_CLIENT_ID": "YOUR_MAIL_MCP_CLIENT_ID"
},
"args": [
"-y",
"@rixtay/mail-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mail-mcp npx -y @rixtay/mail-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mail-mcp block.
About
Mail-MCP is an MCP server that lets an AI assistant such as Claude work on a personal Outlook.com, Hotmail or Live mailbox through Microsoft Graph. It can read and search mail, file messages into folders, delete them, and unsubscribe from newsletters. It can also summarise a whole folder by sender, so the assistant can propose a cleanup list before changes are made.
Deletion moves messages to Deleted Items by default, and permanent deletion needs an explicit flag. Bulk actions support a dryRun option. The server runs as a public client with no client secret, using the authorization code flow with PKCE. It is built for people who want to clean up a crowded personal inbox with an AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
mail_list_foldersReturns the folder tree with total and unread counts.mail_create_folderCreates a folder, idempotently.mail_searchLists or searches messages by sender, date range, unread status or full text, with pagination.mail_get_messageReturns the full content of one message and detected unsubscribe options.mail_senders_summaryAggregates a whole folder by sender, showing volume, latest message and unsubscribe method.mail_moveMoves up to 500 messages to a folder.mail_deleteMoves messages to Deleted Items, or purges them when permanent is true.mail_bulk_by_senderMoves or deletes every message from one sender, with dryRun supported.mail_unsubscribeTries RFC 8058 one-click POST, then mailto email, then returns a URL to open in a browser.
What you need
- Node.js 22 or newer
- A personal Microsoft account (outlook.com, hotmail.com, live.com or msn.com)
- A free Microsoft Entra app registration
- The MAIL_MCP_CLIENT_ID environment variable
| Setting | Needed | What it is |
|---|---|---|
MAIL_Environment variable | Optional | Optional. Application (client) ID of your own Microsoft Entra app registration. Leave unset to use the built-in Mail-MCP app. |
MAIL_Environment variable | Optional | Token cache location. Defaults to ~/.mail-mcp/token-cache.json. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Summarise the senders in my inbox and flag the newsletters.
- Unsubscribe me from newsletters I haven't opened in six months.
- Create an Invoices folder and move billing emails into it.
Good to know
- Full-text mail_search cannot be combined with other filters and returns only a few hundred results.
- Outlook is throttled to 10,000 requests per 10 minutes per mailbox.
- Whether an unsubscribe takes effect is up to the sender.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Mail-MCP
All alternatives →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
Compare with Jitsu, Vexa or Linkedin MCP server
Mail-MCP: common questions
Can Mail-MCP send emails for me?
There is no generic send tool. The Mail.Send permission is used only to send mailto unsubscribe requests.
Does a delete remove mail permanently?
No. mail_delete moves messages to Deleted Items by default, and only purges them when permanent is set to true.
Where are sign-in tokens stored?
The token cache is stored in ~/.mail-mcp/token-cache.json with file mode 600. The server uses no client secret.
How do I install Mail-MCP?
In Claude Code run claude mcp add mail-mcp -e MAIL_MCP_CLIENT_ID=YOUR_MAIL_MCP_CLIENT_ID -- npx -y @rixtay/mail-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Mail-MCP the official server?
Mail-MCP is a community project by Rixtayz, not verified by a company domain.
Is Mail-MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Mail-MCP safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Mail-MCP?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does Mail-MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
