otherapi_key

Lob

Direct Mail Automation and Address Verification APIs

Verdict

Lob's MCP gives your team direct control over link shortening and custom domain management from any Space. @mention it to create branded short links, register domains for custom URLs, or audit existing links without leaving the conversation. Marketing and ops teams get the most value — shorten campaign URLs mid-planning, check link metadata during reviews, or clean up expired domains as part of routine maintenance. Auth requires a Lob API key with write access; deleting links or domains is permanent, so test carefully before scripting bulk operations.

Common use cases

  • Shorten campaign URLs during content planning
  • Register custom domains for branded short links
  • Audit link metadata before quarterly reviews
  • Delete expired links in bulk cleanup scripts
  • Retrieve domain redirect configs for troubleshooting

Integration

Vendor
Lob
Category
other
Auth
API_KEY
Tools
13
Composio slug
lob

Tools

  • Create Domain

    Tool to add a new custom domain for creating custom links. Use when you need to register a domain for short link customization.

  • Create Link

    Tool to create a shortened URL from a long URL using Lob's link shortening service. Use when you need to shorten a long URL either by using a custom domain or Lob's own short domain.

  • Delete Domain
    destructive

    Tool to delete a registered domain. Use only after confirming all associated links with the domain are deleted.

  • Delete Link
    destructive

    Tool to delete a shortened link. Use when you need to remove a previously created short link from the system.

  • Delete Upload
    destructive

    Tool to delete an existing upload by its unique identifier. Use when you need to permanently remove an upload and its associated data.

  • Get Domain

    Tool to retrieve details for a single domain from Lob. Use when you need to get configuration status, redirect links, or other metadata for a specific domain.

  • Get Link

    Tool to retrieve a single shortened link. Use when you need to fetch details about a specific link by its ID.

  • List Domains

    Tool to retrieve a list of all created domains. Use when you need to view or manage custom domains configured for URL shortening. Supports pagination and filtering by configuration status.

  • List QR Code Analytics

    Tool to retrieve a list of your QR codes and their analytics data. The QR codes are returned sorted by scan date, with the most recently scanned QR codes appearing first.

  • List Shortened Links

    Tool to retrieve a list of shortened links. The list is sorted by creation date, with the most recently created appearing first. Use when you need to view all links or filter by campaign or domain.

  • List Uploads

    Tool to list uploads from Lob. Use when you need to retrieve all uploads or filter uploads by campaign ID.

  • Update Link

    Tool to update any properties of a shortened link. Use when you need to modify the redirect URL, title, or metadata of an existing Lob shortened link. Requires the link_id and at least the redirect_link to update.

  • Validate Identity

    Tool to validate whether a given name is associated with an address. Use when you need to verify identity information by checking if a recipient name matches address records.

Setup

Setup guide

  1. 11. Open your Switchy workspace and navigate to Settings > Integrations > Add MCP. 2. Select Lob from the catalog and choose API Key authentication. 3. Log into your Lob dashboard, go to Settings > API Keys, and copy a key with full read/write permissions. 4. Paste the key into Switchy's auth prompt and click Connect. 5. Return to any Space and type '@Lob list domains' to confirm the connection works — you should see your configured domains or an empty list if none exist yet. 6. To create a short link, type '@Lob create a short link for https://example.com/long-campaign-url' and the MCP will return the shortened URL. 7. Use '@Lob get link [link_id]' to retrieve metadata like click counts or expiration dates for any link you've created.

What teammates see: by default, memories from Lob are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Spaces have used this MCP together with a given model.

How Switchy teams use it

Not enough Spaces yet to publish anonymised usage stats (we require ≥ 50 Spaces per week).

Starter prompts

Shorten Campaign URL

@Lob create a shortened link for https://example.com/spring-sale-2024 using our custom domain marketing.co
Open in a Space →

List All Domains

@Lob list all domains we've configured for link shortening, including their current status
Open in a Space →

Register New Domain

@Lob create a new domain entry for links.ourcompany.com so we can use it for custom short URLs
Open in a Space →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@Lob list all my custom domains and show which ones are fully configured for link shortening

Output

Found 3 custom domains in your account: 1. **go.acme.com** — Fully configured. 47 active links. Last verified 2 hours ago. 2. **links.acme.io** — Configuration pending. DNS records not yet propagated. 0 links. 3. **promo.acme.co** — Fully configured. 12 active links. Last verified 1 day ago. The second domain needs DNS updates before you can create short links with it. The other two are ready to use.

Notes

This example shows Lob's domain management capability. The MCP returns metadata like configuration status and link counts, which helps you audit your shortening infrastructure. Requires API key with read access to domains. Response shape depends on how many domains you've registered.

Prompt

@Lob create a short link for https://acme.com/spring-sale-2025-limited-time-offer using our go.acme.com domain, and make the slug 'spring25'

Output

Short link created successfully: **https://go.acme.com/spring25** → https://acme.com/spring-sale-2025-limited-time-offer Link ID: `lnk_a3f9b2c1d4e5`. Created just now. No expiration set. Click tracking is enabled by default. You can delete or update this link anytime using the Link ID.

