---
canonical_url: "https://docs.composio.dev/toolkits/docupost_mcp"
markdown_url: "https://docs.composio.dev/toolkits/docupost_mcp.md"
product: "platform"
version: null
last_updated: null
---

# DocuPost MCP

Price, send, track and cancel physical letters and postcards through DocuPost's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 7
- **Triggers:** 0
- **Slug:** `DOCUPOST_MCP`
- **Version:** 00000000_00

## Tools

### Cancel mailing

**Slug:** `DOCUPOST_MCP_CANCEL_MAILING`

Cancels a letter, postcard or check that hasn't been printed yet. Queued pieces can always be canceled and were never charged; accepted pieces can be canceled during their cancellation window and are refunded.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | The ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...". |

### Get account

**Slug:** `DOCUPOST_MCP_GET_ACCOUNT`

Returns the DocuPost account's current balance in USD.

### Get mailing

**Slug:** `DOCUPOST_MCP_GET_MAILING`

Returns one letter, postcard or check by ID: its status (queued, processing, accepted, failed, canceled), cost, delivery progress and tracking, and a dashboard_url link to it. Mail sent from the DocuPost dashboard can be looked up as "letter_<dashboard id>" (likewise postcard_, check_).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | The ID from a previous result, e.g. "letter_01JD4Q8Z...", "postcard_...", "check_...". |

### List letters

**Slug:** `DOCUPOST_MCP_LIST_LETTERS`

Lists the account's letters, newest first, including ones sent from the DocuPost dashboard, with each letter's recipient, status and date. Filter by date with created_after; page with cursor.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 25. |
| `cursor` | string | No | next_cursor from the previous page. |
| `created_after` | string | No | ISO 8601 date-time. Default: 30 days ago. Earliest 2024-04-27. |

### Quote price

**Slug:** `DOCUPOST_MCP_QUOTE_PRICE`

Prices a letter, postcard or check with the same calculator as the DocuPost dashboard. Nothing is sent or charged. Option combinations that can't be mailed return an error listing each problem. Letters are priced by page count (roughly 3,000 characters of text per single-sided page); a sent letter is charged for the pages its document actually prints.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `size` | string ("4x6" | "6x9") | No | Postcards. Default 4x6. |
| `type` | string ("letter" | "postcard" | "check") | Yes |  |
| `color` | boolean | No | Letters. Default false. FedEx Overnight is always color. |
| `pages` | integer | No | Letters: required. Pages in the document. |
| `country` | string | No | Letters and postcards: recipient country, 2-letter ISO code. Default US. |
| `quantity` | integer | No | How many pieces to price. Default 1. |
| `mail_class` | string ("usps_first_class" | "usps_standard" | "usps_priority" | "usps_priority_express" | "fedex_overnight" | "usps_first_class_tracked") | No | Letters: usps_first_class, usps_standard, usps_priority, usps_priority_express, fedex_overnight. Checks: usps_first_class, usps_first_class_tracked, usps_priority, fedex_overnight. Default usps_first_class. |
| `double_sided` | boolean | No | Letters. Default true. |
| `extra_service` | string ("certified" | "certified_return_receipt") | No | Letters, usps_first_class only. |
| `return_envelope` | string ("none" | "standard" | "prepaid") | No | Letters. Default none. |
| `attachment_pages` | integer | No | Checks: pages in the attached PDF, if any. |

### Send letter

**Slug:** `DOCUPOST_MCP_SEND_LETTER`

Mails a letter through USPS (or FedEx Overnight), printed from HTML or a public PDF link. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. The letter is queued and submitted within seconds; its status then becomes accepted (with its cost) or failed (with a reason). HTML must be simple, print-friendly markup (headings, paragraphs, lists, tables, inline styles), at most 9,000 characters, without scripts or external fonts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to` | object | Yes | Recipient. |
| `from` | object | Yes | Sender and return address (US). No company. |
| `color` | boolean | No | Default false. |
| `document` | object | Yes | Exactly one of "html" or "url". |
| `mail_class` | string ("usps_first_class" | "usps_standard" | "usps_priority" | "usps_priority_express" | "fedex_overnight") | No | Default usps_first_class. fedex_overnight: US only. |
| `description` | string | No | Private note shown in the dashboard, never printed. |
| `double_sided` | boolean | No | Default true. |
| `extra_service` | string ("certified" | "certified_return_receipt") | No | Certified mail. usps_first_class only. |
| `idempotency_key` | string | No | Optional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy. |
| `return_envelope` | string ("none" | "standard" | "prepaid") | No | Default none. |
| `envelope_logo_url` | string | No | Logo image on the envelope (DocuPost Premium). |
| `custom_envelope_id` | string | No | Only if the user gives you one; DocuPost provides these. |

### Send postcard

**Slug:** `DOCUPOST_MCP_SEND_POSTCARD`

Mails a 4x6 or 6x9 postcard, USPS First Class, from two public image links. This is real mail: it is printed and posted and the account balance is charged, unless the account is in Sandbox Mode. Image size: 1875x1275 px for 4x6, 2775x1875 px for 6x9; other aspect ratios are stretched. The back needs a clear area for the address and postage.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `to` | object | Yes | Recipient. |
| `from` | object | Yes | Sender (US). No company. |
| `size` | string ("4x6" | "6x9") | No | Default 4x6. |
| `description` | string | No | Private note shown in the dashboard, never printed. |
| `back_image_url` | string | Yes |  |
| `front_image_url` | string | Yes |  |
| `idempotency_key` | string | No | Optional. Without it, an identical request made within 10 minutes is treated as a retry and returns the first piece instead of mailing another. A new unique value mails an identical second copy. |
