yahoo-mail-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yahoo-mail-mcpShow me my unread emails from the last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yahoo-mail-mcp
Read, search, organize, and clean up a Yahoo Mail account from Claude — over plain IMAP, no Yahoo API keys required.
An MCP (Model Context Protocol) server that lets an LLM read, search, move, and delete emails in a Yahoo Mail account over IMAP.
Tools exposed: list_folders, create_folder, list_emails, search_emails,
read_email, get_attachment, move_email, delete_email, mark_email.
Every tool opens a short-lived IMAP connection, does its work, and closes it.
Deletion defaults to moving messages to Trash (found via IMAP special-use
flags, not a hardcoded name) — permanent deletion requires the caller to
explicitly pass permanent=True. No tool can delete or expunge an entire
folder; only single messages by UID.
1. Enable IMAP on your Yahoo account
IMAP access is on by default for most Yahoo Mail accounts. If mail clients can't connect, check: Yahoo Mail → Settings → More Settings → Mailboxes → [your account] → "Allow apps that use less secure sign in" is not the setting you want here — that's for legacy password auth. Modern Yahoo requires an App Password instead (see below), which works whether or not that legacy toggle is on. If you still see connection issues, sign in to Yahoo Account Security and confirm the account isn't locked or flagged for suspicious activity.
Related MCP server: IMAP MCP Server
2. Generate a Yahoo App Password
Yahoo blocks IMAP logins using your normal account password once two-step verification is enabled (and recommends app passwords generally). To generate one:
Turn on Two-step verification if it isn't already on (required for app passwords).
Find "Generate app password" (sometimes under "App passwords" / "Manage app passwords").
Choose "Other app", name it something like
yahoo-mail-mcp, and generate.Copy the generated password (usually 16 characters, no spaces) — Yahoo only shows it once.
Use this app password as YAHOO_APP_PASSWORD, never your real account
password.
3. Install dependencies
Requires Python 3.10+.
cd yahoo-mail-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt4. Configure credentials
cp .env.example .envEdit .env and fill in:
YAHOO_EMAIL=you@yahoo.com
YAHOO_APP_PASSWORD=your16charapppassword.env is already in .gitignore — never commit it.
5. Sanity-check connectivity
Before wiring the server into Claude, confirm your credentials work:
python test_connection.pyThis logs in, lists your folders, and prints the 3 most recent inbox emails. It never prints your app password.
6. Run the server
python server.pyThe server speaks MCP over stdio — it's meant to be launched by an MCP client (Claude Desktop, Claude Code), not run standalone for interactive use.
7. Register with Claude Desktop / Claude Code
Add an entry to your MCP config pointing at this project's venv Python and
server.py. Use absolute paths.
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS):
{
"mcpServers": {
"yahoo-mail": {
"command": "/absolute/path/to/yahoo-mail-mcp/.venv/bin/python",
"args": ["/absolute/path/to/yahoo-mail-mcp/server.py"],
"env": {
"YAHOO_EMAIL": "you@yahoo.com",
"YAHOO_APP_PASSWORD": "your16charapppassword"
}
}
}
}Claude Code — add the same server via the CLI:
claude mcp add yahoo-mail /absolute/path/to/yahoo-mail-mcp/.venv/bin/python /absolute/path/to/yahoo-mail-mcp/server.pyor add it directly to your Claude Code MCP config file with the same JSON shape as above.
If you'd rather not put the app password in the MCP config's env block,
omit env there and rely on .env next to server.py instead — the server
loads it automatically via python-dotenv.
Restart Claude Desktop / Claude Code after editing the config so it picks up the new server.
Usage
Once registered, just talk to Claude naturally — it will pick the right tool automatically. For example:
"List my unread emails"
"Search for emails from newsletter@example.com since 2026-01-01"
"Read that email from Sarah about the contract"
"Download the attachment from that invoice email"
"Create a folder called Receipts"
"Move this email to the Receipts folder"
"Move this email to trash" / "Permanently delete this spam email"
"Mark that email as read" / "Mark it as unread"
"What folders do I have in this mailbox?"
Tool reference
Tool | Purpose | Key parameters |
| List every IMAP folder/label, with special-use flags | (none) |
| Create a folder if it doesn't already exist (idempotent) |
|
| List recent emails in a folder, newest first |
|
| Search a folder by sender/subject/date range/unread, AND-combined |
|
| Fetch full headers + body (plain text, or HTML stripped) + attachment filenames |
|
| Fetch one attachment's raw bytes, base64-encoded |
|
| Move a single message between folders by UID |
|
| Delete a message — soft-delete (Trash) by default |
|
| Set/unset the read ( |
|
Notes on safety behavior
delete_email(permanent=False)(the default) moves the message to Trash and is recoverable.permanent=Trueimmediately expunges it — the caller must opt in explicitly.move_emailanddelete_emailfetch the message's envelope first to confirm it exists, and return its subject/sender in the result so you can verify the right email was touched.All operations address messages by IMAP UID, which stays valid across sessions (never sequence numbers, which can shift).
IMAP errors are returned to the caller as structured
{"error": ..., "error_type": ...}dicts rather than raw exceptions/stack traces.
Disclaimer
This is an independent, unofficial project. It is not affiliated with, endorsed by, or sponsored by Yahoo, Oath/Verizon Media, or Anthropic. It communicates with Yahoo Mail using the standard IMAP protocol and an account-scoped App Password — no Yahoo API keys or OAuth are involved. Use of this tool is subject to Yahoo's own Terms of Service. Provided as-is, with no warranty — see LICENSE.
Contributing
Issues and pull requests are welcome — see CONTRIBUTING.md.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Stateful email for AI agents — read inboxes, reply in-thread, draft with approval.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to read, search, and send emails through Yahoo Mail using secure OAuth2 authentication.-
- AlicenseAqualityAmaintenanceEnables Claude to interact with email accounts via IMAP and SMTP, providing tools for searching, reading, sending, and managing emails across multiple providers.4060490MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read, search, send, and manage emails across multiple IMAP/SMTP accounts via a single deployment.-
- FlicenseNot gradedqualityBmaintenanceEnables Claude to read, search, draft, send, flag, and move email across multiple IMAP/SMTP mailboxes while keeping credentials local.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andesstriker/yahoo-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server