Lob MCP by usefulapi
Verify US & international addresses and send physical mail (postcards, letters, checks) via Lob.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (1)
- LOWen lob_us_zip_lookup
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"lob": {
"url": "https://lob.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://lob.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (18)
🟢lob_verify_us_address(address, primary_line, secondary_line, city, state, ...)
Validate & standardize a US address, returning deliverability, corrected components, and a confidence score. Pass either a single freeform `address` string OR structured `primary_line`/`city`/`state`/`zip_code`. Non-mutating (no mail sent). Lob API: POST /v1/us_verifications.
Esquema de entrada
{
"type": "object",
"properties": {
"address": {
"description": "Freeform single-line address (alternative to the structured fields).",
"type": "string"
},
"primary_line": {
"description": "Primary delivery line, e.g. '210 King Street'.",
"type": "string"
},
"secondary_line": {
"description": "Secondary line, e.g. 'Suite 6100'.",
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"description": "2-letter state code, e.g. 'CA'.",
"type": "string"
},
"zip_code": {
"description": "5-digit or ZIP+4.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_verify_intl_address(primary_line, secondary_line, city, state, postal_code, ...)
Validate & standardize a non-US address. `country` (2-letter ISO code) is required. Non-mutating (no mail sent). Lob API: POST /v1/intl_verifications.
Esquema de entrada
{
"type": "object",
"properties": {
"primary_line": {
"type": "string",
"description": "Primary delivery line."
},
"secondary_line": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"description": "State / province / region.",
"type": "string"
},
"postal_code": {
"type": "string"
},
"country": {
"type": "string",
"description": "2-letter ISO country code, e.g. 'GB', 'DE', 'CA'."
}
},
"required": [
"primary_line",
"country"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_us_zip_lookup(zip_code)
Return the cities and state associated with a US ZIP code. Non-mutating. Lob API: POST /v1/us_zip_lookups.
Esquema de entrada
{
"type": "object",
"properties": {
"zip_code": {
"type": "string",
"description": "A 5-digit US ZIP code, e.g. '94107'."
}
},
"required": [
"zip_code"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_us_autocomplete(address_prefix, city, state, zip_code)
Suggest complete US addresses from a partial primary line — useful for address entry. Non-mutating. Lob API: POST /v1/us_autocompletions.
Esquema de entrada
{
"type": "object",
"properties": {
"address_prefix": {
"type": "string",
"description": "Partial primary line, e.g. '185 Berr'."
},
"city": {
"description": "Optional city to narrow suggestions.",
"type": "string"
},
"state": {
"description": "Optional 2-letter state to narrow suggestions.",
"type": "string"
},
"zip_code": {
"description": "Optional ZIP to narrow suggestions.",
"type": "string"
}
},
"required": [
"address_prefix"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_postcards(limit, after, before)
List sent/scheduled postcards, newest first. Lob API: GET /v1/postcards.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_get_postcard(id)
Retrieve a single postcard by id, including status, PDF url, and expected delivery. Lob API: GET /v1/postcards/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Postcard id (psc_…)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_letters(limit, after, before)
List sent/scheduled letters, newest first. Lob API: GET /v1/letters.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_get_letter(id)
Retrieve a single letter by id, including status, PDF url, and tracking. Lob API: GET /v1/letters/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Letter id (ltr_…)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_checks(limit, after, before)
List sent/scheduled checks, newest first. Lob API: GET /v1/checks.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_get_check(id)
Retrieve a single check by id, including amount, status, and check number. Lob API: GET /v1/checks/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Check id (chk_…)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_self_mailers(limit, after, before)
List sent/scheduled self-mailers, newest first. Lob API: GET /v1/self_mailers.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_addresses(limit, after, before)
List saved address records, newest first. Lob API: GET /v1/addresses.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_get_address(id)
Retrieve a single saved address record by id. Lob API: GET /v1/addresses/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Address id (adr_…)."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢lob_list_templates(limit, after, before)
List saved HTML templates usable as postcard/letter artwork. Lob API: GET /v1/templates.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"description": "Max results per page (1–100). Default 10.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"after": {
"description": "Cursor for the next page (from a previous response's next_url).",
"type": "string"
},
"before": {
"description": "Cursor for the previous page (from a previous response's previous_url).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴lob_create_address(name, company, address_line1, address_line2, address_city, ...)
Create a reusable saved address record (does NOT send any mail). Returns an address id (adr_…) usable as `to`/`from` in mail tools. Lob API: POST /v1/addresses.
Esquema de entrada
{
"type": "object",
"properties": {
"name": {
"description": "Recipient name (required unless `company` is set).",
"type": "string"
},
"company": {
"type": "string"
},
"address_line1": {
"type": "string",
"description": "Primary street address."
},
"address_line2": {
"description": "Unit/suite/apt.",
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"description": "2-letter state/province code.",
"type": "string"
},
"address_zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"address_country": {
"description": "2-letter ISO country code. Defaults to US.",
"type": "string"
},
"description": {
"description": "Internal label for this address.",
"type": "string"
}
},
"required": [
"address_line1"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴lob_create_postcard(to, from, front, back, size, ...)
⚠️ SENDS A REAL POSTCARD and charges your Lob account (use a test_ key to avoid real mail/charges). `to` and `from` accept an existing address id (adr_…) or an inline address object. `front`/`back` accept an HTML string, a hosted asset URL, or a template id (tmpl_…). Cancelable only before `send_date`. Lob API: POST /v1/postcards.
Esquema de entrada
{
"type": "object",
"properties": {
"to": {
"anyOf": [
{
"type": "string",
"description": "Existing Lob address id (adr_…)."
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"address_line1": {
"type": "string",
"description": "Primary street address, e.g. '210 King St'."
},
"address_line2": {
"description": "Unit/suite/apt, e.g. 'Suite 6100'.",
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"description": "2-letter state/province code for US/CA.",
"type": "string"
},
"address_zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"address_country": {
"description": "2-letter ISO country code. Defaults to US.",
"type": "string"
}
},
"required": [
"address_line1"
],
"description": "Inline address object."
}
],
"description": "Either an existing address id (adr_…) or an inline address object."
},
"from": {
"description": "Return address (id or inline object). Optional.",
"anyOf": [
{
"type": "string",
"description": "Existing Lob address id (adr_…)."
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"address_line1": {
"type": "string",
"description": "Primary street address, e.g. '210 King St'."
},
"address_line2": {
"description": "Unit/suite/apt, e.g. 'Suite 6100'.",
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"description": "2-letter state/province code for US/CA.",
"type": "string"
},
"address_zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"address_country": {
"description": "2-letter ISO country code. Defaults to US.",
"type": "string"
}
},
"required": [
"address_line1"
],
"description": "Inline address object."
}
]
},
"front": {
"type": "string",
"description": "Front artwork: HTML string, asset URL, or template id (tmpl_…)."
},
"back": {
"type": "string",
"description": "Back artwork: HTML string, asset URL, or template id (tmpl_…)."
},
"size": {
"description": "Postcard size. Default 4x6.",
"type": "string",
"enum": [
"4x6",
"6x9",
"6x11"
]
},
"mail_type": {
"description": "USPS mail class.",
"type": "string",
"enum": [
"usps_first_class",
"usps_standard"
]
},
"use_type": {
"description": "Lob mail use type: operational (bills, notices, legal letters) or marketing. Lob requires it unless the account has a default use type (Account Settings).",
"type": "string",
"enum": [
"marketing",
"operational"
]
},
"description": {
"description": "Internal label.",
"type": "string"
},
"merge_variables": {
"description": "Key/value data merged into HTML templates.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"send_date": {
"description": "ISO-8601 date/time to schedule the send (future). Cancelable until then.",
"type": "string"
}
},
"required": [
"to",
"front",
"back"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴lob_create_letter(to, from, file, color, double_sided, ...)
⚠️ SENDS A REAL LETTER and charges your Lob account (use a test_ key to avoid real mail/charges). `to`/`from` accept an address id (adr_…) or inline object. `file` accepts an HTML string, a hosted PDF/URL, or a template id (tmpl_…). `color` is required. Cancelable only before `send_date`. Tracked mail: `extra_service` = certified (U.S. addresses: tracking + proof of delivery), certified_return_receipt (certified + the recipient's electronic signature) or registered (international addresses only); extra cost, first class only, not for us_legal size. The tracking number is on the letter (lob_get_letter). Lob API: POST /v1/letters.
Esquema de entrada
{
"type": "object",
"properties": {
"to": {
"anyOf": [
{
"type": "string",
"description": "Existing Lob address id (adr_…)."
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"address_line1": {
"type": "string",
"description": "Primary street address, e.g. '210 King St'."
},
"address_line2": {
"description": "Unit/suite/apt, e.g. 'Suite 6100'.",
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"description": "2-letter state/province code for US/CA.",
"type": "string"
},
"address_zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"address_country": {
"description": "2-letter ISO country code. Defaults to US.",
"type": "string"
}
},
"required": [
"address_line1"
],
"description": "Inline address object."
}
],
"description": "Either an existing address id (adr_…) or an inline address object."
},
"from": {
"anyOf": [
{
"type": "string",
"description": "Existing Lob address id (adr_…)."
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"company": {
"type": "string"
},
"address_line1": {
"type": "string",
"description": "Primary street address, e.g. '210 King St'."
},
"address_line2": {
"description": "Unit/suite/apt, e.g. 'Suite 6100'.",
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"description": "2-letter state/province code for US/CA.",
"type": "string"
},
"address_zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"address_country": {
"description": "2-letter ISO country code. Defaults to US.",
"type": "string"
}
},
"required": [
"address_line1"
],
"description": "Inline address object."
}
],
"description": "Return address (id or inline object). Required for letters."
},
"file": {
"type": "string",
"description": "Letter body: HTML string, asset/PDF URL, or template id (tmpl_…)."
},
"color": {
"type": "boolean",
"description": "true = color printing, false = black & white."
},
"double_sided": {
"description": "Print on both sides. Default true.",
"type": "boolean"
},
"address_placement": {
"description": "Where the recipient address is placed.",
"type": "string",
"enum": [
"top_first_page",
"insert_blank_page",
"bottom_first_page_center",
"bottom_first_page"
]
},
"description": {
"description": "Internal label.",
"type": "string"
},
"merge_variables": {
"description": "Key/value data merged into HTML templates.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"send_date": {
"description": "ISO-8601 date/time to schedule the send (future). Cancelable until then.",
"type": "string"
},
"extra_service": {
"description": "Tracked mail (extra cost): certified or certified_return_receipt for U.S. addresses, registered for international ones. Omit for ordinary mail.",
"type": "string",
"enum": [
"certified",
"certified_return_receipt",
"registered"
]
},
"mail_type": {
"description": "USPS mail class. Default usps_first_class. extra_service needs first class.",
"type": "string",
"enum": [
"usps_first_class",
"usps_standard"
]
},
"use_type": {
"description": "Lob mail use type: operational (bills, notices, legal letters) or marketing. Lob requires it unless the account has a default use type (Account Settings).",
"type": "string",
"enum": [
"marketing",
"operational"
]
}
},
"required": [
"to",
"from",
"file",
"color"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴lob_cancel_postcard(id)
Cancel a postcard before its send_date so it is never mailed (and not billed). Fails if the send window has passed. Lob API: DELETE /v1/postcards/{id}.
Esquema de entrada
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Postcard id (psc_…) to cancel."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia