# Sentfromai MCP [Health: Active]

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

## 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": "",
      "SENTFROMAI_BASE_URL": ""
    }
  }
}
```

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

## Documentation

## What Sentfromai MCP does

Sentfromai MCP exposes SentFromAI email operations as MCP tools for AI agents. The tools cover the complete lifecycle of agent-managed mail: creating and listing inboxes, deleting inboxes, sending new messages, replying within existing threads, forwarding messages, reading message contents, and searching recent or matching mail.

Conversation and workflow support includes thread listing, full thread retrieval, draft creation, scheduled drafts, immediate draft sending, and draft listing. For email infrastructure administration, the server can register custom domains, report DNS verification status, create and manage signed webhooks, and maintain allow or block rules for addresses and domains.

The tools carry read, write, send, and delete annotations. This lets MCP hosts distinguish potentially irreversible actions such as sending mail or deleting an inbox.

## How it works

Each tool is a thin request layer over the SentFromAI REST API. Calls use the tenant associated with the configured API key. Search can use keyword, semantic, or hybrid matching; omitted queries return recent message summaries, while `get_message` retrieves full bodies and attachment download URLs. Thread retrieval returns messages in chronological order.

Replies automatically use the original message's sender, subject, and threading headers. New messages can include a client identifier for retry idempotency. Drafts may be sent immediately or scheduled for a specified time. Webhooks deliver signed JSON POST events, including received, delivered, bounced, complained, and rejected messages, and failed deliveries are retried with backoff.

The local server keeps no application state or data on disk. Tool failures are returned as MCP tool errors with the relevant HTTP status, allowing an agent to distinguish authentication failures from plan limits and other API responses.

## Setup and configuration

A local stdio installation requires Node.js package execution through `npx` and the `SENTFROMAI_API_KEY` environment variable. Configure the key in the MCP host's protected credential settings rather than placing it in prompts, shell history, source control, or logs. `SENTFROMAI_BASE_URL` can override the default API endpoint when required.

Example MCP configuration:

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

A hosted option is available at `https://api.sentfrom.ai/mcp` over Streamable HTTP. Authenticate with a Bearer token or an `x-api-key` header. OAuth-capable hosts can use SentFromAI's authorization server. The hosted endpoint requires authentication for MCP initialization and tool discovery.

An existing API key can be used directly. Agent onboarding is performed through SentFromAI's REST API, not through an MCP tool; the resulting key is then supplied to the server.

## Tools and capabilities

- Manage inboxes and their addresses, including inbox creation, listing, and permanent deletion.
- Send new messages, reply with correct threading headers, and forward messages with quoted content and attachments.
- Search messages by keyword, meaning, or a combination, then fetch complete messages or threads.
- Create, schedule, list, and send drafts.
- Register custom domains and inspect DKIM, SPF, DMARC, and verification status.
- Create, list, and delete signed event webhooks.
- Add, inspect, and remove tenant-wide allow or block rules for addresses and domains.

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

