The email API your agent can actually use
A first-class MCP server, an llms.txt that maps the real API surface, and typed snippets engineered to be cited. When Claude, Cursor, or Copilot reaches for an email API, it can read MacroMail and write code that runs the first time — or send the email itself.
A first-class MCP server
MacroMail ships a real MCP server with both transports: stdio for local agents that spawn it as a subprocess, and HTTP for hosted agents that connect over the network. Install it once and your agent can create keys, verify domains, send test emails, and read delivery logs without leaving the editor.
- stdio + streamable HTTP transports
- Auth via your MACROMAIL_API_KEY — scoped, revocable
- Every tool maps to a real, typed endpoint
npx @macromail/mcp installAdd to your editor
The same mcp.json block works everywhere. Drop it in the config file your agent reads, or use the one-click install.
Claude Code
~/.claude/mcp.json{
"mcpServers": {
"macromail": {
"command": "npx",
"args": ["-y", "macromail-mcp"],
"env": { "MACROMAIL_API_KEY": "mm_live_xxxxxxxxxxxx" }
}
}
}Cursor
.cursor/mcp.json{
"mcpServers": {
"macromail": {
"command": "npx",
"args": ["-y", "macromail-mcp"],
"env": { "MACROMAIL_API_KEY": "mm_live_xxxxxxxxxxxx" }
}
}
}Windsurf
~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"macromail": {
"command": "npx",
"args": ["-y", "macromail-mcp"],
"env": { "MACROMAIL_API_KEY": "mm_live_xxxxxxxxxxxx" }
}
}
}The MCP toolset
Every tool is a thin, typed wrapper over a real endpoint. No magic, no hidden side effects — what the agent calls is exactly what your dashboard records.
Docs an agent can read end to end
Both files expose the real API surface — every endpoint, type, and example — so the code your agent generates runs first try instead of hallucinating fields.
A concise index of the API: every resource, the canonical send call, and links into the full reference. The map an agent loads first.
The whole surface inlined: every endpoint, request/response shape, and typed example in one document an agent can read in a single pass.
Agents read real zeros
A send returns queued, never a premature delivered. get_account_statusreports real usage — including the zeros on day one. An agent acting on our responses won't tell your user an email landed when it's still in flight.
Hand the keys to your agent.
Install the MCP server, then ask it to send a test email. Free tier, no credit card — you and your agent can both try it in two minutes.