---
title: "Mail letters and PDFs from Claude Code"
description: "Add SendForMe to Claude Code with one command. Claude Code can write letters, mail PDFs from your disk, run mail merges from a CSV, and track delivery."
url: https://sendforme.co/agents/claude-code
updated: 2026-11-29
---

# Mail letters and PDFs from Claude Code

> Run claude mcp add --transport http sendforme https://sendforme.co/mcp, then /mcp in a session, pick sendforme and choose Authenticate. Nothing to fill in. Claude Code can then write and mail letters, upload a PDF from your disk with curl, and mail-merge a CSV.

**Say to your agent:** "Mail ./invoices/2026-11-acme.pdf to Acme Corp's accounts payable, First-Class. Show me the proof link first."

Claude Code is the easiest place to mail a document you already have. It can read your files, upload a PDF with one command, build a mail merge from a spreadsheet, and follow letters to delivery.

## Install in Claude Code

### One command

```bash
claude mcp add --transport http sendforme https://sendforme.co/mcp
```

Add `--scope user` to make it available in every project instead of just this one. Check it with `claude mcp list`, or `/mcp` inside a session.

### Or commit it to a project

Commit a `.mcp.json` at your repo root so everyone on the project gets it:

```json
{
  "mcpServers": {
    "sendforme": {
      "type": "http",
      "url": "https://sendforme.co/mcp"
    }
  }
}
```

## Signing in

Run `/mcp` inside Claude Code, pick `sendforme` and choose **Authenticate**. A browser tab opens and closes by itself. There's no email, no form and no card. That creates your SendForMe account, and Claude Code remembers it for every session in that scope.

### With an API key instead

For CI, servers or headless runs, make a key on the [account page](/account) and pass it as a header:

```bash
claude mcp remove sendforme
claude mcp add --transport http sendforme https://sendforme.co/mcp \
  --header "Authorization: Bearer sfm_your_key"
```

Letters go straight to your account with no setup link (as long as there's credit). Set a price limit and an undo window for unattended use: see [approvals and limits](/docs/approvals-and-limits).

## Your first letter

The first time Claude Code sends a real letter, SendForMe returns a setup link like `https://sendforme.co/go/QF6S-2U4Z` and Claude Code prints it. Open it, check the proof, and add credit once. Claude Code waits on `wait_for_setup` and notices as soon as you pay; the letter goes out by itself. After that, letters go straight out with a 10-minute undo window. More in [setup links](/docs/setup-links).

## Things to try

Mail a PDF from your disk:

> Mail ./letters/appeal.pdf to Blue Cross Blue Shield of Texas appeals, certified with a return receipt. Check whether it needs an address page.

Behind the scenes:

```bash
# upload_file returns a one-time URL; Claude Code runs:
curl -T ./letters/appeal.pdf "https://sendforme.co/u/<token>"
# then preview_letter with pdf: "f_..."
```

Write a letter from notes in the repo:

> Read notes/deposit.md and write a security deposit demand letter to my old landlord from it. Texas. Certified with a return receipt.

Mail merge from a CSV:

> Mail the letter in holiday-2026.md to everyone in contacts.csv, with {{first_name}} in the greeting. Preview the batch, show me the total and two proofs, then wait for me.

## Tips for Claude Code

- **PDFs:** Claude Code is told to upload with `curl -T`. If your PDF has text in the top-left corner of page 1, the preview adds an address page and says so. Leave that 4.7 x 3 inch corner blank to skip it. See [bring your own PDF](/docs/bring-your-own-pdf).
- **Proofs open in your browser.** Ask Claude Code to `open` the proof link (macOS) so you see it right away.
- **Permissions:** allow the read-only tools (`preview_letter`, `get_letter`, `list_letters`, `check_address`, `letter_guide`) in your settings, and leave `send_letter` asking. Claude Code then works freely but checks with you before mailing.
- **Headless:** `claude -p "..." --allowedTools "mcp__sendforme__*"` with an API key header. Use an `Idempotency-Key` with the [REST API](/docs/rest-api) instead if a script, not a model, decides what to send.
- **Save defaults:** "save my return address and make serif with a full letterhead the default" calls the `account` tool once, so you don't repeat it.

## The skill

Save the skill so Claude Code loads it on its own:

```bash
mkdir -p ~/.claude/skills/sendforme
curl -o ~/.claude/skills/sendforme/SKILL.md https://sendforme.co/skill.md
```

## Related

- [Codex](/agents/codex)
- [MCP reference](/docs/mcp)
- [REST API](/docs/rest-api)

## FAQ

### How does Claude Code send a PDF from my computer?

It calls upload_file, which returns a one-time upload URL, then runs curl -T ./file.pdf against it and passes the file id to preview_letter.

### Can I use it in a script without signing in?

Yes, with an API key from the account page as an Authorization header. See below.

### Does it work in headless mode?

Yes. With claude -p, allow the sendforme tools and use an API key, since nobody is there to click Authenticate.
