# Postfleet [Health: Active]

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

## Description
Give an AI agent its own email address: send, reply, read, and wait for mail.

## Tools
Capabilities this server exposes over MCP:

- **list_mailboxes** — List the mailboxes you can use, newest first, each with its id and email address. Call this when you need a mailbox_id for any other tool, or to check whether you already have a mailbox before creating one — it is usually the first call in a workflow. Returns every mailbox on the account, or just your own if your API key is scoped to a single mailbox. An empty list means you have none yet — use create_mailbox.
- **create_mailbox** — Create a NEW email mailbox this agent owns. Call this when list_mailboxes shows you have no suitable mailbox yet — mailboxes persist across sessions, so creating a second one for the same purpose strands mail in the first. Returns a working address immediately. Optional slug personalizes the address (agent-<slug>@...). To create the mailbox on a custom domain instead of the shared one (<slug>@yourdomain.com), pass a domain_id from list_domains — the domain must be verified.
- **list_domains** — List the account's custom sending domains with their id, name, and verification status. Call this when you want to create a mailbox on a custom domain (pass the id of a verified domain as create_mailbox's domain_id), or to check whether a domain has finished verifying. Only status "verified" domains can host mailboxes; an empty list means only the shared platform domain is available.
- **create_domain** — Register a NEW custom sending domain on this account. Call this when list_domains does not already include the domain you want to host mailboxes on. Returns the domain id, verification status, and the DNS records to add at your registrar. The domain stays pending until those records are in place — call verify_domain after publishing them. Custom domains require a paid plan. A name that is already registered with Postfleet or the email provider is a conflict, not a success; do not retry with the same name.
- **verify_domain** — Re-check DNS for a custom domain and refresh its verification status. Call this when you have added the records returned by create_domain, or when list_domains still shows pending and you believe DNS has propagated. Returns the current status (pending, verified, or failed). Only a verified domain can be passed to create_mailbox as domain_id.
- **send_email** — Send a new email from one of your mailboxes. Call this when starting a NEW conversation; to answer an email you received, use reply_email instead (it threads correctly). Pass a client_id (any unique string you make up) and reuse the SAME client_id if you retry after an error — that guarantees the email is sent at most once. If the mailbox requires human approval, the send is queued as a draft and returns {draft_id, status:"pending_approval"} instead of a message id — that is NOT a failure and must NOT be retried; the email goes out once a human approves it (check with list_drafts).
- **reply_email** — Reply to an email you received. Call this when answering an existing message — recipient, subject, and conversation threading are derived automatically from the original. Pass a client_id (any unique string you make up) and reuse the SAME client_id if you retry after an error — that guarantees the reply is sent at most once. If the mailbox requires human approval, the reply is queued as a draft and returns {draft_id, status:"pending_approval"} instead of a message id — that is NOT a failure and must NOT be retried; it is sent once a human approves it (check with list_drafts).
- **list_inbox** — List recent messages in a mailbox, newest first, with comprehension status per message. Call this when checking what has arrived; use read_email for full content and extracted data.
- **read_email** — Read one email in full: cleaned body, sanitization report (screened against known hidden-content patterns), classification, and data extracted to the mailbox schema. Call this when you need the content or extraction of a specific message.
- **wait_for_email** — Block until a matching email arrives in a mailbox (or time out). Call this when you just sent an email and need the reply, or are expecting an inbound message — instead of polling list_inbox yourself. Returns the full message on match, or {timed_out:true}.
- **create_draft** — Prepare an email as a draft without sending it. Call this when you want to stage a message for later or for a human to review before it goes out — send it afterward with send_draft. Same fields as send_email, or omit to/subject and pass reply_to_message_id to draft a threaded reply. Returns the draft id with status "draft".
- **list_drafts** — List the open drafts in a mailbox (status draft, pending_approval, or sending), newest first. Call this when you need to see messages you have staged or that are queued waiting on human approval, e.g. after a send returned status "pending_approval".
- **get_draft** — Read one draft in full by its id: recipient, subject, body text, and current status. Call this when you need the content of a specific draft — e.g. to review what is queued for approval after list_drafts, or before editing it with update_draft.
- **update_draft** — Edit the to, subject, or text of a draft that has not been sent yet — omitted fields keep their current value. Call this when a draft needs changes, e.g. a human declined to approve it and you are revising it. The reply target cannot be changed (create a new draft to reply to a different message), and a draft that is already sending or sent can no longer be edited.
- **send_draft** — Send a draft you prepared, by its id. Call this when a staged draft is ready to go out. If the mailbox requires human approval, this returns 202 {draft_id, status:"pending_approval"} — the draft is queued for a human to approve, which is NOT a failure and must NOT be retried; it is sent once approved. Otherwise it sends immediately and returns the message id.
- **delete_draft** — Discard a draft by its id so it will never be sent. Call this when a staged or pending-approval message should be withdrawn — e.g. it is no longer needed or was created by mistake. A draft that is already sending or sent cannot be deleted.

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

