Receiver.email
v0.3.0Real inboxes for AI agents: create an address, then wait for and read sign-up codes and magic links.
Model Context Protocol server for Receiver.email. It gives an AI agent real inboxes: create an address, use it in a sign-up or login form, and read the verification code or magic link that arrives. 1. In the Receiver.email dashboard, open a project and create an API key (recv_live_...). Use one project per agent: the key only sees its own project's mail. 2. Add the server to your client with RECEIVER_API_KEY in its environment. claude_desktop_config.json (Settings > Developer > Edit Config):
Summary extracted from the README.
@receiverdotemail/mcp
Model Context Protocol server for Receiver.email. It gives an AI agent real inboxes: create an address, use it in a sign-up or login form, and read the verification code or magic link that arrives.
Setup
- In the Receiver.email dashboard, open a project and create an API key (
recv_live_...). Use one project per agent: the key only sees its own project's mail. - Add the server to your client with
RECEIVER_API_KEYin its environment.
Claude Code
claude mcp add receiver --env RECEIVER_API_KEY=recv_live_... -- npx -y @receiverdotemail/mcp
Claude Desktop
claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": {
"receiver": {
"command": "npx",
"args": ["-y", "@receiverdotemail/mcp"],
"env": { "RECEIVER_API_KEY": "recv_live_..." }
}
}
}
Cursor
~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"receiver": {
"command": "npx",
"args": ["-y", "@receiverdotemail/mcp"],
"env": { "RECEIVER_API_KEY": "recv_live_..." }
}
}
}
Configuration
| Variable | Required | Default |
|---|---|---|
RECEIVER_API_KEY |
yes | |
RECEIVER_API_URL |
no | https://api.receiver.email/api/v1 |
The server speaks MCP over stdio and identifies itself to the API as receiver-mcp/<version>.
Remote server
Agents that can't start a local process (hosted agents, the Claude API's MCP connector) can use the hosted server at https://mcp.receiver.email/mcp, with the same four tools. Send your project API key on every request:
Authorization: Bearer recv_live_...
For example, in Claude Code:
claude mcp add --transport http receiver https://mcp.receiver.email/mcp \
--header "Authorization: Bearer recv_live_..."
To run it yourself, start receiver-mcp --http: it serves Streamable HTTP at /mcp on PORT (default 8080), plus GET /health. It is stateless and holds no key of its own. It doesn't keep a caller's key between requests; it remembers which project an accepted key belongs to (by the key's SHA-256) for up to 10 minutes, so it needn't look that up on every request. RECEIVER_API_URL sets the API it calls.
Tools
| Tool | Input | Returns |
|---|---|---|
create_inbox |
{ prefix? } |
{ address, since } |
wait_for_email |
{ address, since?, timeoutSeconds? (default 60, max 300), extract?: "otp" | "links" | "none" } |
{ status: "received", email: { id, from, subject, receivedAt, text }, otp?, links? } or { status: "timeout", since, hint } |
list_emails |
{ address?, limit? (default 10, max 50) } |
{ emails: [{ id, from, to, subject, receivedAt }] } |
get_email |
{ id, format?: "text" | "html" } |
{ id, from, to, subject, receivedAt, body, links, attachments } |
The typical flow:
create_inboxreturns an address andsince(the moment it was created).- The agent enters the address in a form.
wait_for_emailwith the address, the samesinceandextract: "otp"returns the code (otp: { code, candidates }, orotp: nullwhen the email has no code). Only mail received strictly aftersincecounts, so an older message is never returned.- On
status: "timeout", callwait_for_emailagain with the samesince. For the next email to the same address, pass the previous email'sreceivedAtassince.
text in wait_for_email is cut at 4000 characters; get_email returns the full body. While waiting, the server sends MCP progress notifications every 10 seconds when the client asks for them, so clients that reset their request timeout on progress don't give up on long waits.
Errors (missing or rejected key, rate limits, unreachable API, bad arguments) come back as tool results with isError: true and a one-line fix, for example RECEIVER_API_KEY is not set. Set RECEIVER_API_KEY to a project API key ....
Development
npm ci
npm run typecheck && npm test # uses ../typescript-sdk/src directly; no build needed
npm run build # builds ../typescript-sdk, then dist/
RECEIVER_API_KEY=recv_live_... npx @modelcontextprotocol/inspector node dist/index.js
The SDK dependency is file:../typescript-sdk inside this monorepo; publishing replaces it with the released @receiverdotemail/sdk version range.