Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 74
  • 1 stars
  • 94 a week
  • MIT
  • Updated

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-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Mail-MCP in Claude Code

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
SettingNeededWhat it is
MAIL_MCP_CLIENT_IDEnvironment variableOptionalOptional. Application (client) ID of your own Microsoft Entra app registration. Leave unset to use the built-in Mail-MCP app.
MAIL_MCP_CACHE_PATHEnvironment variableOptionalToken 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

A

No 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 →

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.

Mail-MCP Install

Add to stack

Loading.