Bring Direct Mail
to Pydantic AI
Create your Vinkius account to connect Lob to Pydantic AI 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 Pydantic AI?
Pydantic AI validates every Lob tool response against typed schemas, catching data inconsistencies at build time. Connect 21 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
- —
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
- —
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your Lob integration code
- —
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
- —
Dependency injection system cleanly separates your Lob connection logic from agent behavior for testable, maintainable code
Lob in Pydantic AI
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 Pydantic AI 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 Pydantic AI
Every request between Pydantic AI 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 Pydantic AI discover MCP tools?
Create an MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.
Does Pydantic AI validate MCP tool responses?
Yes. When you define result types as Pydantic models, every tool response is validated against the schema. Invalid data raises a clear error instead of silently corrupting your pipeline.
Can I switch LLM providers without changing MCP code?
Absolutely. Pydantic AI abstracts the model layer. your Lob MCP integration works identically with OpenAI, Anthropic, Google, or any supported provider.
MCPServerHTTP not found
Update: pip install --upgrade pydantic-ai
Explore More MCP Servers
View all →
AdRoll
5 toolsE-commerce marketing and retargeting — manage campaigns, ads, and performance via AI.

Zoho Projects
9 toolsManage projects, tasks, and milestones via the Zoho Projects V3 API.

Open Payments (CMS Physician Data)
5 toolsQuery official CMS Open Payments data to analyze financial relationships between the healthcare industry, physicians, and teaching hospitals.

ReferralCandy
16 toolsConnect your AI agents to ReferralCandy to manage referral programs, track advocates, register purchases, and analyze campaign performance.
