Direct mail API for developers and growth teams. Read the docs →
Blog

Direct mail API blog: Developers

Mailing from code: requests, batches, webhooks and errors.

Page 1 of 2

> MCP: Add ServerHTTPhttps://mailr.dev/mcpCommand (stdio)DevelopersVS Code MCP: add a remote server for GitHub Copilot, with a direct mail API as the exampleThe new mcp-config.json and .mcp.json files, adding a server from the UI or a link, signing in, Manual approvals, plan policies, and where the cloud agent can't use it.Mailr team5 min readPOST /mcp 401Sign in with Mailr13 toolsDevelopersRemote MCP server: how we built one for a direct mail API, from OAuth to the send buttonOne stateless Streamable HTTP endpoint, OAuth sign-in instead of API keys, honest tool annotations, and a prepare-then-send pattern that makes a person approve the total.Mailr team7 min read.cursor/mcp.json"mailr": { "url": "https://mailr.dev/mcp" }mailrDevelopersCursor MCP: add a remote server, sign in, and control approvals, with a direct mail API as the examplemcp.json and install links, Cursor's OAuth sign-in, Auto-review vs Allowlist approvals since Cursor 3.6, a permissions.json allowlist, and a worked example.Mailr team4 min read$ claude mcp add \ --transport http mailr \ https://mailr.dev/mcp> /mcp · signed inDevelopersClaude Code MCP: add a remote server, sign in, and set permissions, with a direct mail API as the exampleclaude mcp add in one line, local, project and user scopes, signing in with /mcp, permission rules for MCP tools, and Mailr's server as the worked example.Mailr team4 min readconfig.toml[mcp_servers.mailr]url = "https://mailr.dev/mcp"CLIIDEChatGPT appDevelopersCodex MCP: add a remote server, sign in, and set approvals, with a direct mail API as the examplecodex mcp add and codex mcp login, the config.toml entry the CLI, IDE extension and ChatGPT desktop app share, approvals for write tools, and a worked example.Mailr team3 min read2 elm st apt 4, tempe az2 ELM ST APT 4TEMPE AZ 85281-1234DeliverableDevelopersUSPS address verification API: what the Addresses API costs and allows since August 2026USPS's own API now needs a signed license and costs per call, one address at a time. Access, fees, what it returns, the code, and the alternatives.Mailr team5 min readcustomers.csvDesign ADesign BHoldoutResponses by groupDevelopersDirect mail campaign by API: plan it, test it, send it and count what came backSeven steps from goal to results: check the list, give everyone a code, proof in test mode, split-test two designs against a holdout, and measure.Mailr team6 min readDEC15LeoPicked 14 to 21 days outBirthday cardDevelopersCustomer birthday cards by API: mail on a date from your own databasePick birthdays 14 to 21 days out every day, mail them as one batch, and log who got one so nobody gets two. With the daily job and a signup drip.Mailr team6 min read
first_namepromo_code
AdaPEAK15
SamPEAK15
Hi Ada,Code PEAK15
DevelopersVariable data printing APIMap CSV columns to merge fields, check proofs on a free test key, verify addresses and mail batches of 1,000 from Node or Python.Mailr team13 min read
START SENDING

Put your first postcard in the mail

Create a key, send a test to yourself, and check the proof before anything prints.

Start sending
  • Postcards, flats and folded mailers
  • A proof before anything prints
  • Free test mode: nothing prints, nothing charges
  • A status for every piece

Free price sheet

Get the price sheet by email

Every postcard, letter, mailer and print product on every plan, with postage included.

We’ll email you the price sheet. By continuing you agree to the Terms and Privacy Policy.

Download the template kit?

mailr-kit.zip · about 310 KB · 59 text files

Only HTML, JSON and Markdown files. No programs, scripts or macros, nothing that installs or runs.