yahoo-mail-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
yahoo-mail-mcp
Read and organize Yahoo Mail, save drafts, and send replies over IMAP and SMTP. The same mail service powers a local stdio MCP server, an authenticated Streamable HTTP server, and the yahoo-mail-cli command.
Set up a Yahoo App Password
Sign in to Yahoo Account Security.
Under External connections, choose Create app password, name the app, and generate the password. Yahoo's app password instructions
Copy .env.example to
.env. SetYAHOO_EMAILto your full Yahoo address andYAHOO_APP_PASSWORDto the generated password. Keep.envprivate.
Yahoo controls app password availability by account. If the option is missing, see Yahoo's app password help.
Related MCP server: yahoo-mail-mcp-server
Quickstart
Install Node.js 20.19 or later, then run these commands from the checkout.
npm install
npm run build
npm link
yahoo-mail-cli doctornpm link adds both commands to the npm bin directory. You can also run node dist/cli.js doctor directly. doctor checks both IMAP and SMTP.
The server and CLI load .env from the working directory when the process environment supplies none of YAHOO_EMAIL, YAHOO_APP_PASSWORD, or YAHOO_MCP_AUTH_TOKEN. Use --env-file /absolute/path/to/.env or YAHOO_ENV_FILE to choose a file explicitly. Inherited environment values take precedence over values in the file.
The rolling latest release tracks master and provides a prebuilt npm tarball (npm install -g ./yahoo-mail-mcp-<version>.tgz), ZIP and tar.gz skill archives, and SHA256SUMS.txt. Version tags such as v0.1.0 have their own GitHub releases. Rolling GitHub release
For Docker, pull ghcr.io/auda29/yahoo-mail-mcp:latest for the rolling master build on Linux amd64 or arm64. Versioned builds use tags such as :0.1.0 or :0.1.0-rc.1. Docker setup examples
Permission modes
Set YAHOO_MAIL_MODE or pass --mode to either executable.
Mode | Allowed actions |
| Verify credentials, list folders, search, read messages and threads, and download attachments. |
| Everything above, plus draft messages and replies, mark messages, and move messages to folders outside Trash. |
| Everything above, plus send email or replies, move messages to Trash, and delete messages. |
Replies default to drafts in both write-capable modes. Deletion in full mode moves messages to Trash unless you explicitly request permanent deletion.
MCP tools
Launch a stdio server with node dist/index.js --env-file /absolute/path/to/.env. Its stdout carries the MCP protocol. The yahoo-mail://status resource reports the mode, credential availability, server hosts, and size limits.
Tool | Minimum mode | What it does |
|
| Check IMAP and SMTP and report the active mode. |
|
| List folder paths and optional counts. |
|
| Search a folder and page through matching message summaries. |
|
| Get a message by folder and UID without marking it as read. |
|
| Find related messages and optionally search Sent. |
|
| Save an attachment in the server's |
|
| Save a message in Drafts. |
|
| Set read and starred flags. |
|
| Move UIDs to another folder. Moving to Trash requires full mode. |
|
| Draft a threaded reply. Full mode also permits |
|
| Move messages to Trash or permanently expunge them with |
|
| Send a message immediately. |
Message reads and attachment downloads check the raw message size before retrieving the body. The limit is at least 15 MiB and grows with YAHOO_MAX_ATTACHMENT_BYTES to allow for Base64 encoding, line breaks, and 1 MiB of message overhead. Thread reads share the same limit across the selected message and its replies. They skip candidates that exceed the remaining budget.
Streamable HTTP
Set YAHOO_MCP_AUTH_TOKEN to a random token with at least 16 characters, then run node dist/index.js --transport http. The default URL is http://127.0.0.1:3333/mcp. Clients supply Authorization: Bearer <token> on every MCP POST request. The server validates loopback Host headers, limits JSON requests to 4 MiB, and serves a credential-free GET /health.
The server accepts native clients that omit the Origin header. To allow browser requests, set YAHOO_MCP_ALLOWED_ORIGINS to a comma-separated list such as https://client.example.org,http://localhost:5173. With an empty list, a loopback listener accepts http://localhost, http://127.0.0.1, and http://[::1] with optional ports. On a non-loopback listener, including Docker's 0.0.0.0, every supplied origin requires an explicit allowlist entry.
The stateless MCP endpoint accepts POST requests and browser OPTIONS preflights at /mcp. For remote access, put it behind an HTTPS reverse proxy or private tunnel so the token and mailbox data travel over an encrypted connection. HTTP attachment downloads use the server's YAHOO_ATTACHMENT_DIR. Use a dedicated private directory whose parent directories untrusted local processes cannot replace. Set returnBase64: true to return up to 2 MiB of encoded data.
CLI and agent skill
yahoo-mail-cli folders --counts
yahoo-mail-cli search --folder INBOX --subject "Invoice" --unseen --limit 10
yahoo-mail-cli read 123 --folder INBOX
yahoo-mail-cli --mode draft-only reply 123 --text "Thanks for the update."Commands write JSON to stdout and diagnostics to stderr. The local CLI accepts an explicit attachment --out-dir DIR override. Use yahoo-mail-cli --help or the CLI command reference for all options.
Copy the entire skills/yahoo-mail directory to a skill directory supported by your agent. The skill uses MCP first and falls back to the CLI. See the environment setup examples for client configurations, skill destinations, and Docker commands.
Created in T3 Code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
- MyAgentMailDeprecatedcom.myagentmail
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes for AI agents: read, search, reply, send, bulk send and read attachments.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to read, search, and send emails through Yahoo Mail using secure OAuth2 authentication.ISC
- AlicenseBqualityCmaintenanceEnables Claude Desktop or Claude Code to access a Yahoo Mail account over IMAP/SMTP, supporting listing, searching, reading, and sending emails through natural language.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, search, send, and manage emails via IMAP/SMTP with OAuth 2.1 authentication, supporting folders, drafts, replies, and forwarding.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, search, send, and organize email over IMAP and SMTP for providers such as Gmail, Yahoo, iCloud, Zoho, Fastmail, and custom domains, with tools for attachments, drafts, templates, scheduling, and safe mailbox management.46 npmMIT