Lob MCP, CLI, and Lua Integration for AI Agents
Lob integration docs for AI agents: MCP gateway setup, Lob CLI commands, Lua API reference, credentials, and function schemas.
7 functions 5 read 2 write API key auth
Lob for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
lob- route_slug
lob- package
lob- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Lob CLIHeadless setup and direct function calls. Lob MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Lob MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Lob.
Claude Code Lob MCP setup for Claude Code. Cursor Lob MCP setup for Cursor. Codex Lob MCP setup for Codex. OpenAI Agents Lob MCP setup for OpenAI Agents SDK. Claude Agent SDK Lob MCP setup for Claude Agent SDK. Vercel AI SDK Lob MCP setup for Vercel AI SDK. LangChain Lob MCP setup for LangChain. LangGraph Lob MCP setup for LangGraph. CrewAI Lob MCP setup for CrewAI. MCP clients Lob MCP setup for Generic MCP Clients.
Lob CLI Matrix
Use these pages for direct Lob CLI workflows in scripts, CI, cron, and agent wrappers.
CI Lob CLI for CI. Cron Jobs Lob CLI for cron jobs. Shell Scripts Lob CLI for shell scripts. Headless Automation Lob CLI for headless automation. Coding Agents Lob CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
lob.lob_list_letters | Read read | 2 | List letters with pagination. Returns a page of letter objects sorted by creation date (newest first). |
lob.lob_get_letter | Read read | 1 | Retrieve details of a specific letter by its Lob ID, including delivery status, tracking info, and the letter URL. |
lob.lob_create_letter | Write write | 6 | Create and send a letter via Lob. Provide recipient and sender addresses (as address IDs or inline address objects), plus an HTML file or template ID for the letter content. |
lob.lob_list_postcards | Read read | 2 | List postcards with pagination. Returns a page of postcard objects sorted by creation date (newest first). |
lob.lob_get_postcard | Read read | 1 | Retrieve details of a specific postcard by its Lob ID, including delivery status, tracking info, and thumbnails. |
lob.lob_create_postcard | Write write | 5 | Create and send a postcard via Lob. Provide recipient and sender addresses (as address IDs or inline address objects), plus HTML or template IDs for the front and back. |
lob.lob_get_current_user | Read read | 0 | List saved addresses in the Lob account. Returns all verified addresses that can be used as sender or recipient for letters and postcards. |