Receiver.email

Real inboxes for AI agents: create an address, then wait for and read sign-up codes and magic links.

Hosted MCP Server

npx add-mcp 'https://mcp.receiver.email/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

MCP Server

@receiverdotemail/mcp gives any MCP client four tools to create inboxes, wait for email and read it. It runs locally over stdio, or at a URL you connect to with a sign-in or an API key.

Requirements

  • Node.js 20 or later (the client starts the server with npx).
  • A project API key (recv_live_...). Create one in your project's settings; see Quick Start.
VariableDescription
RECEIVER_API_KEYRequired. The project the tools work in comes from the key.
RECEIVER_API_URLOptional. Defaults to https://api.receiver.email/api/v1.

Install

Claude Code

claude mcp add receiver \
  -e RECEIVER_API_KEY=recv_live_your_key \
  -- npx -y @receiverdotemail/mcp

Add --scope project to share it with your team through .mcp.json; keep the key itself out of the file by setting RECEIVER_API_KEY in each person's environment.

Claude Desktop

Edit claude_desktop_config.json (Settings, Developer, Edit Config) and restart the app:

{
  "mcpServers": {
    "receiver": {
      "command": "npx",
      "args": ["-y", "@receiverdotemail/mcp"],
      "env": { "RECEIVER_API_KEY": "recv_live_your_key" }
    }
  }
}

Cursor

Add the same mcpServers block to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json in one repository.

VS Code

Add it to .vscode/mcp.json. VS Code can prompt for the key so it never lands in the file:

{
  "inputs": [
    { "id": "receiver-key", "type": "promptString", "description": "Receiver.email API key", "password": true }
  ],
  "servers": {
    "receiver": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@receiverdotemail/mcp"],
      "env": { "RECEIVER_API_KEY": "${input:receiver-key}" }
    }
  }
}

Windsurf and other clients

Any client that launches stdio servers works with the command npx -y @receiverdotemail/mcp and the RECEIVER_API_KEY environment variable. In Windsurf, add the mcpServers block above to ~/.codeium/windsurf/mcp_config.json.

Remote Server

Hosted agents, claude.ai, agents built on the Claude API and any client that connects to a URL can use the same four tools over Streamable HTTP. Connect in one of two ways:

  • Sign in: clients that support MCP's OAuth sign-in need only the URL. They open a Receiver.email page where you sign in and pick the project to connect.
  • API key: send your project API key as a Bearer token with every request.
URL:    https://mcp.receiver.email/mcp
Header: Authorization: Bearer recv_live_your_key   (optional with sign-in)

The server has no key of its own and doesn't keep yours between requests; to save a lookup per call, it remembers which project a key belongs to for up to 10 minutes.

Claude (claude.ai and the desktop app)

  1. Open Settings, then Connectors, and add a custom connector.
  2. Enter the URL https://mcp.receiver.email/mcp and connect.
  3. Sign in to Receiver.email, pick the project and select Allow. Only admins and members of the project's organization can connect one.

The app can then do what a project API key can: create inboxes and read the project's email. It shows under Connected apps in the project's settings, where you can disconnect it at any time.

Claude Code

Add the URL, then run /mcp in Claude Code to sign in:

claude mcp add --transport http receiver https://mcp.receiver.email/mcp

Or skip the sign-in and send a key:

claude mcp add --transport http receiver https://mcp.receiver.email/mcp \
  --header "Authorization: Bearer recv_live_your_key"

Cursor and other clients

Clients that support OAuth sign in with just the URL. Clients that take a URL and headers can send a key instead:

{
  "mcpServers": {
    "receiver": {
      "url": "https://mcp.receiver.email/mcp",
      "headers": { "Authorization": "Bearer recv_live_your_key" }
    }
  }
}

Claude API

With the MCP connector, Claude calls the tools during a Messages API request. Pass the key as the server's authorization_token:

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 4096,
    "mcp_servers": [{
      "type": "url",
      "url": "https://mcp.receiver.email/mcp",
      "name": "receiver",
      "authorization_token": "'"$RECEIVER_API_KEY"'"
    }],
    "tools": [{ "type": "mcp_toolset", "mcp_server_name": "receiver" }],
    "messages": [{ "role": "user", "content": "Create an inbox, then wait for the code Acme sends to it." }]
  }'