```json
"mcpServers": {
  "postfleet": {
    "command": "npx",
    "args": ["-y","@postfleet/mcp"],
    "env": {
      "POSTFLEET_API_KEY": "",
      "POSTFLEET_API_URL": ""
    }
  }
}
```

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

## Documentation

## What the Postfleet MCP server does

The Postfleet MCP server gives an AI agent access to email infrastructure managed by Postfleet. It can create and inspect mailboxes, manage domains, send messages, reply to existing messages, list inbox contents, read email, and wait for incoming mail. Postfleet processes inbound messages by parsing, classifying, extracting information to a schema, and screening for prompt injection before the agent reads the message.

The server also supports a draft-based approval workflow. An agent can create, list, retrieve, update, send, and delete drafts. When a message enters the approval gate, the send operation returns `202 pending_approval`; that status means the message is awaiting approval rather than that delivery failed.

## How it works

The Postfleet MCP server exposes the Postfleet API through MCP. Each tool is a thin wrapper around the corresponding `/api/v1/` REST endpoint, so the API key controls authentication, resource scope, and quotas. A client can connect to the hosted endpoint at `https://api.postfleet.ai/api/mcp` using streamable HTTP and a Bearer token, or launch the npm package locally over stdio.

The hosted connection requires an `Authorization` header containing a `pf_` API key. The local process reads the key from `POSTFLEET_API_KEY`. Separate keys can be used for separate workloads, which allows one key to be revoked without affecting other integrations. Postfleet documents different key scopes: `bootstrap` is limited to mailbox creation, `api` covers mail operations, and `mcp` is intended for MCP clients.

## Setup and configuration

Create a `pf_` API key through Postfleet, then choose a connection mode. For a hosted setup, configure the MCP client with the Postfleet MCP URL and a Bearer authorization header. A raw URL without the header will fail during initialization until authentication is supplied.

For local stdio, run:

```bash
npx -y @postfleet/mcp
```

Set `POSTFLEET_API_KEY` in the process environment. Claude Code can register the same command with its MCP configuration, and Cursor can use either the hosted endpoint or the local package. `POSTFLEET_API_URL` optionally changes the API origin from `https://api.postfleet.ai`, which supports staging or self-hosted deployments.

The repository is a mirror of source developed in the Postfleet application repository. The published local package is `@postfleet/mcp`; building from source uses `npm install` followed by `npm run build`.

## Tools and capabilities

Available operations include:

- Create and list mailboxes.
- List, create, and verify domains.
- Send new email and reply to existing email.
- List inbox messages, read email, and wait for incoming mail.
- Create, inspect, update, send, and delete drafts.

The Postfleet MCP server is suited to agents that need asynchronous email interaction, structured inbound handling, or a human checkpoint before outbound messages are sent.

## Limitations and notes

A valid API key is required, and keys are scoped to particular operations. Do not commit keys to source control or client configuration files that are shared insecurely. Hosted connections must send the Bearer header; configuring only the endpoint is insufficient. A send returning `202 pending_approval` should be handled as an approval state rather than an error. The material does not specify delivery guarantees, mailbox limits, quota values, or supported email providers beyond Postfleet itself.

_Full upstream README: https://allmcps.com/mcp/postfleet/readme_

