← 返回
沟通协作 Key

Agentmail

Give the agent its own dedicated email inbox via AgentMail. Send, receive, and manage email autonomously using agent-owned email addresses (e.g. hermes-agent...
通过AgentMail为智能体提供专属邮箱,使用智能体自有地址(如hermes-agent...)自主收发和管理邮件。
agungprabowo123
沟通协作 clawhub v0.1.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 637
下载
💾 40
安装
1
版本
#latest

概述

AgentMail — Agent-Owned Email Inboxes

Requirements

  • AgentMail API key (required) — sign up at https://console.agentmail.to (free tier: 3 inboxes, 3,000 emails/month; paid plans from $20/mo)
  • Node.js 18+ (for the MCP server)

When to Use

Use this skill when you need to:

  • Give the agent its own dedicated email address
  • Send emails autonomously on behalf of the agent
  • Receive and read incoming emails
  • Manage email threads and conversations
  • Sign up for services or authenticate via email
  • Communicate with other agents or humans via email

This is NOT for reading the user's personal email (use himalaya or Gmail for that).

AgentMail gives the agent its own identity and inbox.

Setup

1. Get an API Key

  • Go to https://console.agentmail.to
  • Create an account and generate an API key (starts with am_)

2. Configure MCP Server

Add to ~/.hermes/config.yaml (paste your actual key — MCP env vars are not expanded from .env):

mcp_servers:
  agentmail:
    command: "npx"
    args: ["-y", "agentmail-mcp"]
    env:
      AGENTMAIL_API_KEY: "am_your_key_here"

3. Restart Hermes

hermes

All 11 AgentMail tools are now available automatically.

Available Tools (via MCP)

ToolDescription
-------------------
list_inboxesList all agent inboxes
get_inboxGet details of a specific inbox
create_inboxCreate a new inbox (gets a real email address)
delete_inboxDelete an inbox
list_threadsList email threads in an inbox
get_threadGet a specific email thread
send_messageSend a new email
reply_to_messageReply to an existing email
forward_messageForward an email
update_messageUpdate message labels/status
get_attachmentDownload an email attachment

Procedure

Create an inbox and send an email

  1. Create a dedicated inbox:
    • Use create_inbox with a username (e.g. hermes-agent)
    • The agent gets address: hermes-agent@agentmail.to
  2. Send an email:
    • Use send_message with inbox_id, to, subject, text
  3. Check for replies:
    • Use list_threads to see incoming conversations
    • Use get_thread to read a specific thread

Check incoming email

  1. Use list_inboxes to find your inbox ID
  2. Use list_threads with the inbox ID to see conversations
  3. Use get_thread to read a thread and its messages

Reply to an email

  1. Get the thread with get_thread
  2. Use reply_to_message with the message ID and your reply text

Example Workflows

Sign up for a service:

1. create_inbox (username: "signup-bot")
2. Use the inbox address to register on the service
3. list_threads to check for verification email
4. get_thread to read the verification code

Agent-to-human outreach:

1. create_inbox (username: "hermes-outreach")
2. send_message (to: user@example.com, subject: "Hello", text: "...")
3. list_threads to check for replies

Pitfalls

  • Free tier limited to 3 inboxes and 3,000 emails/month
  • Emails come from @agentmail.to domain on free tier (custom domains on paid plans)
  • Node.js (18+) is required for the MCP server (npx -y agentmail-mcp)
  • The mcp Python package must be installed: pip install mcp
  • Real-time inbound email (webhooks) requires a public server — use list_threads polling via cronjob instead for personal use

Verification

After setup, test with:

hermes --toolsets mcp -q "Create an AgentMail inbox called test-agent and tell me its email address"

You should see the new inbox address returned.

References

  • AgentMail docs: https://docs.agentmail.to/
  • AgentMail console: https://console.agentmail.to
  • AgentMail MCP repo: https://github.com/agentmail-to/agentmail-mcp
  • Pricing: https://www.agentmail.to/pricing

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-19 15:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,385
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,577
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,670