Mail-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MAIL_MCP_CLIENT_ID | Yes | Required. Application (client) ID from step 1 | |
| MAIL_MCP_CACHE_PATH | No | Optional. Token cache location |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mail_list_foldersA | List every folder of the personal Outlook mailbox with its path, total message count and unread count. Call it before filing messages to learn which folders exist. Other tools accept a folder by display name ("Invoices"), by path ("Archive/2024"), by well-known name (inbox, deleteditems, junkemail, archive) or by id. |
| mail_create_folderA | Create an Outlook folder (at the root or under a parent). Idempotent: if a folder with the same name already exists it is returned without error. Example: { name: "Newsletters" } or { name: "2025", parent: "Invoices" }. |
| mail_searchA | List messages of a folder (Inbox by default), newest first, with filters: exact sender, date range, unread only. |
| mail_get_messageA | Return the full content of one message (body converted to text, recipients, attachment flag, web link) plus the unsubscribe options found in its headers, with the |
| mail_senders_summaryA | KEY TOOL FOR TRIAGE. Scans a folder (Inbox by default, up to 50,000 messages) and aggregates messages by sender: count, unread, latest message, and for the |
| mail_moveA | Move one or more messages (up to 500 ids) to a folder (name, path or id). Used for filing. NOTE: Outlook assigns a new id to every moved message; the |
| mail_deleteA | Move one or more messages (up to 500 ids) to Deleted Items, where the user can restore them from Outlook (or with mail_search folder=deleteditems then mail_move; their id changes). Never deletes permanently: for that, use mail_purge, and only when the user explicitly asks for permanent deletion. |
| mail_purgeA | Permanently delete one or more messages (up to 500 ids). This cannot be undone: the messages do not go to Deleted Items and cannot be restored. Only use it when the user explicitly asked for these messages to be deleted permanently; otherwise use mail_delete, which moves them to Deleted Items. |
| mail_bulk_by_senderA | Move EVERY message from a sender (exact address) in a folder (Inbox by default) to another folder, or to Deleted Items, at most 5,000 per call. A dry run by default: it only counts the messages it would act on ( |
| mail_unsubscribeA | Try to unsubscribe from the mailing list of a message, in order: (1) RFC 8058 one-click HTTPS POST ( |
| mail_loginA | Sign the user in to their personal Outlook mailbox. Call it when any other tool answers "Not signed in" or that the sign-in has expired. It opens a Microsoft sign-in page in the user's browser and waits for them to finish. If the result is "pending", ask the user to complete the sign-in in their browser, then call mail_login again. It asks for access to read and organize mail only: it never asks for permission to send email. Safe to call when already signed in. |
| mail_logoutA | Sign the user out: removes the sign-in stored on this computer. Mail tools stop working until mail_login is called again. The result includes a link where the user can also withdraw Mail-MCP's access on Microsoft's side. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Each tool has a distinct role, and the descriptions actively disambiguate the risky pairs: delete vs. purge (restorable vs. permanent), move vs. bulk_by_sender (id list vs. sender sweep), and search vs. senders_summary (message listing vs. triage aggregation). Only mild residual overlap remains between mail_move and mail_bulk_by_sender for the 'file everything from this sender' case, and between mail_search and mail_senders_summary for triage.
All tools share a uniform `mail_` prefix and snake_case, with verb-led names (mail_list_folders, mail_move, mail_delete, mail_purge). The exceptions are the noun-phrase names mail_senders_summary and mail_bulk_by_sender, which break the verb_noun pattern but stay readable and are not confusable with anything else.
Twelve tools is well within the sweet spot, and each one earns its place: auth (login/logout), folders (list/create), retrieval (search/get/senders_summary), mutation (move/delete/purge/bulk), and unsubscribe. There is no filler and no obvious bundling of unrelated actions.
The mailbox lifecycle is well covered from triage through filing and permanent removal, including the safety-critical dry-run and unsubscribe flows. Gaps are minor but real: there is no mark-as-read/flag tool, no way to fetch or save attachments, and no reply/forward capability (sending is deliberately excluded by the permission scope).