agentmail-mcp-cli
БесплатноБез исполняемых скриптовНе проверенManage AI agent email accounts via AgentMail API. Create inboxes, send/receive/reply to emails, manage threads and attachments. Use for "email", "agentmail"…
от modbender★ 21 звезда на GitHubОб этом скилле
AgentMail MCP CLI
Email management for AI agents via the AgentMail API.
Documentation: https://docs.agentmail.to Get API Key: https://agentmail.to
Prerequisites
Required:
- Node.js >= 20.0.0
- AgentMail API key from agentmail.to
Installation:
npm install -g openclaw-agentmail-cli
This installs the agentmail command globally.
Authentication
Set your API key (get one from agentmail.to):
# Option 1: Environment variable (recommended)
export AGENTMAIL_API_KEY="your_api_key"
agentmail inboxes list
# Option 2: CLI parameter
agentmail --api-key "your_api_key" inboxes list
Quick Reference
Inbox Management
# List all inboxes
agentmail inboxes list
# List with limit
agentmail inboxes list --limit 5
# Create a new inbox
agentmail inboxes create --display-name "My Agent"
# Create with username and domain
agentmail inboxes create --username myagent --domain agentmail.to --display-name "My Agent"
# Get inbox details
agentmail inboxes get <inbox-id>
# Delete an inbox (destructive!)
agentmail inboxes delete <inbox-id>
Thread Management
# List threads in inbox
agentmail threads list <inbox-id>
# List with options
agentmail threads list <inbox-id> --limit 10
# Filter by labels
agentmail threads list <inbox-id> --labels '["unread"]'
# Filter by date
agentmail threads list <inbox-id> --after "2024-01-01" --before "2024-12-31"
# Get thread details (includes all messages)
agentmail threads get <inbox-id> <thread-id>
Send Messages
# Send a simple email
agentmail messages send <inbox-id> \
--to [email protected] \
--subject "Hello" \
--text "Email body here"
# Send to multiple recipients
agentmail messages send <inbox-id> \
--to [email protected] \
--to [email protected] \
--subject "Team Update" \
--text "Hello team..."
# Send with CC and BCC
agentmail messages send <inbox-id> \
--to [email protected] \
--cc [email protected] \
--bcc [email protected] \
--subject "Important" \
--text "Please review..."
# Send HTML email
agentmail messages send <inbox-id> \
--to [email protected] \
--subject "Newsletter" \
--html "<h1>Hello</h1><p>HTML content</p>"
# Send with labels
agentmail messages send <inbox-id> \
--to [email protected] \
--subject "Outreach" \
--text "Hello..." \
--labels '["campaign","outbound"]'
Reply & Forward
# Reply to a message
agentmail messages reply <inbox-id> <message-id> \
--text "Thank you for your email."
# Reply with HTML
agentmail messages reply <inbox-id> <message-id> \
--html "<p>Thank you!</p>"
# Reply all
agentmail messages reply <inbox-id> <message-id> \
--text "Replying to everyone..." \
--reply-all
# Forward a message
agentmail messages forward <inbox-id> <message-id> \
--to [email protected] \
--text "FYI - see below"
# Forward to multiple
agentmail messages forward <inbox-id> <message-id> \
--to [email protected] \
--cc [email protected] \
--subject "Fwd: Customer Inquiry" \
--text "Please review"
Labels & Organization
# Add labels to a message
agentmail messages update <inbox-id> <message-id> \
--add-labels '["important","needs-review"]'
# Remove labels
agentmail messages update <inbox-id> <message-id> \
--remove-labels '["unread"]'
# Add and remove simultaneously
agentmail messages update <inbox-id> <message-id> \
--add-labels '["processed"]' \
--remove-labels '["unread","pending"]'
Attachments
# Get attachment details and download URL
agentmail attachments get <thread-id> <attachment-id>
Available Commands
| Command | Description |
|---|---|
inboxes list |
List all inboxes |
inboxes get <id> |
Get inbox details |
inboxes create |
Create new inbox |
inboxes delete <id> |
Delete inbox |
threads list <inbox-id> |
List threads |
threads get <inbox-id> <thread-id> |
Get thread with messages |
messages send <inbox-id> |
Send new email |
messages reply <inbox-id> <msg-id> |
Reply to email |
messages forward <inbox-id> <msg-id> |
Forward email |
messages update <inbox-id> <msg-id> |
Update labels |
attachments get <thread-id> <att-id> |
Get attachment |
Command Options Reference
inboxes list
-l, --limit <n>- Max items (default: 10)--page-token <token>- Pagination token
inboxes create
-u, --username <name>- Email username-d, --domain <domain>- Email domain-n, --display-name <name>- Display name
threads list
-l, --limit <n>- Max items (default: 10)--page-token <token>- Pagination token--labels <json>- Filter by labels (JSON array)--before <datetime>- Before date (ISO 8601)
Установить agentmail-mcp-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agentmail-mcp-cli?
Manage AI agent email accounts via AgentMail API. Create inboxes, send/receive/reply to emails, manage threads and attachments. Use for "email", "agentmail", "inbox", "send email", "reply email", "forward email", "email agent", "mail api", "agent inbox".
Как установить скилл agentmail-mcp-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentmail-mcp-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic