Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计通过

agentmail-mcp-cliagentmail MCP CLI 效率

Agent Skill

agentmail-mcp-cli 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

12,950

周安装

529

GitHub Stars

1

下载量

4,147
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agentmail-mcp-cli(agentmail MCP CLI 效率)
来源仓库:https://github.com/flohiwg/agentmail-mcp-cli
安装命令:
openclaw skills install agentmail-mcp-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install agentmail-mcp-cli

简介

agentmail-mcp-cli 通过 AgentMail API 管理代理邮箱账户的全功能命令行工具。

  • 支持创建收件箱、发送/接收/回复邮件及管理附件与话题分类。
  • 适用于自动化邮件处理与批量通信任务。
  • 安装命令为 openclaw skills install agentmail-mcp-cli,需 Python 环境与网络权限。
  • 注意脚本执行可能触发大量外部请求,建议限制频率并监控配额使用情况。

SKILL.md

name
agentmail-mcp-cli
description
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".
version
1.0.0
metadata
openclaw
requires
env
bins
primaryEnv
AGENTMAIL_API_KEY
install
package
openclaw-agentmail-cli
bins
homepage
https://agentmail.to
docs
https://docs.agentmail.to
repository
https://github.com/FloHiwg/agentmail-cli

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:

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 user@example.com \
  --subject "Hello" \
  --text "Email body here"

# Send to multiple recipients
agentmail messages send <inbox-id> \
  --to user1@example.com \
  --to user2@example.com \
  --subject "Team Update" \
  --text "Hello team..."

# Send with CC and BCC
agentmail messages send <inbox-id> \
  --to primary@example.com \
  --cc copy@example.com \
  --bcc hidden@example.com \
  --subject "Important" \
  --text "Please review..."

# Send HTML email
agentmail messages send <inbox-id> \
  --to user@example.com \
  --subject "Newsletter" \
  --html "<h1>Hello</h1><p>HTML content</p>"

# Send with labels
agentmail messages send <inbox-id> \
  --to user@example.com \
  --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 forward-to@example.com \
  --text "FYI - see below"

# Forward to multiple
agentmail messages forward <inbox-id> <message-id> \
  --to team@example.com \
  --cc manager@example.com \
  --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

CommandDescription
inboxes listList all inboxes
inboxes get <id>Get inbox details
inboxes createCreate 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)
  • --after <datetime> - After date (ISO 8601)

messages send

  • --to <email> - Recipient (repeatable)
  • --cc <email> - CC recipient (repeatable)
  • --bcc <email> - BCC recipient (repeatable)
  • -s, --subject <text> - Subject line
  • -t, --text <body> - Plain text body
  • --html <body> - HTML body
  • --labels <json> - Labels (JSON array)

messages reply

  • -t, --text <body> - Plain text body
  • --html <body> - HTML body
  • --reply-all - Reply to all recipients
  • --labels <json> - Labels (JSON array)

messages forward

  • --to <email> - Recipient (repeatable)
  • --cc <email> - CC recipient (repeatable)
  • --bcc <email> - BCC recipient (repeatable)
  • -s, --subject <text> - Subject line
  • -t, --text <body> - Plain text body
  • --html <body> - HTML body
  • --labels <json> - Labels (JSON array)

messages update

  • --add-labels <json> - Labels to add (JSON array)
  • --remove-labels <json> - Labels to remove (JSON array)

Common Workflows

Check for New Emails

# List unread threads
agentmail threads list <inbox-id> --labels '["unread"]' --limit 20

Process and Archive Email

# 1. Get thread
agentmail threads get <inbox-id> <thread-id>

# 2. Process content (your logic)

# 3. Mark as processed
agentmail messages update <inbox-id> <message-id> \
  --add-labels '["processed"]' \
  --remove-labels '["unread"]'

Auto-Reply Workflow

# 1. Check for emails needing reply
agentmail threads list <inbox-id> --labels '["needs-reply"]'

# 2. Get thread details
agentmail threads get <inbox-id> <thread-id>

# 3. Send reply
agentmail messages reply <inbox-id> <message-id> \
  --text "Thank you for reaching out. We will respond within 24 hours."

# 4. Update labels
agentmail messages update <inbox-id> <message-id> \
  --add-labels '["auto-replied"]' \
  --remove-labels '["needs-reply","unread"]'

Create Inbox and Send First Email

# 1. Create inbox
agentmail inboxes create --display-name "Sales Bot"
# Note the inboxId from response

# 2. Send email
agentmail messages send <new-inbox-id> \
  --to prospect@example.com \
  --subject "Introduction" \
  --text "Hello! I wanted to reach out..."

Error Handling

If commands fail, check:

  1. API Key: Ensure AGENTMAIL_API_KEY is set
  2. IDs: Verify inbox/thread/message IDs exist
  3. JSON: Use proper JSON for array options: '["value"]'

Alternative: MCPorter Syntax

If the MCP compatibility is restored, you can also use MCPorter:

# List inboxes
npx mcporter call agentmail.list_inboxes

# Send message
npx mcporter call agentmail.send_message \
  inboxId:<inbox-id> \
  to:'["user@example.com"]' \
  subject:"Hello" \
  text:"Body"

Links

  • API Documentation: https://docs.agentmail.to
  • Get API Key: https://agentmail.to
  • MCP Server: https://github.com/agentmail-to/agentmail-mcp
  • Node SDK: https://github.com/agentmail-to/agentmail-node

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

95.29%
按下载量换算3,952

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills