# Shipengine — how to use (mcp.ai)

Connect your Shipengine account and use 66 tools for ecommerce straight from your AI agent. Connect with your own API key. ShipEngine is a REST API that simplifies shipping processes by integrating with multiple carriers, allowing users to manage shipping labels, track packages, and validate addresses efficiently.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_shipengine?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `shipengine_add_tag_to_shipment`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/shipengine`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/shipengine/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/shipengine/add/tag/to/shipment` — Tool to add a tag to a shipment for organization and filtering. Use when you need to categorize or label a shipment.
  - body: { tag_name: string, shipment_id: string }
- `POST https://api.mcp.ai/api/shipengine/add/to/batch` — Tool to add shipments or rate IDs to an existing batch. Use when you need to add items to a batch after the batch has been created. At least one of shipment_ids or rate_ids must be provided.
  - body: { batch_id: string, rate_ids?: string[], shipment_ids?: string[] }
- `POST https://api.mcp.ai/api/shipengine/cancel/shipment` — Tool to cancel a shipment by ID. Use when you need to cancel a shipment that has been created but not yet shipped. Note that once a shipment is in transit, it may not be cancellable depending on carri
  - body: { shipment_id: string }
- `POST https://api.mcp.ai/api/shipengine/connect/ltl/carrier` — Tool to connect an LTL carrier account to ShipEngine. Use when you need to add an LTL carrier connection for freight shipping. For sandbox testing, use carrier codes TEST, WARN, or FAIL with empty cre
  - body: { credentials?: object, carrier_code: string }
- `POST https://api.mcp.ai/api/shipengine/connect/shipsurance` — Tool to connect a Shipsurance insurance account to ShipEngine. Use when you need to integrate a Shipsurance policy for insurance coverage on shipments.
  - body: { email: string, policy_id: string }
- `POST https://api.mcp.ai/api/shipengine/create/account/image` — Tool to create a new account image in ShipEngine. Use when uploading a logo or image for use on shipping labels.
  - body: { name: string, image_data: string, image_content_type: string }
- `POST https://api.mcp.ai/api/shipengine/create/package/type` — Tool to create a custom package type definition in ShipEngine. Use when defining new package types with specific codes and optional dimensions.
  - body: { name: string, dimensions?: object, description?: string, package_code: string }
- `POST https://api.mcp.ai/api/shipengine/create/tag` — Tool to create a new tag in ShipEngine. Use after determining the desired tag name for shipments.
  - body: { tag_name: string }
- `POST https://api.mcp.ai/api/shipengine/create/tag2` — Tool to create a new tag for organizing shipments. Use when you need to create a tag by specifying the tag name in the URL path.
  - body: { tag_name: string }
- `POST https://api.mcp.ai/api/shipengine/create/warehouse` — Tool to create a new warehouse. Use when adding a new inventory location after verifying its full address details.
  - body: { is_default?: boolean, origin_address: object, return_address?: object, warehouse_name: string }
- `POST https://api.mcp.ai/api/shipengine/create/webhook` — Tool to create a ShipEngine webhook. Use when you need to register a webhook for specific events. Use after confirming your event-handling endpoint is ready.
  - body: { url: string, event: string }
- `POST https://api.mcp.ai/api/shipengine/delete/account/image/by/id` — Tool to delete a ShipEngine account image by its ID. Use when you need to remove an image from account settings. The image will be permanently removed from the account.
  - body: { label_image_id: string }
- `POST https://api.mcp.ai/api/shipengine/delete/batch` — Tool to delete a batch by ID. Use when you need to remove a batch from ShipEngine. Note that this operation is destructive and cannot be undone.
  - body: { batch_id: string }
- `POST https://api.mcp.ai/api/shipengine/delete/package` — Tool to delete a custom package type by ID. Use when removing package types that are no longer needed.
  - body: { package_id: string }
- `POST https://api.mcp.ai/api/shipengine/delete/warehouse` — Tool to delete a warehouse from your ShipEngine account. Use when you need to remove a warehouse that is no longer needed. The warehouse will be permanently removed from your account.
  - body: { warehouse_id: string }
- `POST https://api.mcp.ai/api/shipengine/delete/webhook` — Tool to delete a ShipEngine webhook subscription. Use when you need to remove a webhook that is no longer needed. The webhook will be permanently removed and will no longer receive event notifications
  - body: { webhook_id: string }
- `POST https://api.mcp.ai/api/shipengine/disconnect/carrier` — Tool to disconnect a carrier account from ShipEngine. Use when you need to remove a carrier connection from your ShipEngine account.
  - body: { carrier_id: string, carrier_name: string }
- `POST https://api.mcp.ai/api/shipengine/disconnect/shipsurance` — Tool to disconnect a Shipsurance insurance account from ShipEngine. Use when you need to remove the Shipsurance integration.
- `POST https://api.mcp.ai/api/shipengine/download/file` — Tool to download a file from ShipEngine. Use when you need to retrieve a label PDF or other document from the ShipEngine downloads endpoint.
  - body: { dir: string, subdir: string, download?: string, filename: string, rotation?: integer }
- `POST https://api.mcp.ai/api/shipengine/get/account/image/by/id` — Tool to retrieve account image settings by label image ID. Use when you need to fetch image data for labels or display account branding information.
  - body: { label_image_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/batch/by/external/id` — Tool to retrieve batch details using an external batch ID. Use when you need to look up a batch by its client-assigned external identifier rather than ShipEngine's internal batch ID.
  - body: { external_batch_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/batch/by/id` — Tool to retrieve detailed information about a specific batch by its ID. Use when you need to check batch status, download labels, or view errors.
  - body: { batch_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/batch/errors` — Tool to retrieve errors that occurred during batch processing. Use when you need to investigate or troubleshoot issues with a specific batch.
  - body: { page?: integer, batch_id: string, pagesize?: integer }
- `POST https://api.mcp.ai/api/shipengine/get/bulk/rates` — Tool to get shipping rates for multiple shipments in a single request. Use when you need to compare rates across multiple carriers or shipments efficiently. The request is processed asynchronously - u
  - body: { shipments?: object[], rate_options: object, shipment_ids?: string[], ship_to_service_point_id?: string, ship_from_service_point_id?: string }
- `POST https://api.mcp.ai/api/shipengine/get/insurance/balance` — Tool to retrieve the current Shipsurance insurance funds balance. Use when you need to check available insurance balance before purchasing shipment insurance.
- `POST https://api.mcp.ai/api/shipengine/get/ltl/carrier/credential/requirements` — Tool to retrieve credential requirements for connecting an LTL carrier. Use when you need to discover what credentials (e.g., account number, username, password) are required before connecting a speci
  - body: { carrier_code: string }
- `POST https://api.mcp.ai/api/shipengine/get/ltl/carrier/features` — Tool to retrieve features supported by an LTL carrier. Use when you need to discover what capabilities (e.g., tracking, quotes, scheduled pickups) are available for a specific LTL carrier before creat
  - body: { carrier_code: string }
- `POST https://api.mcp.ai/api/shipengine/get/ltl/carrier/options` — Tool to list available options/accessorials for an LTL carrier. Use when you need to discover what accessorial services (e.g., hazardous material, inside pickup, lift gate) are available for a specifi
  - body: { carrier_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/ltl/carrier/packages` — Tool to list available package/handling unit types for an LTL (Less Than Truckload) carrier. Use when you need to find valid package codes for LTL freight shipments.
  - body: { carrier_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/ltl/carrier/services` — Tool to list available services for an LTL carrier. Use when you need to discover what shipping services (e.g., standard, guaranteed morning/noon) are available for a specific LTL carrier connection.
  - body: { carrier_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/package/by/id` — Tool to get details of a specific custom package type by ID. Use when you need to retrieve package specifications.
  - body: { package_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/shipment/by/external/id` — Tool to retrieve shipment details using an external shipment ID. Use when you need to look up a shipment by its client-assigned external identifier rather than ShipEngine's internal shipment ID.
  - body: { external_shipment_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/shipment/by/id` — Tool to retrieve a shipment by ID. Use when you need detailed shipment information after creation.
  - body: { shipment_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/shipment/rates` — Tool to retrieve shipping rates for an existing shipment. Use when you need to get rate quotes for a shipment that has already been created.
  - body: { shipment_id: string, created_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/get/tracking/info` — Tool to retrieve tracking information for a shipment. Use when you need to track the status and location of a package using its tracking number and carrier code.
  - body: { carrier_code: string, tracking_number: string }
- `POST https://api.mcp.ai/api/shipengine/get/warehouse/by/id` — Tool to retrieve details of a specific warehouse by ID. Use when you need warehouse information including addresses and default status.
  - body: { warehouse_id: string }
- `POST https://api.mcp.ai/api/shipengine/get/webhook/by/id` — Tool to retrieve details of a specific webhook by ID. Use when you need to view the configuration of an existing webhook.
  - body: { webhook_id: string }
- `POST https://api.mcp.ai/api/shipengine/list/account/images` — Tool to list all account images. Use when you need to retrieve all images configured for the ShipEngine account, such as logos or branding images used on shipping labels.
- `POST https://api.mcp.ai/api/shipengine/list/account/settings` — Tool to list all account settings for the ShipEngine account. Use when you need to retrieve account configuration, preferences, or settings information.
- `POST https://api.mcp.ai/api/shipengine/list/batches2` — Tool to list all batches with comprehensive filtering options. Use when you need to retrieve batches with filters for status, creation/processing dates, batch number, or pagination.
  - body: { page?: integer, status?: string, sort_by?: string, sort_dir?: string, page_size?: integer, batch_number?: string, created_at_end?: string, created_at_start?: string, processed_at_end?: string, processed_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/list/carrier/package/types` — Tool to list all available package types for a specific carrier. Use when you need to find valid package_code values before creating shipments.
  - body: { carrier_id: string }
- `POST https://api.mcp.ai/api/shipengine/list/labels2` — Tool to list all shipping labels with comprehensive filtering options. Use when you need to retrieve labels with filters like status, carrier, tracking number, batch, or date ranges. Supports sorting 
  - body: { page?: integer, rate_id?: string, sort_by?: string, batch_id?: string, sort_dir?: string, page_size?: integer, carrier_id?: string, shipment_id?: string, label_status?: string, service_code?: string, warehouse_id?: string, created_at_end?: string, tracking_number?: string, created_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/list/ltl/carriers` — Tool to list all LTL (Less-Than-Truckload) carrier accounts connected to your ShipEngine account. Use when you need to discover available LTL carriers, their services, container types, and accessorial
- `POST https://api.mcp.ai/api/shipengine/list/manifests2` — Tool to list all manifests with optional filtering by warehouse and carrier. Use when you need to retrieve manifests with advanced filtering options.
  - body: { page?: integer, label_ids?: string[], page_size?: integer, carrier_id?: string, warehouse_id?: string, ship_date_end?: string, created_at_end?: string, ship_date_start?: string, created_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/list/packages` — Tool to list all package types. Use when selecting package options before shipment creation.
  - body: { page?: integer, page_size?: integer }
- `POST https://api.mcp.ai/api/shipengine/list/pickups` — Tool to list all scheduled pickups with optional filters. Use when you need to retrieve scheduled pickups with pagination support.
  - body: { page?: integer, page_size?: integer, carrier_id?: string, warehouse_id?: string, created_at_end?: string, created_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/list/shipments2` — Tool to list all shipments with optional filtering parameters. Use when you need to retrieve shipments with filters like status, batch, tags, or date ranges.
  - body: { tag?: string, page?: integer, sort_by?: string, batch_id?: string, sort_dir?: string, page_size?: integer, created_at_end?: string, sales_order_id?: string, modified_at_end?: string, shipment_status?: string, created_at_start?: string, modified_at_start?: string }
- `POST https://api.mcp.ai/api/shipengine/list/tags2` — Tool to list all tags in your account. Use when you need to retrieve all available tags for display or selection purposes.
- `POST https://api.mcp.ai/api/shipengine/list/warehouses` — Tool to list all warehouses. Use when you need to retrieve warehouse locations with pagination. Call after creating or updating warehouses.
  - body: { page?: integer, page_size?: integer }
- `POST https://api.mcp.ai/api/shipengine/list/webhook/events` — Retrieve a list of available webhook event types supported by ShipEngine. Returns static documentation of all supported webhook events that can be used when creating webhooks. Always call this before 
- `POST https://api.mcp.ai/api/shipengine/list/webhooks` — Tool to list all webhooks configured on your account. Use when you need to view all registered webhooks.
- `POST https://api.mcp.ai/api/shipengine/parse/address` — Tool to parse unstructured address text and extract structured address components. Use when you have raw address text and need to extract individual fields like street, city, state, and postal code.
  - body: { text: string, address?: object }
- `POST https://api.mcp.ai/api/shipengine/process/batch/labels` — Tool to process a batch to create and purchase shipping labels for all shipments in the batch. Use after creating a batch with shipments. The API returns HTTP 204 on success.
  - body: { batch_id: string, ship_date?: string, label_format?: string, label_layout?: string, display_scheme?: string }
- `POST https://api.mcp.ai/api/shipengine/remove/from/batch` — Tool to remove shipments or rate IDs from a batch. Use when you need to modify batch contents by removing specific shipments or rates. At least one of shipment_ids or rate_ids must be provided.
  - body: { batch_id: string, rate_ids?: string[], shipment_ids?: string[] }
- `POST https://api.mcp.ai/api/shipengine/remove/tag/from/shipment` — Tool to remove a tag from a shipment. Use when you need to un-categorize or remove a specific tag from an existing shipment.
  - body: { tag_name: string, shipment_id: string }
- `POST https://api.mcp.ai/api/shipengine/start/tracking` — Tool to subscribe to tracking updates for a package via webhooks. Use when you need to start monitoring a shipment's status. The package tracking information will be sent to configured webhooks when u
  - body: { carrier_id?: string, carrier_code?: string, tracking_number?: string }
- `POST https://api.mcp.ai/api/shipengine/stop/tracking` — Tool to unsubscribe from tracking updates for a package. Use when you no longer need to receive tracking notifications for a specific shipment. Once stopped, you will not receive further tracking upda
  - body: { carrier_code: string, tracking_number: string }
- `POST https://api.mcp.ai/api/shipengine/track/ltl/shipment` — Tool to track an LTL shipment using carrier code and PRO number. Use when you need to retrieve real-time tracking information for an LTL shipment, including current status, delivery dates, and event h
  - body: { pro_number: string, carrier_code: string }
- `POST https://api.mcp.ai/api/shipengine/update/account/image/by/id` — Tool to update an account image by ID in ShipEngine. Use when modifying image properties like name or default status.
  - body: { name?: string, image_data?: string, is_default: boolean, label_image_id: string }
- `POST https://api.mcp.ai/api/shipengine/update/ltl/connection` — Tool to update LTL carrier connection credentials in ShipEngine. Use when you need to modify authentication credentials for an existing LTL carrier connection without disconnecting and reconnecting. Y
  - body: { credentials: object, carrier_code: string, connection_id: string }
- `POST https://api.mcp.ai/api/shipengine/update/package` — Tool to update an existing custom package type definition. Use when modifying package details such as name, code, description, or dimensions.
  - body: { name: string, dimensions?: object, package_id: string, description?: string, package_code: string }
- `POST https://api.mcp.ai/api/shipengine/update/shipment` — Tool to update an existing shipment's details. Use when you need to modify shipment information such as addresses, packages, weight, or carrier options before creating a label.
  - body: { tags?: string[], items?: object[], customs?: object, ship_to: object, packages?: object[], is_return?: boolean, return_to?: object, ship_date?: string, ship_from: object, carrier_id?: string, shipment_id: string, confirmation?: string, service_code?: string, warehouse_id?: string, tax_identifiers?: object[], advanced_options?: object, validate_address?: string, external_order_id?: string, insurance_provider?: string, external_shipment_id?: string }
- `POST https://api.mcp.ai/api/shipengine/update/shipments/tags` — Tool to update tags on one or more shipments in bulk. Use when you need to assign existing tags to shipments. Tags must be created before assignment using the Create Tag action.
  - body: { shipments_tags: object[] }
- `POST https://api.mcp.ai/api/shipengine/update/warehouse` — Tool to update an existing warehouse's details and address. Use when modifying warehouse information such as name, origin address, return address, or default status.
  - body: { name: string, is_default?: boolean, warehouse_id: string, origin_address: object, return_address?: object }
- `POST https://api.mcp.ai/api/shipengine/update/webhook` — Tool to update a ShipEngine webhook. Use when you need to modify webhook URL, name, headers, or store association. Returns success on 204 status code.
  - body: { url?: string, name?: string, headers?: object[], store_id?: integer, webhook_id: string }
- `POST https://api.mcp.ai/api/shipengine/validate/address` — Tool to validate and normalize shipping addresses. Use after collecting raw addresses to ensure they are correct and standardized before shipping.
  - body: { addresses: object[] }

## Example prompts
- "What can I do in Shipengine?"
- "Show me a summary of my Shipengine account"

## More
- Page: https://mcp.ai/shipengine
- Agent spec (llms.txt): https://mcp.ai/shipengine/llms.txt
- Postman collection: https://mcp.ai/shipengine/postman.json
