Skip to main content
Glama
yentsun

yt-zoho-mcp

by yentsun

yt-zoho-mcp

Zoho Mail 用の MCP サーバー — フォルダーをまたいでメッセージの検索、読み取り、送信、管理を行います。

npm

Model Context Protocol 仕様を実装しています。stdio トランスポート上で動作し、JSON-RPC 2.0 を使用し、initialize でプロトコルバージョンをネゴシエートし、tools 機能をアドバタイズし、各ツールを JSON Schema で記述します。プロトコルバージョンのネゴシエーションは @modelcontextprotocol/sdk の Server クラスによって処理され、デフォルトで最新のサポートバージョンに設定されます。

Tools

Tool

Description

list_messages

フォルダー内のメッセージを検索付きで一覧表示(デフォルト: 受信トレイ)

get_message

メッセージの本文全体を取得

send_email

メールを送信(プレーンテキストまたは HTML)

list_folders

すべてのフォルダーを一覧表示(受信トレイ、送信済み、下書き、カスタム)

trash_message

メッセージをゴミ箱に移動

Related MCP server: zoho-mail-mcp

Setup

1. Zoho Mail API クライアントを作成する

  1. Zoho API Console に移動します

  2. Self Client(またはサーバーベースのアプリ)を作成します

  3. client_id と client_secret をコピーします

  4. refresh_token を取得するために、offline スコープで OAuth トークンを生成します:

    virtualoffice.accounts.read
    virtualoffice.messages.read
    virtualoffice.messages.create
    virtualoffice.messages.update
    virtualoffice.messages.delete
  5. Get Accounts エンドポイントを使用して account_id を確認し、メールアドレス(例: you@example.com)をメモします。

2. 認証情報を配置する

パッケージをインストールすると、postinstall スクリプトによって設定ディレクトリ ~/.yt-zoho-mcp(npm パッケージ名 yt-zoho-mcp にちなんで命名)が自動的に作成されます。そこに credentials.json を配置します:

{
  "clientId": "...",
  "clientSecret": "...",
  "refreshToken": "...",
  "accountId": "...",
  "email": "you@example.com"
}

サーバーは、呼び出しのたびに refreshToken からアクセストークンを自動的に更新します(401 の場合は再更新します)。

設定

Env var

Default

Description

ZOHO_MCP_CONFIG_DIR

~/.yt-zoho-mcp

credentials.json を保持するディレクトリ

MCP ホスト設定

opencode

{
  "mcp": {
    "zoho-mail": {
      "type": "local",
      "command": ["npx", "yt-zoho-mcp"]
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "zoho-mail": {
      "command": "npx",
      "args": ["yt-zoho-mcp"]
    }
  }
}

ライセンス

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that integrates with FastMail's JMAP API to manage mailboxes, search for emails, and send messages. It enables users to interact with their FastMail account for tasks like reading email content and managing folders through natural language.
    2
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    MCP server for Zoho Mail — read, search, and send email via Claude. Supports listing inbox, searching by keyword or sender, reading full message bodies, and sending HTML email.
    4
    1
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    An MCP server that receives emails on your domain and allows AI assistants to search, read, and manage them via natural language queries.
    1,062 npm
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP server for email management that enables reading, searching, drafting, replying to, and sending emails with thread-aware replies and draft-first safety, supporting Gmail API and IMAP/SMTP backends.
    6 npm
    -