About Postfleet
Postfleet provides email infrastructure for AI agents, parsing and screening inbound messages before they are read. It supports mail operations and a draft approval lifecycle through hosted or local deployment.
Key features
- 01Create and manage mailboxes and domains
- 02Send and reply to email
- 03List, read, and wait for incoming mail
- 04Parse and screen inbound messages
- 05Manage drafts with approval before sending
Use cases
- 01Give an AI agent its own email address
- 02Screen inbound mail before agent processing
- 03Require human approval before sending drafts
MCP support
Exposes mailbox, domain, and email tools to MCP clients over hosted Streamable HTTP or a local stdio server. API keys authenticate access.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api.postfleet.ai/api/mcpclaude mcp add --transport http ai-postfleet-postfleet https://api.postfleet.ai/api/mcp{"mcpServers":{"ai-postfleet-postfleet":{"type":"http","url":"https://api.postfleet.ai/api/mcp"}}}Open in Cursor{"servers":{"ai-postfleet-postfleet":{"type":"http","url":"https://api.postfleet.ai/api/mcp"}}}Open in VS Code{"mcpServers":{"ai-postfleet-postfleet":{"type":"http","url":"https://api.postfleet.ai/api/mcp"}}}{"mcpServers":{"ai-postfleet-postfleet":{"serverUrl":"https://api.postfleet.ai/api/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://api.postfleet.ai/api/mcpAuth requiredTools
Details
From the project READMEPostfleet MCP
Give an AI agent its own email address. Postfleet is email infrastructure for agents — inbound is parsed, classified, extracted to your schema, and screened for prompt injection before your agent reads a word.
This repo holds the server source and its plugin manifests. It is a mirror — the code is
developed in the Postfleet application repo and published to npm as
@postfleet/mcp; open issues here, send patches
here, and they land upstream. The server ships two ways:
| Hosted (no install) | https://api.postfleet.ai/api/mcp, streamable HTTP, Authorization: Bearer pf_... |
| Local (stdio) | @postfleet/mcp via npx |
Get a pf_ API key at postfleet.ai.
Tools
list_mailboxes, create_mailbox, list_domains, create_domain, verify_domain,
send_email, reply_email, list_inbox, read_email, wait_for_email — plus the draft
lifecycle (create_draft, list_drafts, get_draft, update_draft, send_draft,
delete_draft) for flows where a human approves before mail goes out. A send that lands in
that gate returns 202 pending_approval, which is not a failure.
Every tool is thin-over-REST — it calls the same /api/v1/ endpoints your key already reaches
(OpenAPI), so auth, scoping, and quotas are enforced once.
Install
Cursor marketplace plugin
The manifests in this repo (mcp.json, .cursor-plugin/plugin.json) declare
headers.Authorization = Bearer ${POSTFLEET_API_KEY} for the hosted server and the same
variable for local npx @postfleet/mcp. Installing the plugin should prompt for that key and
attach it as a real Bearer header — a raw URL add without the header will 401 on
initialize until a key is supplied or the hosted connect card finishes OAuth.
Cursor (manual)
{
"mcpServers": {
"postfleet": {
"url": "https://api.postfleet.ai/api/mcp",
"headers": { "Authorization": "Bearer pf_your_key_here" }
}
}
}
Local stdio (npx -y @postfleet/mcp)
npx -y @postfleet/mcp
Any MCP client that speaks stdio can run that command with POSTFLEET_API_KEY set:
{
"mcpServers": {
"postfleet": {
"command": "npx",
"args": ["-y", "@postfleet/mcp"],
"env": { "POSTFLEET_API_KEY": "pf_your_key_here" }
}
}
}
Claude Code
claude mcp add postfleet --env POSTFLEET_API_KEY=pf_your_key_here -- npx -y @postfleet/mcp
POSTFLEET_API_URL (default https://api.postfleet.ai) overrides the API origin for staging or
self-hosted deployments.
Keys
Keys are scoped — bootstrap can only create mailboxes, api covers mail operations, mcp is the
one to hand a client. Use a separate key per workload so you can revoke one without breaking the
rest. Never commit a key; the manifests in this repo deliberately contain none.
Links
- Registry listing:
ai.postfleet/postfleeton the MCP Registry - npm:
@postfleet/mcp - Docs: postfleet.ai/docs/mcp
Build from source
npm install && npm run build # tsup → dist/
MIT licensed.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.