Yahoo Mail MCP logo

Yahoo Mail MCP

Manage Yahoo Mail through MCP using IMAP for reading, searching, organizing, attachments, flags, and message deletion.

Install Yahoo Mail MCP

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

Setup steps from the project

yahoo-mail-mcp 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
    cd yahoo-mail-mcp
    
  2. 2. Install
    python3 -m venv .venv
    
  3. 3. Install
    pip install -r requirements.txt
    
  4. 4. Configure
    cp .env.example .env
    
  5. 5. Check the setup
    python test_connection.py
    
  6. 6. Start the server
    python server.py
    

Overview

The yahoo-mail-mcp MCP server connects an MCP client to Yahoo Mail over standard IMAP. It provides tools for listing folders, finding and reading messages, handling attachments, changing read status, moving mail, and deleting individual messages. Reach for it when an agent needs mailbox access without Yahoo API keys, using a Yahoo App Password instead.

Use cases

  • List unread Yahoo Mail messages
  • Search messages by sender and date
  • Read email bodies and attachment names
  • Organize messages into folders
  • Move or delete individual emails

Key features

  • IMAP access to Yahoo Mail
  • Combined sender, subject, date, and unread search
  • Folder listing and creation
  • Message reading and attachment retrieval
  • UID-based move, delete, and read-state operations
  • Soft deletion to Trash by default

Tools9

What Yahoo Mail MCP lets your agent do. Expand a tool for its parameters.

Self-reported~144 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.

14/14 checks healthy over the last 79d

Adoption & maintenance

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

GitHub stars6Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Yahoo Mail MCP works

What yahoo-mail-mcp does

The yahoo-mail-mcp MCP server gives an MCP client access to a Yahoo Mail account through IMAP. It belongs in the Communication category and is intended for agents that need to inspect or organize mailbox contents without using Yahoo's API or OAuth.

Available operations include listing folders and their IMAP special-use flags, creating folders, listing recent messages, and searching within a folder. Searches can combine sender, subject, date boundaries, and unread status. Messages can be opened with their headers and body text; HTML content is stripped when needed, and available attachment filenames are returned.

The server also retrieves an individual attachment as base64-encoded data, moves one message between folders, and sets or clears the read flag. Deletion is message-specific and uses the IMAP UID supplied by the tool workflow.

How it works

Each tool creates a short-lived IMAP connection, performs its operation, and closes the connection. Messages are addressed by IMAP UID rather than sequence number, avoiding references that can change between sessions. Move and delete operations first check the message envelope and return identifying details such as subject and sender.

By default, deleting a message moves it to the Trash folder discovered through IMAP special-use flags. Permanent removal requires an explicit permanent=true argument. The server does not provide a way to delete or expunge an entire folder in one operation. IMAP failures are returned as structured error data containing an error message and error type.

Setup and configuration

The yahoo-mail-mcp MCP server requires Python 3.10 or newer. Create a virtual environment, install the repository's requirements, and provide these environment variables:

  • YAHOO_EMAIL: the Yahoo Mail address to connect to
  • YAHOO_APP_PASSWORD: an app-specific Yahoo password

Yahoo generally requires an App Password for IMAP access, especially when two-step verification is enabled. The normal Yahoo account password should not be used. The project can load values from a .env file through python-dotenv; alternatively, place them in the MCP client's environment configuration.

Run python test_connection.py to authenticate, list folders, and display three recent inbox messages without printing the app password. Start the server with python server.py. It communicates over stdio, so launch it from an MCP client rather than treating it as an interactive standalone program.

The documented client setup uses absolute paths to the virtual-environment Python executable and server.py. The README provides registration instructions for Claude Desktop and Claude Code. Restart the client after changing its MCP configuration. An optional Claude Code skill documents safer usage patterns, including soft deletion by default and treating email content as untrusted.

Tools and capabilities

The yahoo-mail-mcp MCP server exposes these tools:

  • list_folders: Return all IMAP folders and special-use markers.
  • create_folder: Create a folder when it does not already exist.
  • list_emails: List recent messages in newest-first order, optionally limited to unread mail.
  • search_emails: Apply combined sender, subject, date, and unread filters within a folder.
  • read_email: Return full headers, body content, and attachment filenames.
  • get_attachment: Return one attachment's raw contents as base64.
  • move_email: Move one message from a source folder to a destination folder.
  • delete_email: Move one message to Trash or permanently expunge it when explicitly requested.
  • mark_email: Set or remove the IMAP \\Seen flag.

These tools support tasks such as finding unread mail, reviewing a contract message, creating a receipts folder, moving an invoice, or retrieving an attachment. The server is independent and unofficial; it is not affiliated with Yahoo or Anthropic, and its use remains subject to Yahoo's terms.

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 Yahoo Mail MCP

yahoo-mail-mcp is an MCP server that connects AI clients to Yahoo Mail over IMAP using a Yahoo App Password. Its main tools list, search, read, move, delete, and mark messages, while also supporting folder management and base64-encoded attachment retrieval. It does not require Yahoo API keys or OAuth.

Install Python 3.10 or newer, create a virtual environment, and run `pip install -r requirements.txt`. Configure `YAHOO_EMAIL` and `YAHOO_APP_PASSWORD`, then start the server with `python server.py`. The README also provides a connectivity test and MCP registration examples.

It authenticates over IMAP with a Yahoo email address and Yahoo App Password. Generate the app password from Yahoo Account Security, then provide it through the environment or a `.env` file. The server does not use Yahoo API keys or OAuth.

It can permanently delete one message only when `permanent=true` is explicitly passed. Normal deletion moves the selected message to the Trash folder discovered through IMAP special-use flags. The tools do not delete or expunge an entire folder.

Yes, it works with Claude Desktop over MCP stdio. Register the virtual-environment Python executable and `server.py` using absolute paths, provide the Yahoo credentials in the configuration or `.env`, and restart Claude Desktop after saving the change.

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 PreviewYahoo Mail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/yahoo-mail-mcp?style=directory)](https://allmcps.com/mcp/yahoo-mail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/yahoo-mail-mcp"><img src="https://allmcps.com/api/badge/yahoo-mail-mcp?style=directory" alt="Yahoo Mail MCP on AllMCPs" /></a>