AgentPostage

Send PDFs as physical US mail from AI agents. Check prices, send First-Class or Certified Mail, track letters and retrieve return receipts. Remote HTTP MCP with a user-supplied API key. Mailing requires prepaid funds.

Hosted MCP Server

npx add-mcp 'https://agentpostage.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

AgentPostage

Your agent can write the letter. Now it can mail it.

AgentPostage turns a PDF, a US return address and a US recipient address into physical mail. Send bank disputes, gym cancellations, credit bureau requests, notices and completed forms from your agent. Printing, an envelope, an address coversheet and US postage are included.

This repository contains a portable mailing skill, Claude Code, Codex and Cursor plugins, a Gemini CLI extension, and a standalone Node.js CLI. Connect through MCP or the HTTP API, or use a private GPT Action in ChatGPT.

Start here

  1. Create and verify your account at Connect, accept the service policies and create a named API key.
  2. Add prepaid funds at Billing. The minimum payment is $10. There is no subscription.
  3. Put the key in your agent's secret store as AGENTPOSTAGE_API_KEY, then follow your agent setup. Never paste it into a conversation.

Install the skill for a supported agent with the skills CLI:

npx skills add ctxrs/agentpostage --skill postage

Choose the agent and installation scope when prompted. The skill is named postage. Use /postage in clients with skill slash commands, or $postage in Codex. The skill includes its CLI, with no package dependencies. Installing it does not send mail or fund an account.

For any agent with shell access and Node.js 22+, the CLI needs no package installation:

curl -fsS https://agentpostage.com/agentpostage.mjs -o agentpostage.mjs
node agentpostage.mjs --help
node agentpostage.mjs balance
node agentpostage.mjs price --pages 3 --service first_class

Review downloaded code before running it. Balance and price checks do not send mail. The CLI source is also included in this repository.

Mail my gym cancellation PDF to [recipient address] using AgentPostage First-Class, with [my return address]. Record the letter ID and cost, then check its mailing status.

Your agent acts within the authority and limits you have already delegated. AgentPostage does not add a per-letter approval workflow.

More prompts cover bank disputes, credit bureau requests, tracking and return receipts.

Choose your connection

Agent or runtimeConnection
OpenClaw, Hermes AgentInstall the skill with shell access, or use their remote MCP configuration
CodexInstall the repo-local skill plugin, or configure HTTP MCP with a Bearer environment variable
Claude CodeInstall the skill plugin, or connect through remote HTTP MCP
CursorImport the repository as a plugin, install the portable skill, or connect through remote HTTP MCP
Gemini CLIInstall the extension for remote MCP and the shared mailing instructions
ChatGPTPrivate custom GPT with Actions and API-key authentication
Muse, Grok bots, other tool-capable runtimesCLI, HTTP or remote MCP where the runtime exposes those capabilities

Setup instructions explain prerequisites and limits. A model name alone does not provide tools or permission to send mail.

What it costs

Retail prices in USD, tariff 2026-09-17-retail:

ServiceFirst black-and-white PDF page
First-Class$4
First-Class with Homeowner Statement Enclosed endorsement$4
First-Class flat$6
Certified with tracking$12
Certified with tracking and electronic return receipt$15

Each additional PDF page is $0.30. Color adds $0.30 per PDF page, including the first. Non-white paper adds $0.10 per document sheet. An unstamped reply envelope adds $0.50, or $1.50 for a twelve-pack. Duplex keeps the per-page price and uses two document pages per sheet. The address coversheet is included, without an extra page or sheet charge.

You can check an exact price using the document's actual page count and print options. A price check does not hold a rate. Sending fixes the current price when the letter is queued. See the current pricing reference.

Send with care

Sending queues real, paid mail immediately. Use the document, addresses, service and print options covered by the user's existing delegation. Humans and agent hosts manage their own spending limits and permissions. Save one idempotency key per intended letter and reuse it with identical input after a timeout. A new key can create duplicate mail.

queued means saved for sending. It does not mean mailed. First-Class ends at confirmed mailing, without individual delivery confirmation. Certified can provide delivery evidence, and an electronic return receipt may arrive later.

The service accepts PDFs and US addresses. It does not draft documents, guarantee legal outcomes or promise a delivery date. Your agent can help prepare a PDF separately.

Reference and development

Run the offline checks with Node.js 22+:

node --test tests/*.test.mjs

Tests use a local mock API and synthetic data. They do not send mail or charge an account. Integration files are MIT licensed. Mailing is a paid service governed by the policies accepted during account setup.