agentmail-mcp
FreeNo executable scriptsNot checkedConfigure or troubleshoot the hosted AgentMail MCP server for Codex, Claude Code, Cursor, Claude.ai, ChatGPT, or another Streamable HTTP MCP client. Use for…
by agentmail-to★ 27 GitHub starsAbout this skill
AgentMail MCP
Prefer the hosted Streamable HTTP server:
https://mcp.agentmail.to/mcp
It avoids a local Node.js process and the slower release cadence of the published local MCP package.
Claude Code, Codex, and Cursor
Use OAuth. Do not put an empty API key in the configuration.
{
"mcpServers": {
"agentmail": {
"type": "http",
"url": "https://mcp.agentmail.to/mcp"
}
}
}
Claude Code can also install it directly:
claude mcp add --transport http agentmail https://mcp.agentmail.to/mcp
Complete the browser sign-in on first connection. Multi-organization OAuth sessions can use the server's organization-selection tools.
Claude.ai, Claude Desktop, and ChatGPT connectors
These apps add the server as a connector and complete OAuth in the browser. No API key is needed.
- Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector. Name it
AgentMail, set the URL tohttps://mcp.agentmail.to/mcp, then click Connect and sign in atconsole.agentmail.to. - ChatGPT: turn on Settings → Security and login → Developer mode (on a workspace plan, an admin must allow it first). Then open ChatGPT Plugins, click +, set the URL to
https://mcp.agentmail.to/mcp, choose OAuth, and sign in atconsole.agentmail.to. In a chat, pick AgentMail from the + menu under Developer mode.
Connectors added on Claude.ai do not sync to Claude Code; add it there separately.
Per-client configuration
Add the same type: http server entry to the client's MCP config file:
- Cursor:
.cursor/mcp.json - VS Code:
.vscode/mcp.json - Windsurf: its MCP config file
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%/Claude/claude_desktop_config.json(Windows)
Auth options
- OAuth — browser-based sign-in, for clients that support remote MCP OAuth. Use the bare URL with no credentials.
x-api-keyheader — recommended for clients without OAuth support (see below).Authorization: Bearer <am_...>header — an alternative header form some clients require.apiKeyquery param — supported but not recommended; prefer a header so the key doesn't end up in logs or history.
For a Streamable HTTP client that cannot complete OAuth, export AGENTMAIL_API_KEY and send it as a header:
{
"mcpServers": {
"agentmail": {
"type": "http",
"url": "https://mcp.agentmail.to/mcp",
"headers": {
"x-api-key": "${env:AGENTMAIL_API_KEY}"
}
}
}
}
Avoid query-string credentials when header authentication is available.
Tool Discovery
MCP clients get the tool catalog and schemas live from the hosted runtime; do not rely on a copied tool count. The same generated contract is published at https://github.com/agentmail-to/agentmail-mcp/blob/main/mcp-manifest.json — treat the hosted runtime plus that manifest as the authoritative catalog. OAuth sessions can surface extra organization-selection tools beyond the base set.
The catalog covers more than mail. Point users at these groups when they ask what the connector can do:
- Inboxes, threads, messages, drafts, attachments, and allow/block lists — the mail workflows in the sibling action skills.
- AgentID apps and accounts —
list_apps,search_apps,get_app,connect_app,authorize_inbox, andlist_accountscreate accounts for an agent at third-party apps (for example "create an account at Firecrawl") and show where each inbox already has one.authorize_inboxfinishes a sign-in that an app's Sign in with AgentID page started, using the auth token the page shows, including at apps not registered with AgentID. Catalog apps can be named by slug (firecrawl), andlist_appsfilters by category. Use theagentmail-agentidskill for that workflow. - Agent sign-up —
agent_attach_humanandagent_verifylift an unverified agent organization's limits.
Stdio Compatibility
For a stdio-only client, use the supported npm or PyPI agentmail-mcp package. Both are thin stdio bridges to the same hosted runtime: they discover tools dynamically and carry no separate AgentMail tool logic of their own.
Verify
- Restart the client or open a new session after installing the plugin.
- Inspect MCP status in the client and complete authentication.
- Call
list_inboxesas a read-only smoke test. Calllist_appsto confirm the AgentID tools are exposed. - Confirm that read, write, and destructive tool annotations produce the expected approval behavior.
Troubleshoot
- A 404 usually means the URL is missing
/mcp. - A tool or parameter in the published manifest is missing from the session (for example
list_appshas nocategory): the hosted server does not announce catalog changes, so a session keeps the tool list it had at connect. Start a new session or reconnect the connector. - "Invalid API key" or a 401 with API-key auth usually means the key is wrong, rev
Install agentmail-mcp in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the agentmail-mcp skill do?
Configure or troubleshoot the hosted AgentMail MCP server for Codex, Claude Code, Cursor, Claude.ai, ChatGPT, or another Streamable HTTP MCP client. Use for installation, OAuth, API-key headers, connection failures, or MCP tool discovery. Do not use when the connection already works and the user just wants to send, check, or manage mail — use the sibling action skills for that.
How do I install the agentmail-mcp skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the agentmail-mcp skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic