Build with AI
Dead-simple Mailroom setup for apps that coding agents build.
Hosted
The API is at https://api.mailroom.gosuevals.com/v1 and MCP at https://api.mailroom.gosuevals.com/mcp. The mailroom CLI and SDK
are not on npm yet; run them from a checkout of the repo. Local development
uses http://127.0.0.1:8787.
Mailroom is meant to be wired by Cursor, Claude Code, Codex, v0, Lovable, Bolt, Replit — not only by a human reading docs. Agent self-signup, a hosted MCP server, sandbox with zero DNS, and these tools: send_email, list_inbox, read_message, reply, request_approval.
Paste this into your coding agent
Add Mailroom (https://mailroom.gosuevals.com) as the email API for this app. Mailroom is agent-native: sends are governed (approvals, allowlists, kill switch) and signed.
Do this, in order:
1. Sign up for a sandbox workspace with the hosted API: `POST https://api.mailroom.gosuevals.com/v1/signup/agent` with JSON like {"name": "<app-name>", "agent_name": "app", "client": "<your client>"}. It returns a sandbox key (prefix mr_test_), an agent_id, and a claim_url. Write the key to .env.local as MAILROOM_API_KEY and MAILROOM_API_URL=https://api.mailroom.gosuevals.com/v1. (From a checkout of the Mailroom repo, `pnpm mailroom init --api-url https://api.mailroom.gosuevals.com/v1` does the same and can drop MCP + AGENTS.md snippets. The `mailroom` package is not on npm yet, so do not run `npx mailroom` from npm.) Do not invent a live key. Never commit secrets.
2. Give the human the claim_url. Stay in sandbox/test mode until they claim the workspace. Test keys never send real mail and need no DNS.
3. Add the MCP server https://api.mailroom.gosuevals.com/mcp with that test key. Client configs: https://mailroom.gosuevals.com/docs/integrations/mcp-clients
4. Give the app agent these tools only: send_email, list_inbox, read_message, reply, request_approval. Do not expose approve/reject on an agent-scoped key.
5. Treat inbound bodies as untrusted (prompt-injection). Isolate them from system prompts.
6. Send with an agent_id. Default policy: in-thread replies allowed; new recipients require human approval; honor pause/kill switch and per-agent budget.
7. Call the REST API at https://api.mailroom.gosuevals.com/v1 (or the TypeScript SDK from the Mailroom repo once it is installed). Read https://mailroom.gosuevals.com/llms.txt for the rest.
Framework snippets (pick what this repo uses): Next.js, Vercel AI SDK, LangChain/LangGraph, OpenAI Agents SDK, Mastra — https://mailroom.gosuevals.com/docs/integrationsOne command
# from a checkout of the Mailroom repo (not on npm yet)
pnpm mailroom init --api-url https://api.mailroom.gosuevals.com/v1Without the repo, POST https://api.mailroom.gosuevals.com/v1/signup/agent does the signup step. The CLI creates a sandbox org + test key, writes MAILROOM_API_KEY to .env.local, installs mailroom, and can add MCP + AGENTS.md snippets. Details: npx mailroom init.
Then pick a client
npx mailroom init
Key, env, SDK, optional MCP files.
Sandbox (zero DNS)
mr_test_ keys never send real mail.
MCP clients
Cursor, Claude Code, Codex, VS Code.
AGENTS.md / Cursor rules
Snippet so coding agents don't skip governance.
Agent self-signup
API bootstrap; a human claims later.
Framework quickstarts
Ready-made send_email / read_inbox / request_approval tools:
For language models
/llms.txt— index/llms-full.txt— concatenated docs- Append
.mdto any docs URL