Email for CrewAI Agents: Give a Crew a Real Mailbox
To give a CrewAI crew its own email, load Sairaph Mail's native MCP server with MCPServerAdapter from crewai-tools: pass a server_params dict with the endpoint https://mail.sairaph.com/mcp/v1/mcp, transport: "streamable-http", and an Authorization: Bearer header carrying your mailbox key. The adapter exposes the mailbox's send and read actions as CrewAI tools your agents can call. One scoped key covers both send and receive - no SMTP, no IMAP, no per-agent Gmail.
Last updated June 30, 2026
This guide attaches a real, owned mailbox to a CrewAI agent in three steps.
Step 1 - Provision a mailbox and a scoped key
Create the mailbox in the dashboard and issue a per-mailbox key scoped to what the crew needs - read_write to send and read, read for code/confirmation reads only. Issuance is dashboard-only:
Step 2 - Load the MCP tools with MCPServerAdapter
MCPServerAdapter is a context manager: open it with the server params, and the mailbox's actions arrive as a list of CrewAI tools you hand to an Agent.
Prefer plain HTTP? The same mailbox sends over REST with one POST (Idempotency-Key required):
Step 3 - Read inbound for the reply-handling task
The mailbox is two-way, so a follow-up task can read what arrived - list inbound, or force an on-demand live fetch when blocking on a one-time code. Over REST the read leg is:
Give a second agent (or a second task on the same agent) a read-scoped tool set so it can triage replies without send rights.
How Sairaph Mail fits CrewAI
CrewAI coordinates the roles; Sairaph Mail gives the crew a real, owned inbox - two-way over one scoped, expiring key, EU-hosted by default, with a dashboard to watch what the crew sent and received. The MCP email server pillar details the tool surface; the OTP use case shows the live-read pattern end to end.
Next step: run the quickstart to send and receive, then read the MCP docs.
Related
Give your agent a real mailbox
Two-way email over REST and a native MCP server, EU-resident by default.
EU data residencyPer-customer encryptionNative MCP