Limits

  • Long waits: a wait_for_email call holds the request for up to 300 seconds and streams progress while it waits. If your client gives up on tool calls sooner, pass a shorter timeoutSeconds and call again with the same since.
  • Sign-in: a sign-in lasts until you disconnect the app or delete the project; the client refreshes its access token every hour without asking you again. If you stop being an admin or member of the organization, it stops working within the hour. If your client reports an authentication error with a key, check the key in the header: a missing or rejected key is answered with HTTP 401.
  • Same limits: requests count against your plan's per-minute limit, as they would from the API.

Tools

Every tool returns its result as JSON text. Tool descriptions are written for the model: they say what the tool is for and when to call it.

create_inbox: Mint an Address

Returns a new address under your project. Nothing is stored until mail arrives. Pass the returned since to wait_for_email.

InputTypeDescription
prefixstring, optionalStart of the address, e.g. "signup". A random suffix is added so parallel calls never collide. Allowed: a to z, 0 to 9 and. _ + -, up to 40 characters.
{ "address": "[email protected]",
  "since": "2026-11-05T10:00:00.000Z" }

wait_for_email: Wait for the Next Email

Waits for an email to the address received after since, and returns it.

InputTypeDescription
addressstringThe address to wait on.
sinceISO 8601, optionalOnly mail received strictly after this time. Use the since from create_inbox. Default: the last 60 seconds.
timeoutSecondsnumber, optionalHow long to wait. Default 60, max 300.
extract"otp" | "links" | "none"Also return the verification code, or the links. Default "none".
codeLengthinteger, optionalWith extract "otp": the code length to look for, 4 to 8. Needed for 5 and 7-digit codes, which are not detected automatically.
{ "status": "received",
  "email": {
    "id": "email_xyz",
    "from": "[email protected]",
    "subject": "Your Acme code",
    "receivedAt": "2026-11-05T10:00:04.120Z",
    "text": "Your verification code is 847291..."
  },
  "otp": { "code": "847291", "candidates": ["847291"] } }

text is the first 4,000 characters of the plain text body. otp appears with extract: "otp"; candidates lists the codes found in that email, and otp is null when the email has no code. links (an array of URLs) appears with extract: "links".

list_emails: Recent Emails

InputTypeDescription
addressstring, optionalOnly mail to this address. Default: the whole project.
limitnumber, optionalDefault 10, max 50.
{ "emails": [
  { "id": "email_xyz", "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Your Acme code", "receivedAt": "2026-11-05T10:00:04.120Z" }
] }

get_email: Read One Email

InputTypeDescription
idstringAn email id from wait_for_email or list_emails.
format"text" | "html"Which body to return. Default "text".
{ "id": "email_xyz", "from": "[email protected]",
  "to": "[email protected]",
  "subject": "Your Acme code", "receivedAt": "2026-11-05T10:00:04.120Z",
  "body": "Your verification code is 847291...",
  "links": ["https://acme.example/verify?token=..."],
  "attachments": [ { "filename": "welcome.pdf", "contentType": "application/pdf", "size": 48213 } ] }

How since works

since is an ISO 8601 timestamp. A wait matches only mail whose receivedAt is strictly after it. That gives two rules:

  • First email: wait from the since that create_inbox returned. Mail from before the address existed can never match.
  • Next email: wait from the receivedAt of the email you already have, for example after the agent clicks "Resend code".

Without since, a wait looks back 60 seconds, so an email that arrived just before the call still counts.

Timeouts

A wait that ends without mail is a normal result, not an error:

{ "status": "timeout",
  "since": "2026-11-05T10:00:00.000Z",
  "hint": "No email yet. Call wait_for_email again with the same since." }

Calling again with the same since loses nothing: an email that landed between the calls is returned by the next one.

Errors

Problems come back as tool results with isError: true and a one-line fix the model can act on or relay, never as protocol errors. For example:

RECEIVER_API_KEY is not set. Set RECEIVER_API_KEY to a project API key (recv_live_...) from the Receiver.email dashboard (Project > API keys) in this MCP server's env config.

On the remote server, connecting and listing the tools works without a key, so clients and directories can see what the server offers. Calling a tool without a key, or with a rejected one, is answered with HTTP 401 before it runs, and a key revoked mid-session tells you to fix the Authorization header instead.

Next Steps