Connect

Two ways in, the same controls

Add a remote MCP server to the agent you already use, or call the REST API from your own code.

Claude Code over MCP and your own code over REST reach the same inbox, under the same rules
For agent clients

Remote MCP

https://mcp.emailforagents.ai/mcp

Signs in with
OAuth. You approve each connection.
Reaches
The inboxes you tick, at the level you choose
Exposes
Six tools, filtered by that level
Lasts
30 days, then it asks you again
MCP tools reference
For your own code

REST API

https://api.emailforagents.ai/v1

Signs in with
A project key, shown once
Reaches
One project, live or test, never both
Exposes
Inboxes, messages, drafts, events, webhooks
Lasts
Until you revoke the key
API basics

An API key is refused at the MCP endpoint by design. Only a connection you approved can call the tools.

Connect a client

Any client that can add a remote MCP server and sign in with OAuth.

  1. Add the server One command, or one block of JSON.
  2. Approve it Pick the inboxes it may use and how much it may do.
  3. Ask it to list your inboxes The console shows the connection the moment it works.
Setup for Claude Code

Claude Code

Claude Code

claude mcp add --transport http email-for-agents \
    https://mcp.emailforagents.ai/mcp

Run it in the project that needs email, then type /mcp in Claude Code to approve in your browser.

Setup steps, not endorsements. No client is certified yet, and connections last 30 days.

Six tools, nothing hidden

Your agent sees only the tools its access allows.

Tool What it does Needs
list_inboxes Lists the inboxes this agent may use Read
list_threads Lists the conversations in an inbox Read
list_messages Lists an inbox’s mail and its attachments Read
get_message Reads the body of one message Read
create_draft Writes a draft. It cannot send anything. Draft
send_message Sends, within your rules and approvals Send

Or call the API

Plain HTTP with a project key. Sending rules and approvals apply the same way.

Safe to retry
Send the same Idempotency-Key and you get one email, not two.
Events you can trust
Poll them, or receive them on a signed webhook.
No SDK to install
None is published yet. Every sample is plain HTTP.
Send a message POST
curl https://api.emailforagents.ai/v1/projects/$PROJECT/inboxes/$INBOX/messages \
  -H "Authorization: Bearer $EFA_KEY" \
  -H "Idempotency-Key: invoice-q3-ap" \
  -H "Content-Type: application/json" \
  -d '{
    "to": [{ "email": "ap@example.com" }],
    "subject": "Q3 invoice",
    "text": "Attached, split by department."
  }'

Give your agent an inbox.

Free for one inbox and 100 email units a month. No card.