Notes

This demonstrates Lob's core link-shortening action. The MCP writes a new resource to your account and returns a usable short URL immediately. Requires a pre-configured custom domain (or defaults to Lob's domain). Be aware that creating links consumes API quota, and the slug must be unique within the domain.

Prompt

@Lob pull click stats for all links created in the last 30 days and summarize which campaigns are getting the most engagement

Output

Analyzed 28 short links created since January 15. Here's engagement by campaign: **spring25 campaign** (5 links): 1,847 total clicks, avg 369 clicks/link. Top performer: go.acme.com/spring25 with 612 clicks. **winter-clearance** (8 links): 743 total clicks, avg 93 clicks/link. Lower engagement, possibly due to email placement. **blog-promo** (15 links): 2,104 total clicks, avg 140 clicks/link. Steady traffic from social posts. The spring campaign is outperforming others by 2.5x per link.

Notes

This synthesis example pairs Lob's link-listing tool with AI reasoning to surface insights from click data. The MCP fetches metadata for multiple links, then the AI aggregates and compares performance. Useful for campaign retrospectives. Note that click tracking must be enabled on links, and data freshness depends on Lob's analytics pipeline.

Use-case deep-dives

Campaign link tracking for email blasts

When Lob's link shortening beats UTM sprawl in email campaigns

A 6-person marketing team sends weekly newsletters to 15,000 subscribers and needs clean, trackable links without cluttering the email body. Lob's link shortening MCP is the right call here because you can batch-create shortened URLs with custom domains (your brand, not bit.ly) and delete them after the campaign window closes. The Create Link and List Domains tools let you spin up campaign-specific short links in minutes, and the Delete Link tool keeps your workspace tidy when the promo ends. This works best when you're running 3-10 concurrent campaigns and need per-link analytics without paying for a full marketing automation suite. If you're sending one-off emails or already locked into Mailchimp's native link tracking, Lob adds overhead you don't need. For teams running lean email ops with brand-conscious link hygiene, this MCP closes the gap.

Customer support ticket link management

Why Lob's domain tools matter for support knowledge bases

A 4-person support team fields 200 tickets a week and shares help articles via Zendesk macros, but the knowledge base URLs are 80-character nightmares that break in plaintext emails. Lob's MCP solves this by letting you register a custom domain (like help.yourco.com) and create short links that stay readable in ticket replies. The Get Domain and Create Link tools integrate into your macro workflow so agents generate clean links on the fly without leaving Zendesk. The trade-off: if your KB URLs change often, you'll spend time deleting and recreating links (the Delete Link tool is manual, not bulk). This setup wins when your team sends 50+ article links per day and customers actually click them. If your support volume is under 20 tickets a week or you're fine with Zendesk's native link shortener, Lob is overkill. For high-touch support teams that care about link aesthetics in customer comms, this MCP pays off.

Event registration link distribution across channels

When Lob's upload and link tools streamline multi-channel event promo

A 3-person events team promotes quarterly webinars across LinkedIn, Slack communities, and partner newsletters, and needs one short link per channel to track which source drives registrations. Lob's MCP handles this because you can create a custom domain (events.yourco.com), generate channel-specific short links with the Create Link tool, and delete them post-event with Delete Link to avoid link rot. The Delete Upload tool matters if you're batch-importing registration lists and need to clean up after each event cycle. This approach works when you're running 4-8 events a year and need per-channel attribution without paying for a full event platform. If you're doing one annual conference or your registration tool already has UTM tracking, Lob adds a layer you don't need. For lean event teams juggling multiple promo channels and tight budgets, this MCP delivers clean attribution without the enterprise price tag.

Frequently asked

What does the Lob MCP do in Switchy?

The Lob MCP lets your AI agents create and manage shortened URLs through Lob's link shortening service. Agents can create short links from long URLs, set up custom domains for branded links, and delete links or domains when needed. It's useful for automating link generation in marketing workflows or tracking campaigns without leaving your AI workspace.

Do I need admin access to connect Lob MCP?

You need a Lob API key with permissions to manage links and domains. Lob uses API key authentication, so whoever connects it must have access to generate keys in your Lob account settings. The key should have write permissions if you want agents to create or delete links, not just read existing ones.

Can the Lob MCP track click analytics on shortened links?

No, the MCP only creates and manages links—it doesn't retrieve click data or analytics. If you need click tracking, you'll have to check Lob's dashboard directly or use their analytics API separately. The MCP focuses on link creation and domain management, not performance reporting.

Why use Lob MCP instead of just calling Lob's API?

The MCP wraps Lob's API so your AI agents can shorten links conversationally without you writing integration code. If you're already building custom scripts, the API is more flexible. But if you want agents to generate branded links on-the-fly during chats or workflows, the MCP saves setup time.

Who on my team should connect the Lob integration?

Whoever manages your Lob account and has access to API keys. Usually that's someone on marketing or ops who already uses Lob for link shortening. They'll paste the API key into Switchy once, then any team member can ask agents to create links without needing their own Lob login.

Data last verified 607 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.