Yahoo Mail MCP Server
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 MCP Servershow my last 5 emails"
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 Server
A Model Context Protocol (MCP) server that enables LLMs to interact with Yahoo Mail. This server allows tools like Gemini CLI or Claude Desktop to read, search, and send emails directly through your Yahoo account.
Features
Read Emails: Fetch recent messages from your inbox.
Search Emails: Search for specific messages using keywords, senders, or dates.
Send Emails: Compose and send emails using Yahoo's SMTP servers.
Production Ready: Includes Docker support, structured logging, environment validation, and automated tests.
Prerequisites
Node.js: Version 20 or higher (or Docker).
Yahoo App Password: For security and ease of use, this server uses Yahoo App Passwords instead of traditional OAuth2 for personal integrations.
Generating a Yahoo App Password
Go to your Yahoo Account Security page.
Select Generate app password.
Choose Other App and name it "Gemini CLI" (or any name you prefer).
Copy the 16-character password provided.
Setup
Local Development
Clone the repository:
git clone <repository-url> cd yahoo-mail-mcpInstall dependencies:
npm installConfigure Environment Variables: Create a
.envfile in the root directory:YAHOO_EMAIL=your-email@yahoo.com YAHOO_APP_PASSWORD=your-16-character-app-password LOG_LEVEL=infoBuild the project:
npm run build
Docker Setup (Recommended for Production)
Build and run the server using Docker to ensure a consistent environment:
Build the image:
docker build -t yahoo-mail-mcp .Run the container (for testing build):
docker run --env-file .env yahoo-mail-mcp
Development Commands
npm run dev: Start the server in development mode.npm run lint: Lint the codebase using ESLint.npm run format: Format the codebase using Prettier.npm run test: Run the test suite using Vitest.npm run build: Build the project for production.
Integration with Gemini CLI
1. Register the Server (Local)
gemini mcp add yahoo-mail node $(pwd)/dist/index.js2. Register the Server (Docker)
gemini mcp add yahoo-mail-docker docker -- run -i --rm --env-file $(pwd)/.env yahoo-mail-mcpExample Usage
Once registered, you can use natural language to interact with your mail.
Reading Emails
You: "Show me my 5 most recent emails from Yahoo."
Searching Emails
You: "Find any emails from 'Amazon' about my recent order."
Sending Emails
You: "Send an email to @yahoo.com with the subject 'Hello' and the body 'Checking in from my CLI!'"
Project Structure
src/index.ts: Entry point for the MCP server.src/server.ts: MCP server initialization and tool registration.src/tools/: Implementation ofread_emails,search_emails, andsend_email.src/lib/:imap.ts: IMAP connection helper.smtp.ts: SMTP connection helper.logger.ts: Winston-based structured logging.config.ts: Zod-based environment validation.
License
ISC
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/doohinkus/gemini-yahoo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server