Outlook Mailbox Tidier logo

Outlook Mailbox Tidier

Organizes Outlook and Hotmail mailboxes with search, folder management, rules, bulk actions, and unsent drafts.

Install Outlook Mailbox Tidier

Run the project’s own setup commands, in order.

Setup steps from the project

Outlook Mailbox Tidier installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    docker build -t outlook-mcp .
    
  2. 2. Sign in
    docker run -it --rm -e OUTLOOK_CLIENT_ID=<your-id> \
      -v outlook-mcp-token:/app/data -e OUTLOOK_TOKEN_CACHE=/app/data/token_cache.json \
      outlook-mcp python login.py
    
  3. 3. Start the server
    docker run -i --rm -e OUTLOOK_CLIENT_ID=<your-id> \
      -v outlook-mcp-token:/app/data -e OUTLOOK_TOKEN_CACHE=/app/data/token_cache.json \
      outlook-mcp
    

Overview

Outlook Mailbox Tidier MCP server connects an MCP client to personal Outlook.com or Hotmail accounts and work or school mailboxes through Microsoft Graph. It searches messages, reads mailbox structure, manages folders and inbox rules, performs capped bulk operations, and creates drafts without sending mail. Bulk searches support dry runs, while moving to Deleted Items remains recoverable. Reach for it when you need mailbox cleanup and organization without granting an agent send or permanent-delete capabilities.

Use cases

  • Search a large mailbox by sender, date, folder, or unread status
  • Reorganize nested Outlook folders as complete subtrees
  • Preview and bulk-move matching messages
  • Create replies as drafts without sending them
  • Create and manage server-side inbox rules

Key features

  • Microsoft Graph access for Outlook.com and work or school mailboxes
  • Folder tree creation, renaming, moving, and deletion
  • Search-based bulk moves with dry-run previews
  • Inbox rule inspection and management
  • Draft composition without send permission
  • Read-only mode through OUTLOOK_READONLY

Tools19

What Outlook Mailbox Tidier lets your agent do. Expand a tool for its parameters.

Self-reported~234 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 1Low 1

Scanned 9/12/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.

How Outlook Mailbox Tidier works

What Outlook Mailbox Tidier MCP server does

Outlook Mailbox Tidier MCP server gives an MCP client tools for organizing a Microsoft Outlook or Hotmail mailbox. It works with personal Outlook.com accounts as well as work and school accounts through the Microsoft Graph API. The toolset covers mailbox inspection, message search, folder management, inbox rules, bulk cleanup, and draft composition.

The server does not provide a send operation and does not request the Microsoft Graph Mail.Send permission. Drafted messages and replies remain in Drafts for a person to review and send. Deletion is also limited: messages can be moved to Deleted Items, where they remain recoverable, but permanent deletion is not implemented. Attachments are not supported; their presence is shown when applicable.

How it works

Read tools can diagnose configuration and connectivity, show the folder hierarchy with item and unread counts, search messages, retrieve an individual message, and inspect existing inbox rules. Search criteria include keywords, sender, date range, unread status, and folder.

Write tools can create, rename, move, and delete folders; move messages; archive mail; change read status; manage inbox rules; and place messages in Deleted Items. Moving a folder moves its complete subtree rather than requiring each message to be handled separately. Server-side rules continue to operate in Outlook even when the MCP server is not running.

Bulk operations have bounded scopes. Moving by search handles up to 2,000 messages, while marking messages read by search handles up to 25,000. Individual message moves and read-status changes accept up to 25 messages. The search-based move and read-status operations default to a dry run that reports the matching count before changes are made. Marking messages read is not reversible through the tool.

Setup and configuration

The project requires Python 3.10 or later, a Microsoft account, and an MCP client. Setup begins with registering an application in Azure and supplying its application (client) ID. The account owner must complete browser sign-in and consent because device-code authentication requires a person to use a browser.

After the Azure application is registered, the repository instructions describe creating a virtual environment, installing dependencies, writing the environment configuration, registering the MCP server, and checking the connection. Authentication is completed by running login.py. The server can also run in Docker, with the token cache stored in a named volume rather than inside the image.

The OUTLOOK_CLIENT_ID environment variable identifies the registered Azure application. OUTLOOK_TOKEN_CACHE can select the token-cache path when running in Docker. OUTLOOK_READONLY=true disables all write tools, allowing an agent to inspect the mailbox without changing it.

Tools and capabilities

The Outlook Mailbox Tidier MCP server exposes these groups of tools:

  • Diagnostics and inspection: check_config, list_folders, search_messages, get_message, and list_rules.
  • Drafting: create_draft and draft_reply, including reply-all drafts; neither sends mail.
  • Folder organization: create_folder, rename_folder, move_folder, and delete_folder.
  • Message organization: move_messages, move_by_search, archive_messages, mark_messages_read, and mark_read_by_search.
  • Rule and discard management: create_rule, delete_rule, and move_to_trash.

Folder deletion requires force when the folder is not empty. Deleting an inbox rule does not alter the messages it previously affected. The delegated permissions requested are Mail.ReadWrite and MailboxSettings.ReadWrite, with the latter used for inbox rules.

Limitations and notes

This server is focused on mailbox cleanup rather than the broader Microsoft 365 product surface. It does not expose calendar, contacts, Teams, attachment handling, message sending, or permanent deletion tools. Keep the token cache protected because it grants access to the mailbox. Review dry-run counts and destructive operations carefully, especially bulk read-status changes and folder deletion.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Outlook Mailbox Tidier

Outlook Mailbox Tidier is an MCP server that connects AI clients to Outlook.com, Hotmail, and work or school Microsoft mailboxes through Microsoft Graph. Its main tools search and read messages, manage folders and inbox rules, move or archive mail, and create unsent drafts. It cannot send email or permanently delete messages.

Install it by registering an Azure application, cloning the repository, creating its Python environment, configuring the client ID, and completing device-code login. The supplied setup instructions can guide an MCP client through dependency installation and registration, but a person must complete browser authentication.

It requires Claude Code or another MCP client, and it runs as a standard MCP server over stdio, so compatibility depends on the client’s MCP support and configuration.

No, it cannot send email. It has no send tool and does not request the Microsoft Graph Mail.Send permission. It can create new-message drafts and reply or reply-all drafts, but those remain in Drafts until a person sends them.

No, it cannot permanently delete messages. Its trash operation moves mail to Deleted Items, where it is recoverable. Folder deletion is available, and deleting a non-empty folder requires the force option.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOutlook Mailbox Tidier AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/outlook-mailbox-tidier?style=directory)](https://allmcps.com/mcp/outlook-mailbox-tidier)
HTML Embed
<a href="https://allmcps.com/mcp/outlook-mailbox-tidier"><img src="https://allmcps.com/api/badge/outlook-mailbox-tidier?style=directory" alt="Outlook Mailbox Tidier on AllMCPs" /></a>