# sentfromai/sentfromai-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/sentfromai/sentfromai-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 811  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sentfromai-sentfromai-mcp

## Description
Email for AI agents: inboxes, send/reply/forward, search, threads, webhooks — 21 SentFromAI tools.

## Tools
Capabilities this server exposes over MCP:

- **create_inbox** — Create an email inbox for this tenant and return it (id, address, display_name, created_at). Uses the managed mail.sentfrom.ai domain unless domain_id names one of your verified custom domains. The address is live immediately. Errors: 400 invalid local_part, 402 plan inbox limit reached, 409 address already taken.
- **list_inboxes** — List every inbox in this tenant (id, address, display_name, created_at). Call this before create_inbox to reuse an existing address.
- **delete_inbox** — Permanently delete an inbox. Its address stops accepting mail immediately; messages already received stay searchable. Cannot be undone. Errors: 404 unknown inbox.
- **send_message** — Send a new email from one of your inboxes and return the created message (id, thread_id, delivery_status). Starts a new thread; to continue a conversation use reply_to_message so threading headers are set. Recipients matching a block rule are refused and addresses that previously bounced are suppressed. Pass client_id to make retries idempotent. Errors: 400 missing fields, 402 plan send limit reached, 413 message over 10 MB, 422 all recipients blocked or suppressed.
- **reply_to_message** — Reply inside an existing thread and return the created message. Sent from the inbox that received the original, to the original sender (or to everyone on the thread with reply_all), with the subject and In-Reply-To/References headers set so mail clients thread it correctly. Block rules and suppression apply. Errors: 404 unknown message, 402 plan send limit reached.
- **forward_message** — Forward a message to new recipients as a fresh thread, quoting the original and re-attaching its files, and return the created message. Useful for handing a conversation to a human. Errors: 404 unknown message, 402 plan send limit reached.
- **get_message** — Fetch one message by id: from/to/cc, subject, plain-text and HTML bodies, direction, delivery_status, thread_id, timestamps, and time-limited download URLs for attachments. Errors: 404 unknown message.
- **search_messages** — Search this tenant's messages, or list the most recent ones when query is omitted (the way to check for new mail). Returns up to limit message summaries (id, thread_id, direction, from_addr, to_addrs, subject, sent_at/received_at), newest first; use get_message for bodies. mode keyword matches words in subject and body, semantic finds messages by meaning, hybrid combines both.
- **list_threads** — List conversation threads, most recently active first: id, subject, participants, message_count, last_message_at. Use get_thread to read the messages of one thread.
- **get_thread** — Fetch a thread with all of its messages in chronological order, bodies included. Errors: 404 unknown thread.
- **create_draft** — Create a draft without sending it and return it (id, status draft or scheduled). Set scheduled_at to have it sent automatically at that time, or send it later with send_draft. With reply_to_message_id the draft becomes a threaded reply: recipients and subject default to the original message. Errors: 404 unknown inbox or message.
- **send_draft** — Send an existing draft now and return the resulting message. Works for drafts in status draft or scheduled; a draft that was already sent cannot be sent again. Errors: 404 unknown draft, 409 already sent.
- **list_drafts** — List this tenant's drafts: id, inbox_id, to, subject, status (draft, scheduled, sent) and scheduled_at.
- **add_domain** — Register a custom domain for sending and receiving and return it (id, status pending) together with the DNS records to add: DKIM CNAMEs, MX and SPF for the mail-from subdomain, and DMARC. SentFromAI re-checks DNS automatically and marks the domain verified once the records propagate; poll with get_domain. Errors: 400 invalid hostname, 409 already registered.
- **get_domain** — Get a domain's verification status (pending, verified, failed), the DKIM, SPF and DMARC check results, and the exact DNS records still required. Errors: 404 unknown domain.
- **create_webhook** — Register an HTTPS endpoint that receives events as signed JSON POSTs and return it with its signing secret, which is shown only this once. Events: message.received (inbound mail, the default), message.delivered, message.bounced, message.complained, message.rejected. Failed deliveries are retried with backoff.
- **list_webhooks** — List webhook endpoints: id, url, events, created_at. Signing secrets are never returned after creation.
- **delete_webhook** — Delete a webhook endpoint. Event deliveries to it stop immediately. Cannot be undone. Errors: 404 unknown endpoint.
- **add_address_rule** — Add a rule for an email address or a whole domain and return it (id, kind, direction, pattern). Block rules are enforced server-side for every inbox in the tenant: matching senders are refused on receive and matching recipients are refused on send. Allow rules are recorded for reference and are not enforced as exceptions. Errors: 400 invalid kind or pattern.
- **list_address_rules** — List this tenant's allow/block rules: id, kind, direction, pattern, created_at.
- **delete_address_rule** — Delete an allow/block rule by id. Takes effect immediately. Cannot be undone. Errors: 404 unknown rule.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "sentfromai-mcp": {
    "command": "npx",
    "args": ["-y","sentfromai-mcp@0.4.1"],
    "env": {
      "SENTFROMAI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `SENTFROMAI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What sentfromai/sentfromai-mcp does

SentFromAI email infrastructure becomes available as native MCP tools through sentfromai/sentfromai-mcp. The server covers the full lifecycle of agent-operated mail: creating inboxes, listing or deleting them, sending new messages, replying within existing threads, forwarding messages, and retrieving message or thread content.

It also exposes draft management, scheduled sending, custom-domain verification, signed webhook registration, and tenant-wide allow/block rules. Search can use keyword, semantic, or hybrid matching. The tools are annotated by operation type, allowing compatible hosts to distinguish reads, writes, sends, and deletes before asking an agent to act.

## How it works

Each tool call is a thin request to the SentFromAI REST API. The local server communicates with the API over HTTPS and does not keep local state. Authentication uses a SentFromAI API key, typically supplied through `SENTFROMAI_API_KEY`.

The package supports MCP over stdio for local clients. SentFromAI also hosts the same 21 tools at `https://api.sentfrom.ai/mcp` over Streamable HTTP. Remote requests use a Bearer token or `x-api-key`; OAuth-capable hosts can use SentFromAI's authorization server. API failures are returned as tool errors with the HTTP status, so an agent can distinguish authentication failures, plan limits, and other request errors.

Message operations preserve email semantics. Replies set the appropriate threading headers automatically, while forwarding creates a new thread with the original content and attachments. Search returns summaries; use message or thread retrieval tools when full bodies are needed.

## Setup and configuration

For a local installation, add the package as an MCP server with a command such as:

```bash
npx -y sentfromai-mcp
```

Provide `SENTFROMAI_API_KEY` in the host's protected environment or credential configuration. `SENTFROMAI_BASE_URL` can change the API base URL from its default of `https://api.sentfrom.ai`. Keep API keys out of chat messages, shell history, source control, and logs.

Remote-capable hosts can connect to `https://api.sentfrom.ai/mcp` without installing the package. Configure authentication privately through an `Authorization: Bearer sf_live_…` header, an `x-api-key` header, or the host's supported OAuth flow.

## Tools and capabilities

- Create, list, and permanently delete SentFromAI inboxes.
- Send new messages, reply in existing threads, and forward mail to new recipients.
- Retrieve messages, search by keyword or meaning, and read complete conversation threads.
- Create, schedule, list, and send drafts.
- Register custom domains and inspect DKIM, SPF, DMARC, and verification status.
- Create, list, and delete webhooks for received, delivered, bounced, complained, and rejected events.
- Add, inspect, and remove tenant-wide allow or block rules for addresses and domains.

Webhook deliveries use signed JSON POST requests and retry failed deliveries with backoff. The signing secret is shown only when the webhook is created.

## Limitations and notes

Creating or deleting inboxes, sending mail, changing domains, managing webhooks, and modifying address rules can affect live email operations. Deleted inboxes, webhook endpoints, and address rules cannot be restored through the corresponding operation.

Sending is subject to the account plan, recipient suppression and block rules, and message-size limits. New agent accounts may be able to receive and read mail before a human claims them; sending and other changes require that claim. Account creation is handled through the SentFromAI agent setup flow or console rather than an MCP tool.

_Full upstream README: https://allmcps.com/mcp/sentfromai-sentfromai-mcp/readme_

