Skip to main content
Glama
zoho-mail-mcp
by SirGreed808

zoho-mail-mcp

Zoho Mail用のModel Context Protocolサーバーです。ブラウザ自動化なしで、Claude(または任意のMCPクライアント)がZoho Mailアカウントからメールを読み取り、検索し、送信できるようにします。

公式のMCPレジストリには同等のものが存在しないため、このサーバーがそのギャップを埋めます。

ツール

ツール

説明

list_inbox

最近の受信トレイメッセージをリスト表示 — 送信者、件名、日付、messageId、folderIdを返します

search_emails

キーワード、送信者のメールアドレス、または件名の一部で検索します

read_email

messageIdとfolderIdを指定してメール本文を全文読み取ります

send_email

設定された送信元アドレスからメールを送信します

Related MCP server: email

前提条件

セットアップ

1. Zoho OAuthアプリの作成

  1. Zoho APIコンソールにアクセスします

  2. Self Clientアプリケーションを作成します

  3. Generate Codeで、以下のスコープを追加します:

    ZohoMail.messages.READ,ZohoMail.messages.CREATE,ZohoMail.folders.READ,ZohoMail.accounts.READ
  4. 有効期限を10分に設定し、説明を入力してCreateをクリックします

  5. 生成されたclient_id、client_secret、およびcode(認可コード)をコピーします

2. 認可コードをリフレッシュトークンと交換する

すぐに実行してください(認可コードは10分で期限切れになります):

curl -X POST https://accounts.zoho.com/oauth/v2/token \
  -d "grant_type=authorization_code" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET" \
  -d "code=YOUR_GRANT_CODE"

レスポンスからrefresh_tokenを保存してください。これは期限切れになりません。

3. アカウントIDを取得する

curl -X GET https://mail.zoho.com/api/accounts \
  -H "Authorization: Zoho-oauthtoken YOUR_ACCESS_TOKEN"

data[]内の最初のオブジェクトにあるaccountIdの値を使用してください。

4. インストール

git clone https://github.com/SirGreed808/zoho-mail-mcp
cd zoho-mail-mcp
npm install

5. Claude Codeに追加する

claude mcp add --scope user \
  -e "ZOHO_CLIENT_ID=..." \
  -e "ZOHO_CLIENT_SECRET=..." \
  -e "ZOHO_REFRESH_TOKEN=..." \
  -e "ZOHO_ACCOUNT_ID=..." \
  -e "ZOHO_SENDER=you@yourdomain.com" \
  zoho-mail -- node /absolute/path/to/zoho-mail-mcp/index.js

ZOHO_SENDERは、アカウントで確認済みのメールアドレスまたはエイリアスである必要があります。

環境変数

変数

説明

ZOHO_CLIENT_ID

OAuthアプリのクライアントID

ZOHO_CLIENT_SECRET

OAuthアプリのクライアントシークレット

ZOHO_REFRESH_TOKEN

長期間有効なリフレッシュトークン(ステップ2で取得)

ZOHO_ACCOUNT_ID

Zoho MailアカウントID(ステップ3で取得)

ZOHO_SENDER

送信元メールアドレス

注意事項

  • アクセストークンは自動的に更新されるため、手動での操作は不要です

  • read_emailにはmessageIdとfolderIdの両方が必要です。これらはlist_inboxおよびsearch_emailsによって返されます

  • REST APIのみを使用しており、IMAP/SMTPは使用していません

ライセンス

MIT

Available Tools

4 tools
list_inboxB

List recent inbox messages — returns sender, subject, date, messageId, and folderId

Inputs: count.

read_emailA

Read the full body of an email given its messageId and folderId (both returned by list_inbox and search_emails)

Inputs: messageId (required), folderId (required).

search_emailsA

Search inbox by keyword, sender email, or subject fragment — returns messageId and folderId for use with read_email

Inputs: query (required), count.

send_emailC

Send an email from the configured ZOHO_SENDER address

Inputs: to (required), subject (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: list_inbox retrieves inbox metadata, read_email accesses full email content, search_emails finds specific emails, and send_email handles outgoing messages. The descriptions clearly differentiate their functions, making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (list_inbox, read_email, search_emails, send_email) with snake_case throughout. The naming is predictable and readable, adhering to a uniform convention across the set.

    Tool Count5/5

    With 4 tools, this server is well-scoped for email management, covering core workflows: listing, reading, searching, and sending emails. Each tool earns its place without feeling thin or bloated, fitting typical email interaction needs.

    Completeness4/5

    The tool set provides strong coverage for basic email operations, including CRUD-like actions (list, read, send) and search functionality. A minor gap exists in lacking update/delete operations for emails (e.g., marking as read or moving to folders), but agents can work around this for most use cases.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that enables Claude Desktop to manage emails via SMTP and IMAP. Send emails, fetch unread messages, and create draft replies directly from conversations.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects AI assistants to Zoho Mail, enabling reading, searching, sending, scheduling, organizing, and downloading emails through the official Zoho Mail REST API.
      MIT