Skip to main content
Glama

AgentMail MCP 統合

AgentMailと統合されたシンプルな**モデルコンテキストプロトコル(MCP)**サーバー。ClaudeなどのAIアシスタントを介して、メール受信トレイの動的な管理、メッセージの一覧表示、メールの送信や返信などを行うことができます。このリファレンス実装は、MCPサーバー内でAgentMailのAPIを使用して、メール受信トレイをリアルタイムにオーケストレーションする方法を示しています。

エージェントメールについて

AgentMailは、APIファーストのメールプロバイダーです。AIエージェントがリアルタイムで受信トレイを作成し、メールの送受信やアクションを実行できます。メールレイヤー上には、エージェントワークフローに最適化され、LLMで処理可能なデータを提供するインテリジェンスレイヤーが構築されています。APIキーはこちらからリクエストできます。


重要な注意事項

MCPプロトコルはまだ進化しているため、このパッケージは現在開発中です。新機能が追加され次第、更新いたします。Discordに参加してコミュニティにご参加ください! Discord

特徴

  • 新しい受信トレイを動的に作成する

  • **受信トレイを一覧表示して取得し、**アクティブなものを確認します

  • AgentMailの受信トレイからメールを送信する

  • 既存のスレッド内のメッセージに返信する

  • 選択した受信トレイのスレッドとメッセージを一覧表示する

  • メッセージの添付ファイルを取得する


前提条件

  • Python 3.10以上

  • エージェントメールAPIキー

  • (オプション) Claude Desktopまたは MCP コマンドをサポートするその他のフロントエンド


インストール

このプロジェクト用のPyPiパッケージが存在します。インストール後、Claude Desktopの設定で参照(または直接実行)して、メール管理ツールを有効にできます。

PIP (ローカルまたはPyPI)

独自の Python 環境を維持する場合は、仮想環境 (PyPI またはローカル ソース) からパッケージをインストールするだけです。

pip install agentmail-mcp

次に以下を実行します:

agentmail-mcp --api-key="YOUR_AGENTMAIL_API_KEY"

これにより、ローカル マシン上でサーバーが実行されます。

オプション1: Claude Desktopを使用する

Claude Desktop からサーバーと対話する場合は、次の手順に従ってください。

  1. 仮想環境をアクティブ化します。

source .venv/bin/activate
  1. 以下の行を実行すると、Agentmail MCP サーバーパッケージの場所を確認できます。agentmail-mcp パッケージを仮想環境にインストールした場合、.venv/bin/ ディレクトリ内に存在するはずです。Claude Desktop の場合は、仮想環境にインストールすることが重要です。

which agentmail-mcp
  1. 返されたパスをコピーします。

  2. claude_desktop_config.jsonファイルのcommandフィールドにパスを貼り付けます。

  3. Claude Desktop を再起動します。

claude_desktop_config.jsonファイルは次のようになります。

{
  "mcpServers": {
    "agentmail-mcp": {
      "command": "/path/to/agentmail-mcp",
      "args": ["--api-key", "{AGENT_MAIL_API_KEY}"]
    }
  }
}

claude_desktop_config.jsonファイルがない場合は、次のディレクトリに作成します。

macOSでは、設定ファイルは通常次の場所にあります: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows では通常、次の場所にあります: %APPDATA%/Claude/claude_desktop_config.json

保存後、Claude Desktop を再起動して新しい MCP サーバーをロードします。

使用法

Claude Desktop(または他のMCPクライアント)でサーバーを実行している場合、AgentMail MCPツールにマッピングされた自然言語コマンドを使用してClaudeに指示を出すことができます。例:•「demoという名前の新しい受信トレイを作成してください。」•「すべての受信トレイを一覧表示してください。」•「受信トレイtest@agentmail.toからtest@example.comに、件名を「Hello」、本文にサンフランシスコの過去1週間の天気を記載したメールを送信してください。」•「受信トレイabc123の最新のメッセージに返信してください。」

内部的には、Claude は公開された MCP ツール (create_inbox、list_inboxes、send_message など) を呼び出し、これらのツールが AgentMail API を呼び出します。

ライセンス

ライセンス

MITライセンス - このプロジェクトはMITライセンスに基づいて配布されています。自己責任でご利用ください。

-
license - not tested
C
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    F
    maintenance
    Provides an interface to manage email marketing, contact lists, dynamic templates, and email analytics via SendGrid's API.
    21
    1,305
    29
    ISC
  • F
    license
    D
    quality
    C
    maintenance
    An MCP-based email tool that enables AI models to access email services through standardized interfaces, allowing AI assistants to perform various email operations like sending emails, reading inboxes, and handling attachments.
    17
    48
  • A
    license
    A
    quality
    D
    maintenance
    A server that enables AI assistants to interact with the Omnisend marketing platform, supporting contact management, product management, and event tracking operations through natural language.
    17
    1
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Email for AI agents — send, receive as a webhook, manage domains, templates, routing.

  • Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

  • Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

View all MCP Connectors

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/agentmail-to/agentmail-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server