Back to MCP directory
publicPublicdnsLocal runtime

agentmail-mcp

AgentMail MCP服务器提供与AgentMail API交互的工具,支持邮件发送、接收和回复等功能。

article

README

🚀 AgentMail MCP Server

AgentMail MCP Server 为 AgentMail API 提供了一系列工具,可助力开发者更便捷地使用 AgentMail 相关功能。

🚀 快速开始

📦 安装指南

凭证获取

AgentMail 获取你的 API 密钥。

配置步骤

在配置文件中进行如下配置:

{
    "mcpServers": {
        "AgentMail": {
            "command": "npx",
            "args": ["-y", "agentmail-mcp"],
            "env": {
                "AGENTMAIL_API_KEY": "YOUR_API_KEY"
            }
        }
    }
}

💻 使用示例

工具选择

默认情况下,所有可用工具都会被加载。你可以使用 --tools 参数并传入以逗号分隔的工具名称列表来选择性地启用特定工具。

示例代码
{
    "mcpServers": {
        "AgentMail": {
            "command": "npx",
            "args": ["-y", "agentmail-mcp", "--tools", "get_message,send_message,reply_to_message"],
            "env": {
                "AGENTMAIL_API_KEY": "YOUR_API_KEY"
            }
        }
    }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client