agent-mail-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-mail-mcpcreate a draft letter to send a birthday card to my mom"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-mail-mcp - Send physical mail from an AI agent
An open MCP server for physical mail. Use PostalForm to create reviewable mail drafts, hosted checkout sessions, validate-only quotes, and explicitly approved agent-payable mail through MPP (Machine Payment Protocol) or x402 physical mail.
This repo is the reference implementation and example pack for terms like "send physical mail from an AI agent", "MCP server for physical mail", "agent-payable mail", "x402 physical mail", "pay for mail with x402", and "MPP mail".
Quick Start
Run the local stdio MCP server:
npm install
npm run serverOr configure an MCP client to run it from npm after publication:
{
"mcpServers": {
"agent-mail": {
"command": "npx",
"args": ["-y", "@postalform/agent-mail-mcp"]
}
}
}The local server exposes safe agent-mail tools:
Tool | Purpose | Side effect |
| Returns PostalForm MCP, OpenAPI, x402, A2A, and docs URLs | Read-only |
| Lists live PostalForm remote MCP tools | Read-only |
| Validates and quotes a letter machine-order payload | No payment, printing, or mailing |
| Creates an unpaid hosted-checkout draft | No mail is sent until checkout is reviewed and paid |
Related MCP server: MultiMail
Remote PostalForm MCP
If your client supports remote streamable HTTP MCP servers, you can connect directly:
https://postalform.com/mcpFor most agents, the default pattern should be:
draft -> preview -> approve/pay -> send -> trackHosted checkout is the safer default for chat-style assistants because the owner reviews the PDF, sender, recipient, mailing options, and price before PostalForm prints or posts real mail. The local confirm_create_unpaid_draft flag is a soft client-side guard for creating an unpaid draft, not proof of human payment approval.
Validate Before Paying
Validate a machine-order payload without sending mail:
POSTALFORM_VALIDATE_EXAMPLE=1 npm run rest:validate-letterDirect MPP (Machine Payment Protocol) or x402 machine payment should only be used when the runtime already has explicit owner approval, a spend limit, and retry-safe request IDs.
Examples
Path | What it demonstrates |
Claude Desktop and Claude Code setup for a local agent-mail MCP server | |
Creating an unpaid PostalForm checkout draft for one letter | |
Validate-first x402 and MPP machine-order payloads | |
Wrapping PostalForm validation as a LangChain-style tool | |
OpenAI Responses API remote MCP configuration |
Discovery
Canonical PostalForm URLs:
Field | URL |
MCP endpoint |
|
Developer docs |
|
Agent guide |
|
OpenAPI |
|
MCP registry manifest |
|
MCP server card |
|
A2A Agent Card |
|
x402 discovery |
|
LLM overview |
|
Run the live discovery check:
npm run check:discoveryRepository Map
Path | Purpose |
Local stdio MCP server for agent-mail discovery, validation, and unpaid checkout drafts | |
Repo-level MCP discovery descriptor | |
Directory-ready local MCP server descriptor | |
x402 physical mail payment descriptor | |
First-run guide | |
Tool behavior and side-effect reference | |
MPP and x402 guidance | |
Abuse, privacy, and approval guidance | |
Copy-paste directory listing fields |
Directory-Ready Summary
PostalForm is a remote MCP server and physical-mail API for AI agents. Agents can create reviewable mail drafts from PDFs, text, HTML, Markdown, RTF, or form payloads, return hosted checkout for human approval, or use owner-approved MPP/x402 machine-payment flows to pay for and track real postal mail.
Safety Defaults
Prefer hosted checkout for chat-style agents.
Require approval before sharing private documents, addresses, or payment credentials.
Use stable
request_idvalues for direct machine-payment retries.Show a PDF preview when available before payment.
Enforce spend limits outside the model prompt.
Do not use PostalForm for spam, harassment, illegal content, checks, keys, packages, notarization, process serving, or legal advice.
Maintainers
Maintained by PostalForm and Gabriel Garrett (ggaabe), who also maintains rrule-temporal.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/postalform/agent-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server