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-mcpsearch my inbox for recent receipts"
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
A Model Context Protocol (MCP) server for Yahoo Mail over IMAP + SMTP. Gives AI assistants full email management — list, read, search, thread, flag, move, delete/trash, archive, folders, attachments, and send/reply/forward/draft — using your Yahoo app-specific password.
Built with the official MCP SDK, imapflow, mailparser, nodemailer, and
zod. TypeScript, MIT licensed.
Features (24 tools)
Read
list_folders– list all IMAP folders with special-use typelist_emails– paginated listing with UID, flags, attachment metadataread_email– full text/html body, headers, attachment metadatasearch_emails– filter by subject/sender, date range, unread/flaggedget_thread– reconstruct a conversation via In-Reply-To referencesget_email_stats– per-folder message and unread countsextract_contacts– most frequent senders from recent mailextract_calendar– parse ICS calendar attachments
Manage
mark_read/mark_unreadflag_emails/unflag_emailsmove_emails/delete_emails(to Trash) /archive_emailscreate_folder/rename_folder
Attachments
list_attachments– metadata only (no body download)get_attachment– single attachment as base64 (max 5 MB)
Send (SMTP)
send_emailreply_email– sets In-Reply-To / Referencesforward_email– quotes the original messagesave_draft/send_draft
Related MCP server: Yahoo Mail MCP Server
Requirements
Node.js >= 18
A Yahoo Mail account with 2-step verification enabled and an app-specific password. Generate it at Yahoo Account Security -> Manage app passwords (16 chars, no spaces).
Setup
cp .env.example .env
# edit .env: set YAHOO_EMAIL and YAHOO_APP_PASSWORD
npm install
npm run buildOptional overrides: YAHOO_IMAP_HOST, YAHOO_IMAP_PORT, YAHOO_SMTP_HOST,
YAHOO_SMTP_PORT (465 for implicit TLS), YAHOO_MCP_HOST, YAHOO_MCP_PORT,
YAHOO_MCP_TOKEN (Bearer token for remote/SSE access).
Usage
stdio (Claude Desktop / Claude Code / Cursor):
{
"mcpServers": {
"yahoo-mail": {
"command": "node",
"args": ["/absolute/path/to/yahoo-mcp/dist/index.js"],
"env": {
"YAHOO_EMAIL": "you@yahoo.com",
"YAHOO_APP_PASSWORD": "your-app-password"
}
}
}
}SSE / remote (for Claude.ai or network clients):
YAHOO_MCP_TOKEN=secret npm run start:sse
# SSE endpoint: http://127.0.0.1:3000/sseIf YAHOO_MCP_TOKEN is set, all SSE requests must include
Authorization: Bearer <token>.
Verify your credentials first
npm run check:authRead-only IMAP login check + SMTP verify() (no mail is ever sent). See
scripts/check-auth.ts.
Development
npm run dev # run src via tsx
npm run build # tsc -> dist
npm run typecheck # tsc --noEmit
npm test # vitest
npm run smoke # end-to-end: boot server, list tools, list foldersLayout
src/
index.ts # MCP server: stdio + optional --sse transport
config.ts # zod-validated environment config
loadEnv.ts # loads .env then .secrets.env (no dotenv dependency)
tools.ts # 24 tool definitions (zod input schemas)
mail/
imap.ts # IMAP service (imapflow, single shared connection)
smtp.ts # SMTP service (nodemailer: send/reply/forward/draft)
types.ts # shared types
scripts/
check-auth.ts # feasibility/auth verification
smoke.ts # MCP end-to-end smoke test
push-all.sh # push to public + private remotes (see SECURITY.md)
test/ # vitest testsDesign notes (Yahoo realities)
Yahoo does not advertise
IDLE,MOVE,UIDPLUS, orSPECIAL-USE.imapflowtransparently emulates MOVE (COPY + delete + EXPUNGE) and special-use is resolved by folder name, so all tools work unchanged.No IMAP IDLE watcher, OAuth, or CalDAV/CardDAV: Yahoo doesn't support them, and app passwords avoid OAuth entirely.
One shared IMAP connection with per-mailbox locks respects Yahoo's limit of ~5 concurrent connections per IP.
Security
Credentials are read from local
.env/.secrets.envfiles that are never committed. The public repository contains zero secrets.Delete is a soft delete (move to Trash); nothing is permanently expunged.
License
MIT. See LICENSE.
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 Servers
- Flicense-qualityDmaintenanceAn MCP server that enables AI models to read, search, and send emails via IMAP and SMTP protocols. It supports various providers like Gmail and Outlook, allowing for tasks such as retrieving unread messages, searching by sender, and managing mailbox folders.
- Flicense-qualityDmaintenanceEnables LLMs to read, search, and send emails through Yahoo Mail using secure OAuth2 authentication.
- AlicenseAqualityDmaintenanceProvider-agnostic email MCP server that connects any IMAP mailbox to AI assistants, enabling email management through natural language.8AGPL 3.0
- Alicense-qualityBmaintenanceEnables reading, searching, composing, and managing Yahoo Mail emails via IMAP with OAuth support for both local and remote MCP clients.65ISC
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
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/th-an/yahoo-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server