Yahoo Mail MCP Server
Yahoo Mail MCPサーバー
LLMがYahooメールとやり取りできるようにするModel Context Protocol (MCP) サーバーです。このサーバーを使用すると、Claude Desktopなどのツールから、安全なOAuth2認証を介してYahooアカウントのメールを直接読み取り、検索、送信できるようになります。
機能(予定)
メールの読み取り: 受信トレイから最近のメッセージを取得します。
メールの検索: キーワード、送信者、日付を使用して特定のメッセージを検索します。
メールの送信: YahooのSMTPサーバーを使用してメールを作成・送信します。
Related MCP server: Gmail MCP Server
前提条件
Node.js: バージョン20以上。
Yahoo Developer App: Yahoo Developer Portalでアプリを作成し、OAuth2認証情報を取得する必要があります。
OAuth2用Yahooアプリの作成
Yahoo Developer Portalにアクセスします。
新しいアプリを作成します。
API Permissionsで
Mail(読み取りおよび書き込み)を有効にします。Redirect URIを
https://localhost/callback(または任意のURI)に設定します。Client IDとClient Secretを控えておきます。
セットアップ
リポジトリのクローン:
git clone <repository-url> cd yahoo-mail-mcp依存関係のインストール:
npm install環境変数の設定: ルートディレクトリに
.envファイルを作成し、Yahooの認証情報を追加します:YAHOO_EMAIL=your-email@yahoo.com YAHOO_CLIENT_ID=your-client-id YAHOO_CLIENT_SECRET=your-client-secret YAHOO_REDIRECT_URI=https://localhost/callback
認証
サーバーを初めて実行すると、OAuth2フローが開始されます:
ブラウザウィンドウが開き、Yahooへのログインを求められます。
承認後、
REDIRECT_URIにリダイレクトされます。ページは読み込みに失敗する可能性がありますが、問題ありません。アドレスバーから
codeパラメータをコピーしてください。コピーしたコードをターミナルに貼り付けます。
サーバーがコードをトークンと交換し、
.tokens.jsonに安全に保存します。
使用方法
開発
vite-nodeを使用して開発モードでサーバーを実行するには:
npm run devビルド
本番環境用にプロジェクトをビルドするには:
npm run buildClaude Desktopとの統合
このサーバーをClaude Desktopで使用するには、claude_desktop_config.jsonに追加します:
{
"mcpServers": {
"yahoo-mail": {
"command": "node",
"args": ["/path/to/yahoo-mail-mcp/dist/index.js"]
}
}
}プロジェクト構造
src/index.ts: MCPサーバーのエントリーポイント。src/server.ts: MCPサーバーの初期化とツールの登録。src/auth/: OAuth2フローとトークン管理。src/tools/: 個別のメールツールの実装。src/lib/: IMAPおよびSMTP接続用のヘルパーライブラリ。
ライセンス
ISC
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Task-scoped email inboxes for AI agents: read mail, extract verification codes, and reply.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search and retrieve emails from Yahoo accounts using keywords, folder, date range, and attachment filters.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to send, search, and read emails via Gmail using OAuth2 authentication.1MIT
- FlicenseAqualityDmaintenanceEnables users to manage their Yahoo Mail account through natural language, including listing, reading, searching, deleting, archiving, flagging, and moving emails via IMAP. Supports both local Claude Desktop integration and remote access with secure OAuth 2.0 authentication.11-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, search, organize, and clean up Yahoo Mail emails over IMAP without Yahoo API keys.1MIT