sentfromai-mcp on npm — so an AI agent
can use email as first-class tools: create inboxes, send and reply, search,
manage threads, webhooks and allow/block rules — without writing a single API
call. The agent simply calls a tool.
Why MCP
With the REST API your code orchestrates email. With MCP, the agent itself decides when to check its inbox, draft a reply, or escalate — SentFromAI’s operations appear directly in the model’s tool list.Connect
All you need is an API key (sf_live_…) from the
dashboard — the same keys as the REST API
(Authentication).
- Claude Code
- Claude Desktop / Cursor / JSON config
- Gemini CLI
- Codex CLI
- OpenClaw
As a plugin — asks for the key when you enable it and adds a skill that teaches
Claude email etiquette:Or as a plain MCP server:
ai.sentfrom/mcp.
Hosted endpoint (remote MCP)
If your host only speaks remote MCP, or you would rather not run anything locally, connect to the hosted endpoint instead ofnpx:
- API key: send
Authorization: Bearer sf_live_…. Works everywhere a bearer header can be set. - Sign in: hosts that support MCP OAuth (claude.ai, ChatGPT) discover SentFromAI’s authorization server automatically and open a sign-in to your SentFromAI account. The connection then acts for your organization’s tenant.
- Claude Code (remote)
- claude.ai / ChatGPT
- Cursor / JSON config
- Meta Muse
Available tools
Every tool carries MCP annotations: reads are marked read-only,
send_message,
reply_to_message, forward_message and send_draft are marked as reaching the
outside world, and delete_* as destructive, so hosts can group them and confirm
the irreversible ones. API failures come back as tool results with the HTTP status
(a 401 means the key is wrong, a 402 that the plan limit is reached), so the
agent can tell you rather than retry.
Because the tools map onto the same endpoints documented in the
API reference, everything you read here applies —
threading, idempotency, suppression, and attachments all behave identically.
Configuration
Tools inherit the key’s tenant scope: an agent can only see and act on its own
tenant’s inboxes, threads, and rules. Suppression and allow/block rules are
enforced server-side, so a misbehaving agent can’t mail past them.

