Agentmail
by @agungprabowo123
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...
clawhub install agentmail-2π About This Skill
name: agentmail description: 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.to). version: 1.0.0 metadata: hermes: tags: [email, communication, agentmail, mcp] category: email
AgentMail β Agent-Owned Email Inboxes
Requirements
When to Use
Use this skill when you need to: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
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)
| Tool | Description |
|------|-------------|
| list_inboxes | List all agent inboxes |
| get_inbox | Get details of a specific inbox |
| create_inbox | Create a new inbox (gets a real email address) |
| delete_inbox | Delete an inbox |
| list_threads | List email threads in an inbox |
| get_thread | Get a specific email thread |
| send_message | Send a new email |
| reply_to_message | Reply to an existing email |
| forward_message | Forward an email |
| update_message | Update message labels/status |
| get_attachment | Download an email attachment |
Procedure
Create an inbox and send an email
1. Create a dedicated inbox: - Usecreate_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 threadCheck incoming email
1. Uselist_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 messagesReply to an email
1. Get the thread withget_thread
2. Use reply_to_message with the message ID and your reply textExample 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
@agentmail.to domain on free tier (custom domains on paid plans)npx -y agentmail-mcp)mcp Python package must be installed: pip install mcplist_threads polling via cronjob instead for personal useVerification
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
β‘ When to Use
βοΈ Configuration
1. Get an API Key
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.