Lob MCP server
105 operations0 webhooks
Address verification and print mail with Lob - verify US and international addresses, send and track postcards, letters, checks, self mailers, snap packs and booklets, run bulk-mail campaigns, and manage templates, bank accounts, billing groups and short links.
Try Lob with your agent
Connect Lob, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Lob on my account, then run one read-only example and show me the result.
Lob tools and triggers
Tools are what your agent can do in Lob through Corsair's MCP server. Triggers are the Lob events a routine can start from.
Uploads
- CreateWrite
Create an audience upload for a campaign and map its CSV columns to address fields and merge variables
uploads.create
- Create ExportWrite
Start an export of an upload's rows (all, failures or successes)
uploads.createExport
- DeleteDestructive
Permanently delete an audience upload
uploads.delete
- GetRead-only
Read one upload by its upl_ ID, including processing state and row counts
uploads.get
- Get ExportRead-only
Read an upload export, including its download URL once ready
uploads.getExport
- Get ReportRead-only
Page through an upload's per-row validation report
uploads.getReport
- ListRead-only
List audience uploads, optionally for one campaign
uploads.list
- UpdateWrite
Change an upload's column mappings or metadata
uploads.update
- Upload FileWrite
Attach the audience CSV file (at most 50 MiB here) to an upload; Lob validates its rows asynchronously
uploads.uploadFile
Buckslips
- CreateWrite
Create a buckslip (a letter insert) from front and back artwork. Printing happens only when you order stock
buckslips.create
- Create OrderDestructive
Order a print run of a buckslip (at least 5,000). Lob prints and bills the whole order
buckslips.createOrder
- DeleteDestructive
Permanently delete a buckslip
buckslips.delete
- GetRead-only
Read one buckslip by its bck_ ID, including stock quantities and status
buckslips.get
- ListRead-only
Page through buckslips with cursors
buckslips.list
- List OrdersRead-only
List the print orders placed for a buckslip
buckslips.listOrders
- UpdateDestructive
Change a buckslip's description or auto-reorder settings. Auto-reorder places billed print orders when stock runs low
buckslips.update
Cards
- CreateWrite
Create a card (a plastic or paper insert) from front and back artwork. Printing happens only when you order stock
cards.create
- Create OrderDestructive
Order a print run of a card (at least 10,000). Lob prints and bills the whole order
cards.createOrder
- DeleteDestructive
Permanently delete a card
cards.delete
- GetRead-only
Read one card by its card_ ID, including stock quantities and status
cards.get
- ListRead-only
Page through cards with cursors
cards.list
- List OrdersRead-only
List the print orders placed for a card
cards.listOrders
- UpdateDestructive
Change a card's description or auto-reorder settings. Auto-reorder places billed print orders when stock runs low
cards.update
Campaigns
- CreateWrite
Create a draft campaign for bulk mail. Nothing mails until campaigns.send
campaigns.create
- DeleteDestructive
Permanently delete a campaign
campaigns.delete
- GetRead-only
Read one campaign by its cmp_ ID, with its creatives and uploads
campaigns.get
- ListRead-only
Page through campaigns with cursors
campaigns.list
- SendDestructive
Send a campaign: Lob prints, mails and bills a piece for every row of its audience upload. Cannot be undone after the cancel window
campaigns.send
- UpdateWrite
Change a campaign's name, schedule, use type or other settings
campaigns.update
Bank Accounts
- CreateWrite
Add a US bank account for checks. Lob sends micro-deposits that bankAccounts.verify confirms
bankAccounts.create
- DeleteDestructive
Permanently delete a bank account. Checks can no longer draw on it
bankAccounts.delete
- GetRead-only
Read one bank account by its bank_ ID, including whether it is verified
bankAccounts.get
- ListRead-only
Page through bank accounts with cursors, date and metadata filters
bankAccounts.list
- VerifyWrite
Verify a bank account with its two micro-deposit amounts or its descriptor code
bankAccounts.verify
Links
- CreateWrite
Create a short link that redirects to a long URL
links.create
- DeleteDestructive
Permanently delete a short link; printed copies stop resolving
links.delete
- GetRead-only
Read one short link
links.get
- ListRead-only
Page through short links, optionally by campaign or domain
links.list
- UpdateWrite
Change a short link's target URL, title or metadata
links.update
Template Versions
- CreateWrite
Add a new HTML version to a template
templateVersions.create
- DeleteDestructive
Permanently delete a template version (not the published one)
templateVersions.delete
- GetRead-only
Read one template version by its vrsn_ ID
templateVersions.get
- ListRead-only
Page through a template's versions
templateVersions.list
- UpdateWrite
Change a template version's description, engine or required variables
templateVersions.update
Templates
- CreateWrite
Save an HTML template that mailpieces can name by tmpl_ ID
templates.create
- DeleteDestructive
Permanently delete a template and its versions
templates.delete
- GetRead-only
Read one template by its tmpl_ ID, with its published version
templates.get
- ListRead-only
Page through templates with cursors, date and metadata filters
templates.list
- UpdateWrite
Change a template's description or which version is published
templates.update
Addresses
- CreateWrite
Create a US or international address in the Lob address book for reuse as a mail to or from address
addresses.create
- DeleteDestructive
Permanently delete an address book entry. Lob marks it deleted and does not restore it
addresses.delete
- GetRead-only
Read one address book entry by its adr_ ID
addresses.get
- ListRead-only
Page through the address book with before/after cursors, optional metadata and date filters
addresses.list
Billing Groups
- CreateWrite
Create a billing group to split mail costs by team or client
billingGroups.create
- GetRead-only
Read one billing group by its bg_ ID
billingGroups.get
- ListRead-only
Page through billing groups with limit/offset, date filters and sorting
billingGroups.list
- UpdateWrite
Change a billing group's name or description
billingGroups.update
Booklets
- CancelDestructive
Cancel a booklet before it goes to production. A cancelled piece cannot be restored
booklets.cancel
- GetRead-only
Read one booklet by its ord_ ID, including status and tracking events
booklets.get
- ListRead-only
Page through booklets with cursors and filters (status, campaign, send date, metadata)
booklets.list
- SendDestructive
Print and mail a real booklet. Billed per piece and not recallable once in production; pass an idempotency_key
booklets.send
Checks
- CancelDestructive
Cancel a check before it goes to production. A cancelled check cannot be restored
checks.cancel
- GetRead-only
Read one check by its chk_ ID, including status, tracking events and the PDF preview URL
checks.get
- ListRead-only
Page through checks with cursors and filters (status, send date, metadata)
checks.list
- SendDestructive
Print and mail a real check drawn on a verified bank account. Moves money and is billed per piece; pass an idempotency_key so a replay returns the original check
checks.send
Domains
- CreateWrite
Register a custom domain for short links
domains.create
- DeleteDestructive
Permanently delete a short-link domain; its links stop resolving
domains.delete
- GetRead-only
Read one short-link domain, including whether its DNS is configured
domains.get
- ListRead-only
Page through short-link domains
domains.list
Informed Delivery
- CreateWrite
Create a USPS Informed Delivery campaign (an email preview with a ride-along image and link). Lob approves it on create unless status is 'pending_approval'
informedDelivery.create
- GetRead-only
Read one Informed Delivery campaign by its USPS campaign ID
informedDelivery.get
- ListRead-only
List USPS Informed Delivery campaigns
informedDelivery.list
- UpdateWrite
Change an Informed Delivery campaign's details or approve it
informedDelivery.update
Letters
- CancelDestructive
Cancel a letter before it goes to production. Works only within the cancellation window; a cancelled piece cannot be restored
letters.cancel
- GetRead-only
Read one letter by its ltr_ ID, including tracking number and events on certified or registered mail
letters.get
- ListRead-only
Page through letters with cursors and filters (status, color, campaign, send date, metadata)
letters.list
- SendDestructive
Send a real letter that Lob prints, stuffs and mails. Each piece is billed and cannot be recalled once in production; pass an idempotency_key so a replay returns the original instead of mailing twice
letters.send
Postcards
- CancelDestructive
Cancel a postcard before it goes to production. Works only within the cancellation window; a cancelled piece cannot be restored
postcards.cancel
- GetRead-only
Read one postcard by its psc_ ID, including print status and the signed PDF preview URL
postcards.get
- ListRead-only
Page through postcards with cursors and filters (status, size, campaign, send date, metadata)
postcards.list
- SendDestructive
Send a real postcard that Lob prints and mails. Each piece is billed and cannot be recalled once in production; pass an idempotency_key so a replay returns the original instead of mailing twice
postcards.send
Self Mailers
- CancelDestructive
Cancel a self mailer before it goes to production. A cancelled piece cannot be restored
selfMailers.cancel
- GetRead-only
Read one self mailer by its sfm_ ID, including status and tracking events
selfMailers.get
- ListRead-only
Page through self mailers with cursors and filters (status, size, campaign, send date, metadata)
selfMailers.list
- SendDestructive
Print and mail a real self mailer (a folded piece, no envelope). Billed per piece and not recallable once in production; pass an idempotency_key
selfMailers.send
Snap Packs
- CancelDestructive
Cancel a snap pack before it goes to production. A cancelled piece cannot be restored
snapPacks.cancel
- GetRead-only
Read one snap pack by its ord_ ID, including status and tracking events
snapPacks.get
- ListRead-only
Page through snap packs with cursors and filters (status, campaign, send date, metadata)
snapPacks.list
- SendDestructive
Print and mail a real snap pack (a sealed pressure-seal mailer). Billed per piece and not recallable once in production; pass an idempotency_key
snapPacks.send
Creatives
- CreateWrite
Add the artwork (a postcard, letter or self mailer creative) to a campaign
creatives.create
- GetRead-only
Read one creative by its crv_ ID
creatives.get
- UpdateWrite
Change a creative's return address, description or metadata
creatives.update
Resource Proofs
- CreateWrite
Render a proof of a postcard, letter or self mailer for review, without mailing anything
resourceProofs.create
- GetRead-only
Read one resource proof by its res_prf_ ID, including the rendered PDF URL
resourceProofs.get
- UpdateWrite
Re-render a resource proof with a different template
resourceProofs.update
Intl Verifications
- BulkRead-only
Verify up to 20 international addresses in one call; each row comes back as a verification or a per-row error. Bills each row on a live key
intlVerifications.bulk
- VerifyRead-only
Verify one international address and get its deliverability, coverage level and parsed components
intlVerifications.verify
Us Verifications
- BulkRead-only
Verify up to 20 US addresses in one synchronous call; each row comes back as a verification or a per-row error
usVerifications.bulk
- VerifyRead-only
Verify one US address with USPS data and get its deliverability, standardized components and confidence score
usVerifications.verify
Account
- Get BalanceRead-only
Read the account's current Lob Credits balance (live keys only; a test key gets 401)
account.getBalance
Autocomplete
- Us AutocompleteRead-only
Complete a partial US address into up to 10 suggestion lines, optionally restricted to deliverable addresses
autocomplete.usAutocomplete
Identity Validation
- ValidateRead-only
Score how likely a person or company is associated with a US address (0-100, with a high/medium/low confidence)
identityValidation.validate
Qr Codes
- ListRead-only
List QR code scan analytics for mailpieces, optionally only scanned codes or given piece IDs
qrCodes.list
Reverse Geocode
- LookupRead-only
Find the US ZIP and ZIP+4 areas nearest a latitude and longitude, sorted by distance
reverseGeocode.lookup
Zip
- Us Zip LookupRead-only
Look up a 5-digit US ZIP code and get its cities, county, FIPS code and default city
zip.usZipLookup
Connect Lob to Claude, ChatGPT or Cursor
- 1
Connect Lob in Corsair
Add your Lob API key once in Corsair. Corsair stores the credential encrypted and makes the Lob API calls for your agent, so it never goes into a prompt or a config file. Connect Lob
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Lob. On a ChatGPT personal plan, connect Lob here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Lob's read and write operations run right away and its 27 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/lob, add the Lob plugin, and connect with an API key. Then call methods like corsair.lob.api.account.getBalance() from your app. Corsair keeps each tenant isolated.
Yes. Lob requires an API key from your Lob account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Lob, GitHub, Notion, Stripe, and the rest. Trigger Lob from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for address verification and print mail with Lob - verify US and international addresses, send and track postcards, letters, checks, self mailers, snap packs and booklets, run bulk-mail campaigns, and manage templates, bank accounts, billing groups and short links. Common builds include sync jobs, admin tooling, and agents that call Lob APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Lob API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/lob in the open repo. When Lob ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Lob data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Lob data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Lob on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 27 destructive Lob operations. You can change a link's mode at hub.corsair.dev/me.