# mailsnail [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/iancollins27/mailsnail  
**GitHub Stars:** 0  
**npm Downloads (last month):** 210  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mailsnail

## Description
Send USPS letters, postcards & certified mail from any agent. No signup; pay-per-piece via Stripe.

## Tools
Capabilities this server exposes over MCP:

- **verify_address** — Verify and normalize a US mailing address. Run this on user-provided addresses before sending mail.
- **preview_letter** — Generate a PROOF of a letter WITHOUT charging or mailing. Returns `proof_url` (a viewable PDF of exactly what will be printed and mailed, including the address cover sheet), the CASS-verified recipient address, the exact price, and a `draft_id`. Best practice: call this FIRST, show the user the proof_url and price, get explicit confirmation, then call send_letter with the returned draft_id + a payment_token. Managed/gateway mode only.
- **send_letter** — Send a physical letter via USPS. RECOMMENDED FLOW: first call preview_letter, show the user the returned proof_url + price, get explicit confirmation, then call send_letter with the returned `draft_id` and a `payment_token` — this charges and mails exactly the proofed letter. You may also send one-shot by providing the full letter (to, from, and body_text or file_url) plus payment_token, without a draft_id. `body_text` (plain text, rendered server-side) is managed/gateway-mode only; click2mail/lob require file_url. Use `extra_service: 'certified'` for certified mail (recommended for legal notices).
- **send_postcard** — Send a physical postcard. Provide a public URL to a PDF (front + back combined for Click2Mail; separate front/back for Lob).
- **get_letter** — Fetch the status of a previously sent letter by id.
- **list_letters** — List recent letters (Lob only — Click2Mail does not expose a list endpoint).
- **cancel_letter** — Cancel a letter before it enters production. Cancellation windows are short and provider-specific.

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

```json
"mcpServers": {
  "mailsnail": {
    "command": "npx",
    "args": ["-y","mailsnail"]
  }
}
```

## Documentation

## What mailsnail MCP server does

The mailsnail MCP server gives an AI agent an interface for creating and managing physical US mail. It supports letters, postcards, and certified letters, including messages rendered from text into printable output by the gateway. Agents can verify addresses, inspect a letter preview and price, submit mail, check status, list previous pieces, and cancel eligible pieces.

The service supports four operating patterns. Managed mode uses the hosted service at `api.mailsnail.dev` and charges per piece through Stripe Shared Payment Tokens. Gateway mode uses a self-hosted Mailsnail gateway with provider credentials held in your environment. BYOK modes connect directly to Click2Mail or Lob, and a failover chain can route across providers when the safety contract confirms that a retry will not duplicate a paid or produced item.

## How it works

The mailsnail MCP server is available as the `mailsnail` package and can run over MCP with a command such as `npx -y mailsnail`. A hosted connector is also available at `https://api.mailsnail.dev/mcp` for clients that support remote MCP servers. The repository separately provides a provider-neutral core and a self-hostable REST gateway.

Mail is dry-run by default. Live sending requires `MAIL_MCP_ALLOW_LIVE=1`. Before charging or producing a piece, `preview_letter` can return a proof PDF and the exact price. The server also applies per-session spending limits. In managed mode, a paid piece that fails to mail is automatically refunded according to the project’s safety behavior.

Provider failover is intentionally limited. The next provider is used only when the previous provider reports that production did not begin and no payment moved. This avoids creating duplicate certified letters when the outcome is uncertain.

## Setup and configuration

For a local MCP setup, add the package to a client that supports MCP. The hosted connector can be added as a custom connector and then authenticated according to the setup instructions referenced by the project. Managed mode needs no provider credentials. Gateway and direct-provider modes require the credentials for the selected provider in the relevant environment.

Network policies must permit `api.mailsnail.dev` on HTTPS for managed mode. Self-hosted gateways and direct Click2Mail or Lob connections require access to their configured hosts. `mailsnail doctor` checks reachability and reports transport, proxy, and TLS issues without sending mail. Proxy environments can use Node’s environment proxy support or an installed `undici` dependency; `NODE_EXTRA_CA_CERTS` can provide a trusted CA bundle for TLS-inspecting proxies.

## Tools and capabilities

The package exposes these tools:

- `doctor` checks connectivity and configuration.
- `verify_address` validates a recipient address.
- `preview_letter` creates a proof and price before sending.
- `send_letter` and `send_postcard` submit mail.
- `get_balance` and `top_up` manage managed-mode funds.
- `get_letter` and `get_postcard` retrieve piece details.
- `list_letters` lists letters, and `cancel_letter` requests cancellation.

Certified mail is selected with `extra_service: "certified"` when supported by the request. The project is US-only at present and is intended for legitimate mail; provider terms and USPS rules apply.

## Limitations and notes

The project describes its status as early. Current supported mail types are letters, certified letters, and postcards in the United States. Additional providers such as PostGrid and Stannp are described as future work, so they should not be assumed to be available.

Managed mode is not the only deployment option: the open provider layer allows teams to hold credentials themselves or operate the gateway. However, direct provider use, gateway setup, billing, and network access require configuration outside the default no-credential managed path. Live sending also remains disabled until explicitly enabled.

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

