Bring Direct Mail
to Vercel AI SDK
Create your Vinkius account to connect Lob to Vercel AI SDK and start using all 21 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Lob MCP Server?
Lob MCP Server enables AI agents to send physical mail directly from your applications. Create and mail letters, postcards, and checks programmatically through Lob's print and mail API. Verify US and international addresses, autocomplete partial addresses, and manage your address book. Build reusable HTML templates for personalized mailings. Perfect for automating vendor payments, customer communications, marketing campaigns, payroll checks, and direct mail operations. All mail is printed, processed, and delivered within 24 hours via USPS integration.
Built-in capabilities (21)
Autocomplete a partial US address
Only works if status is still "processing". Cancel a letter before it enters production
Requires name and address_line1. Create a new address in your Lob address book
Requires description, routing_number, account_number, account_type (company/individual), and signatory. Add a bank account for sending checks
Requires recipient (to), bank account ID, and amount. Optional: memo, logo, description. Create and mail a physical check through Lob
Requires recipient (to), sender (from), and file content. Supports HTML templates with merge variables, color options, and mail type selection. Create and mail a physical letter through Lob
Requires recipient (to) and front design. Optional: back design, message, merge variables. Create and mail a physical postcard through Lob
Create a reusable HTML template for mailings
Delete an address from your Lob address book
Get details of a specific address
Get details of a specific check by ID
Get details of a specific letter by ID
Get details of a specific postcard by ID
Get details of a specific template
Use optional limit to control result count. List addresses in your Lob address book
Use optional limit to control result count. List bank accounts in your Lob account
Track payments, audit disbursements. List physical checks sent through Lob
Each letter includes status, tracking number, and expected delivery date. Use optional limit to control result count. List physical letters sent through Lob. Track mailings, check delivery status, and review letter history
Use optional limit to control result count. List physical postcards sent through Lob
List HTML templates for mailings
Verify and standardize a US address
Why Vercel AI SDK?
The Vercel AI SDK gives every Lob tool full TypeScript type inference, IDE autocomplete, and compile-time error checking. Connect 21 tools through Vinkius and stream results progressively to React, Svelte, or Vue components. works on Edge Functions, Cloudflare Workers, and any Node.js runtime.
- —
TypeScript-first: every MCP tool gets full type inference, IDE autocomplete, and compile-time error checking out of the box
- —
Framework-agnostic core works with Next.js, Nuxt, SvelteKit, or any Node.js runtime. same Lob integration everywhere
- —
Built-in streaming UI primitives let you display Lob tool results progressively in React, Svelte, or Vue components
- —
Edge-compatible: the AI SDK runs on Vercel Edge Functions, Cloudflare Workers, and other edge runtimes for minimal latency
Lob in Vercel AI SDK
Why run Lob with Vinkius?
The Lob connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 21 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Lob using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Lob and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Lob to Vercel AI SDK through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Lob for Vercel AI SDK
Every request between Vercel AI SDK and Lob is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
What types of physical mail can I send with Lob?
Lob supports three main mail types: Letters (formal correspondence, invoices, notifications with customizable color, double-sided printing), Postcards (marketing campaigns, invitations, reminders in 4x6, 6x9, or 6x11 sizes), and Checks (vendor payments, payroll, refunds, rebates with customizable memo lines and company logos). All mail is printed and mailed within 24 hours via USPS.
How does Lob address verification work?
Lob's address verification validates and standardizes addresses using USPS data. It corrects formatting, adds missing ZIP+4 codes, fixes typos, and confirms deliverability. The service returns a deliverability status: 'deliverable' (valid and deliverable), 'undeliverable' (cannot be delivered), or 'deliverable_unnecessary' (valid but additional info not needed). This reduces returned mail by up to 5% and ensures your mailings reach the correct destination.
Can I use HTML templates for personalized mailings?
Yes! Lob supports HTML templates with merge variables using the Handlebars templating engine. Create a template with placeholders like {{name}}, {{order_number}}, {{delivery_date}}, then pass actual values when creating letters or postcards. This enables personalized, scalable direct mail campaigns. Templates are reusable and can be referenced by ID when creating mailings. You can also embed CSS styling for professional-looking mail designs.
How long does it take for mail to be delivered?
Lob prints and mails all items within 24 hours of creation. Delivery time depends on the mail type selected: USPS First Class Mail typically delivers in 2-5 business days, while USPS Standard Mail takes 3-7 business days. You receive a tracking number for each piece of mail to monitor delivery status. Lob also provides expected delivery dates in API responses for planning purposes.
How does the Vercel AI SDK connect to MCP servers?
Import createMCPClient from @ai-sdk/mcp and pass the server URL. The SDK discovers all tools and provides typed TypeScript interfaces for each one.
Can I use MCP tools in Edge Functions?
Yes. The AI SDK is fully edge-compatible. MCP connections work on Vercel Edge Functions, Cloudflare Workers, and similar runtimes.
Does it support streaming tool results?
Yes. The SDK provides streaming primitives like useChat and streamText that handle tool calls and display results progressively in the UI.
createMCPClient is not a function
Install: npm install @ai-sdk/mcp
Explore More MCP Servers
View all →
Geekbot
6 toolsRun asynchronous standups and team check-ins through Slack or Microsoft Teams that respect everyone timezone and schedule.

Contractor+
12 toolsRun your contracting business with job estimates, invoicing, client management, and field crew tracking in one mobile platform.

Klaviyo (Marketing Automation)
10 toolsManage your B2C CRM via Klaviyo — create profiles, track email campaigns, and audit automation flows.

Railway
10 toolsEquip your AI with direct access to your Railway infrastructure — manage projects, deployments, services, and environment variables.
