Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Mail-MCP

by Rixtayzversion 0.1.2i★ –iRuns on your computer
Registry nameio.github.Rixtayz/mail-mcp

Install

Overview

Description from the maker (original English)

Personal Outlook.com / Hotmail inbox: read, search, file, delete, unsubscribe via Microsoft Graph.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Chat & email
  • You need to fill in: MAIL_MCP_CLIENT_ID

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: MAIL_MCP_CLIENT_ID, MAIL_MCP_CACHE_PATH

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "mail": {
      "command": "npx",
      "args": [
        "-y",
        "@rixtay/mail-mcp"
      ],
      "env": {
        "MAIL_MCP_CLIENT_ID": "your-value",
        "MAIL_MCP_CACHE_PATH": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add mail --env MAIL_MCP_CLIENT_ID=your-value --env MAIL_MCP_CACHE_PATH=your-value -- npx -y @rixtay/mail-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "mail": {
      "command": "npx",
      "args": [
        "-y",
        "@rixtay/mail-mcp"
      ],
      "env": {
        "MAIL_MCP_CLIENT_ID": "your-value",
        "MAIL_MCP_CACHE_PATH": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "mail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@rixtay/mail-mcp"
      ],
      "env": {
        "MAIL_MCP_CLIENT_ID": "your-value",
        "MAIL_MCP_CACHE_PATH": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • MAIL_MCP_CLIENT_ID required env
    Application (client) ID of your Microsoft Entra app registration (see README). Run `npx -y @rixtay/mail-mcp login` once to sign in.
  • MAIL_MCP_CACHE_PATH env
    Token cache location. Defaults to ~/.mail-mcp/token-cache.json.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Rixtayz, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Chat & emaili

  • More stars than 0% of the other 1830 servers in this category
  • Published to the registry more recently than 42% of the other 1830 servers in this category
  • Basic checks equal to or better than 100% of the other 1830 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Mail-MCP safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: MAIL_MCP_CLIENT_ID

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.1.2) reached the registry 37 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Vexa, emailmd, MCP WhatsApp Cloud

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Vexa

by Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

Runs in the cloud★ 2,949Apache-2.0Updated 2 months ago
Install

emailmd

by anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

Computer or cloud★ 1,385MITUpdated 32 days ago
Install

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

Runs on your computer★ 277MITUpdated 5 months ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Mail-MCP

A small, focused MCP server that lets Claude (Claude Desktop, Cowork, Claude Code or any MCP client) work on a personal Outlook.com / Hotmail / Live mailbox through Microsoft Graph: read and search mail, file it into folders, delete it, and unsubscribe from newsletters.

Built for one job: clean up an overflowing personal inbox with an AI assistant, safely.

Tools

Nine tools, all prefixed mail_:

ToolWhat it does
mail_list_foldersFolder tree with total / unread counts
mail_create_folderCreate a folder (idempotent)
mail_searchList / search messages (sender, date range, unread, full text), paginated
mail_get_messageFull content of one message + detected unsubscribe options
mail_senders_summaryAggregate a whole folder by sender: volume, latest message, available unsubscribe method
mail_moveMove up to 500 messages to a folder
mail_deleteMove to Deleted Items by default, permanent: true to purge
mail_bulk_by_senderMove or delete every message from one sender (dryRun supported)
mail_unsubscribeRFC 8058 one-click POST → mailto: email → otherwise a URL for the assistant to open in a browser

Design choices:

  • Safe by default. Deletion goes to Deleted Items (visible and restorable in Outlook). Permanent deletion requires an explicit flag. Bulk actions support dryRun.
  • Efficient on big mailboxes. mail_senders_summary scans thousands of messages in a few seconds (1,000-item pages, minimal $select) and only fetches headers for the top senders through $batch.
  • No generic send tool. The Mail.Send permission is used solely to send mailto: unsubscribe requests.
  • Every tool ships a strict input schema, an output schema and MCP annotations (readOnlyHint, destructiveHint, …) so hosts can auto-approve read-only calls.

Requirements

  • Node.js 22 or newer.
  • A personal Microsoft account (outlook.com, hotmail.com, live.com, msn.com).
  • A free Microsoft Entra app registration (5 minutes, below). Password-based IMAP was switched off for personal accounts in September 2024, so an OAuth app is the only supported way in.

1. Register an app in Microsoft Entra (once, free)

No Azure subscription is needed for a public client app.

  1. Go to https://entra.microsoft.com and sign in with your personal Microsoft account.
  2. Identity → Applications → App registrations → New registration.
  3. Fill in:
  • Name: Mail-MCP
  • Supported account types: Personal Microsoft accounts only
  • Redirect URI: platform Mobile and desktop applications, value http://localhost
  1. Click Register and copy the Application (client) ID (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
  2. Under Authentication, make sure http://localhost is listed under "Mobile and desktop applications" and Allow public client flows is Yes.
  3. Under API permissions, add Microsoft Graph *delegated* permissions: Mail.ReadWrite, Mail.Send, User.Read, offline_access. No admin consent is needed; you consent at first sign-in.

No client secret is created: the server is a public client using the authorization code flow with PKCE.

2. Sign in

No install needed, npx fetches the package from npm (@rixtay/mail-mcp, the installed command is mail-mcp):

MAIL_MCP_CLIENT_ID=<your-client-id> npx -y @rixtay/mail-mcp login

Or from a clone:

git clone https://github.com/Rixtayz/Mail-MCP.git

cd Mail-MCP npm install && npm run build MAIL_MCP_CLIENT_ID= npm run login

The login command opens your system browser, signs you in with Microsoft, then stores the token cache in ~/.mail-mcp/token-cache.json (file mode 600). Tokens refresh silently for 90 rolling days. If a tool ever answers "Token expired", run the same command again.

Environment variablePurpose
MAIL_MCP_CLIENT_IDRequired. Application (client) ID from step 1
MAIL_MCP_CACHE_PATHOptional. Token cache location

3. Connect to Claude Desktop / Cowork

Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS (or %APPDATA%\Claude\claude_desktop_config.json on Windows), reachable through Settings → Developer → Edit Config.

{

"mcpServers": { "mail": { "command": "npx", "args": ["-y", "@rixtay/mail-mcp"], "env": { "MAIL_MCP_CLIENT_ID": " " } } } }

If Claude Desktop cannot find npx (it does not inherit your shell PATH), use absolute paths instead: "command": "/absolute/path/to/node", "args": ["/absolute/path/to/Mail-MCP/dist/index.js"].

Quit Claude Desktop completely and start it again. Logs: ~/Library/Logs/Claude/mcp-server-mail.log.

Cowork runs local MCP servers only in local sessions, not in cloud sessions.

4. Connect to Claude Code

claude mcp add --scope user --env MAIL_MCP_CLIENT_ID=<your-client-id> --transport stdio mail -- npx -y @rixtay/mail-mcp

5. Example prompts

  • "Summarise the senders in my inbox and flag the newsletters."
  • "Unsubscribe me from every newsletter I haven't opened in six months, then move their messages to Deleted Items."
  • "Create an Invoices folder and move everything from billing@vendor.com into it."
  • "Show me the latest email from my bank."

Typical flow: mail_senders_summary → the assistant proposes a list, you confirm → mail_unsubscribe(lastMessageId) per newsletter (when the answer is method: "browser", the assistant opens the URL in its browser and finishes there) → mail_bulk_by_sender(action: "delete").

Development

npm test          # vitest: header parsing, Graph retry/batch/pagination, service with a mocked Graph

npm run typecheck npm run inspect # MCP Inspector against dist/index.js

Layout:

src/index.ts          CLI entry point: `mail-mcp` serves stdio, `mail-mcp login` signs in

src/login.ts interactive sign-in flow src/server.ts builds the McpServer and registers the tools src/auth.ts MSAL public client, file-based token cache src/graph.ts Graph client: bearer auth, 429/503 retry, pagination, $batch in chunks of 20 src/mail.ts business logic (folders, search, sender summary, move/delete, unsubscribe cascade) src/unsubscribe.ts List-Unsubscribe / List-Unsubscribe-Post parsing, RFC 8058 one-click POST src/tools/*.ts tool definitions (zod v4 schemas, annotations)

Stack: @modelcontextprotocol/server v2, zod v4, @azure/msal-node v6, html-to-text.

Things worth knowing

  • Message ids change whenever a message changes folder. mail_move and mail_delete return the old → new id mapping.
  • A normal delete is a move to Deleted Items. Graph's own DELETE would drop the item into Recoverable Items, which is invisible in Outlook, so it is deliberately not used.
  • Microsoft throttles Outlook to 10,000 requests per 10 minutes per mailbox and 4 concurrent requests. Batches are serialised and retried on 429.
  • mail_search with query (full text) cannot be combined with the other filters (Graph limitation) and tops out at a few hundred results.
  • Whether an unsubscribe actually takes effect is up to the sender. One-click and mailto: send the request; the assistant's browser handles the rest.
  • The authority is login.microsoftonline.com/consumers. With common, refresh tokens for personal accounts are rejected after the first refresh.

Contributing

Bug reports, fixes and focused new tools are welcome: see CONTRIBUTING.md. Please never paste real email content, addresses or tokens in an issue. Found a way the server could leak mail or tokens, or act without being asked? Please report it privately, as described in SECURITY.md.

Release history: CHANGELOG.md.

License

MIT

Ask PopNx