Gives agents their own email inboxes, created on demand, to send, receive and act on email through AgentMail.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agentmail-agentmail --env AGENTMAIL_API_KEY='<AGENTMAIL_API_KEY>' -- npx -y agentmail-mcp~/.codex/config.toml
[mcp_servers.agentmail-agentmail]
command = "npx"
args = ["-y", "agentmail-mcp"]
env = { AGENTMAIL_API_KEY = "<AGENTMAIL_API_KEY>" }
# codex mcp add agentmail-agentmail --env AGENTMAIL_API_KEY='<AGENTMAIL_API_KEY>' -- npx -y agentmail-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentmail-agentmail": {
"command": "npx",
"args": [
"-y",
"agentmail-mcp"
],
"env": {
"AGENTMAIL_API_KEY": "<AGENTMAIL_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentmail-agentmail": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentmail-mcp"
],
"env": {
"AGENTMAIL_API_KEY": "<AGENTMAIL_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentmail-agentmail": {
"command": "npx",
"args": [
"-y",
"agentmail-mcp"
],
"env": {
"AGENTMAIL_API_KEY": "<AGENTMAIL_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentmail-agentmail": {
"command": "npx",
"args": [
"-y",
"agentmail-mcp"
],
"env": {
"AGENTMAIL_API_KEY": "<AGENTMAIL_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentmail-agentmail": {
"command": "npx",
"args": [
"-y",
"agentmail-mcp"
],
"env": {
"AGENTMAIL_API_KEY": "<AGENTMAIL_API_KEY>"
}
}
}
}Environment variables
AGENTMAIL_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.