Connector guide7-minute read16 MCP tools7 languages

Connect UPS to Cursor via MCP: Tracking and Rates

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

HCBy HelpCode teamUpdated 7 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

UPS

UPS

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

tools

16

Region

INTL

Category

Logistics

Authentication

OAuth 2.0

Required env vars

UPS_CLIENT_IDUPS_CLIENT_SECRETUPS_ACCOUNT_NUMBER
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Summary

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Guided setup

Connect UPS to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect UPS in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

No credit card · 7-day trial · Self-host alternative available

Try asking

Example prompts for UPS

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

UPS · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → UPS, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

UPS + Cursor

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

UPS_CLIENT_ID, UPS_CLIENT_SECRET, UPS_ACCOUNT_NUMBER

Step 1 — Get credentials

Setting up takes about 10 minutes.

  1. Sign in at https://developer.ups.com with the ups.com profile that owns your shipper account (register one first if needed) and open the page for creating an application.
  2. Say that you want to integrate UPS technology into your own business, pick the UPS account number the app should bill to, and name the app.
  3. Add the products the connector uses: Tracking, Address Validation, Rating, Time in Transit, Locator, and, for the switched-off tools, Shipping, Pickup and Landed Cost Quote. A product that is missing answers 401 or 403 for its tools only.
  4. Copy the Client ID into UPS_CLIENT_ID and the Client Secret into UPS_CLIENT_SECRET.
  5. Put your 6-character UPS account number (shipper number) into UPS_ACCOUNT_NUMBER.

The connector exchanges the client ID and secret at https://onlinetools.ups.com/security/v1/oauth/token (client credentials, HTTP Basic) for a short-lived bearer token and renews it by itself. These are production credentials; the UPS test system (wwwcie.ups.com) is not used.

Where to start: ups_track_package with a tracking number. For a price, ups_shop_rates compares all services between two addresses and ups_get_rate prices one service; ups_get_time_in_transit gives delivery dates without prices.

Tracking: ups_track_package (any tracking number), ups_track_by_reference (your own reference, e.g. an order number, within your account) and ups_track_shipment_packages (all packages of a multi-package shipment). Dates are YYYYMMDD and times HHMMSS in the local time of the scan; gmtDate, gmtTime and gmtOffset give the same moment in UTC. Read the state from currentStatus.description and the scans from activity, newest first.

Addresses and locations: ups_validate_address covers street addresses in the United States and Puerto Rico only. ups_find_locations finds drop-off places and UPS Access Point locations near an address in any country UPS serves.

Rates: ups_shop_rates and ups_get_rate send your account number as the shipper number. Published rates come back by default; pass rating_options with NegotiatedRatesIndicator to see the contract rates of your account in NegotiatedRateCharges. Amounts are strings in the currency named next to them. Weights are LBS or KGS and dimensions IN or CM: use the units of the origin country. ups_quote_landed_cost estimates duties and taxes for a cross-border shipment and works best with an HS code per item.

Labels and shipments: ups_recover_label returns the label of an existing shipment again and costs nothing. ups_create_shipment creates a shipment that UPS bills to the account, and ups_void_shipment cancels one before pickup; both are installed switched off. Switch them on in the connector only if the assistant should create real shipments. UPS field names differ between calls: the rate tools call the packaging PackagingType, the ship tool Packaging.

Pickups: ups_get_pickup_rate quotes an on-call pickup and ups_get_pending_pickups lists booked ones. ups_create_pickup books a driver for a fee and ups_cancel_pickup cancels by PRN; both are installed switched off.

Errors: UPS answers with response.errors, a list of code and message. 401 means the credentials or the token were refused, 403 that the app has no access to that product or that UPS blocked the account, 404 on tracking that UPS has no data for the number yet (labels show up after the first scan or some hours after creation), 429 that the quota of the app is used up.

Limits: UPS sets a quota per app and product and does not publish the numbers in its API files; a 429 means wait and retry later. Tracking one number per call is the documented use: do not loop over long lists quickly.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Cursor

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:

{
  "mcpServers": {
    "anythingmcp": {
      "url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart Cursor.
  3. Open Cursor → Settings → MCP and check that anythingmcp is listed and connected.
  4. Start chatting — the agent can now call the UPS tools.

Available tools

ToolWhat it does
ups_track_packageTrack one UPS package by tracking number: current status with code and description, every scan (date as YYYYMMDD, local time as HHMMSS…
ups_track_by_referenceFind and track shipments of your UPS account by a reference number you put on the shipment (order number, invoice number). Returns the same…
ups_track_shipment_packagesTrack every package of a multi-package UPS shipment from one of its tracking numbers: per package the tracking number, current status, last…
ups_validate_addressCheck a street address in the United States or Puerto Rico against UPS data. Returns ValidAddressIndicator, AmbiguousAddressIndicator…
ups_get_ratePrice one UPS service for a shipment. Returns RateResponse.RatedShipment with the service code, billing weight, transportation, service…
ups_shop_ratesCompare every UPS service available between two addresses for a shipment. Returns one RatedShipment per service with its code, billing…
ups_get_time_in_transitList the UPS services available between two places under emsResponse.services: serviceLevel and serviceLevelDescription…
ups_find_locationsFind UPS drop-off places near an address: UPS Access Point locations, The UPS Store, customer centers and drop boxes. Returns…
ups_quote_landed_costEstimate duties, taxes and brokerage fees for an international shipment before it ships (UPS Landed Cost Quote). Returns per commodity the…
ups_recover_labelGet the label of a shipment that already exists again, by tracking number. Returns LabelRecoveryResponse.LabelResults with the label as a…
ups_get_pickup_rateQuote what an on-call UPS pickup at an address would cost, without booking it. Returns PickupRateResponse.RateResult with the rate type…
ups_get_pending_pickupsList the pickups booked on your UPS account that have not happened yet. Returns PickupPendingStatusResponse.PendingStatus with the pickup…
ups_create_shipmentCreate a UPS shipment and its label. UPS bills the shipment to your account as soon as this call succeeds, so the tool is installed…
ups_void_shipmentVoid (cancel) a UPS shipment that was created but not yet picked up, or single packages of it. It cannot be undone: the labels become…
ups_create_pickupBook an on-call UPS pickup: a driver comes to the address on the given day. UPS charges a pickup fee to your account, so the tool is…
ups_cancel_pickupCancel a booked UPS pickup by its pickup request number (PRN). It cannot be undone; a new pickup has to be booked. Returns…

Example prompts

  • "Where is UPS package 1Z999AA10123456784?"
  • "Compare UPS rates from Chicago 60601 to Austin 78701 for a 5 lb box."
  • "Is 1600 Amphitheatre Pkwy, Mountain View, CA 94043 a valid address?"
  • "When would a UPS Ground package from Atlanta reach Seattle if it ships today?"
  • "Find UPS Access Point locations near 10115 Berlin."

FAQ

Where do the UPS credentials come from? From an app in the UPS Developer Portal (developer.ups.com), created with the ups.com profile that owns your shipper account. Add the Tracking, Address Validation, Rating, Time in Transit and Locator products, then copy the Client ID and Client Secret. UPS_ACCOUNT_NUMBER is your 6-character shipper number.

What does it cover, and what not? Tracking by number or reference, US address validation (United States and Puerto Rico only), rates and transit times, drop-off and Access Point locations, landed cost estimates, label recovery and pickup quotes. It uses production credentials, not the UPS test system.

Can it create shipments or book pickups? ups_create_shipment, ups_void_shipment, ups_create_pickup and ups_cancel_pickup install switched off, because they cost money. Add the Shipping and Pickup products to your app and switch them on on the connector page only if the AI should use them.

Does Cursor support custom MCP servers on the free tier? Yes — MCP is available on Hobby, Pro and Business plans.

Next steps

Was this guide helpful?

Connect UPS to Cursor in 2 minutes

Start a free trial on AnythingMCP Cloud, connect UPS in the guided setup, then add your MCP URL to Cursor. No code and no server to run.

Related guides

Connectors

Connect UPS to ChatGPT via MCP: Tracking and Rates

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Connectors

Connect UPS to Claude via MCP: Tracking and Rates

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Connectors

Connect UPS to Microsoft Copilot via MCP

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Connectors

Connect UPS to Gemini CLI via MCP

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Connectors

Connect UPS to Meta Muse via MCP

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.

Connectors

UPS MCP Server: Tracking, Rates and Locations

UPS APIs for shippers: track packages by tracking number or reference, validate US addresses, compare rates and transit times, find drop-off and Access Point locations, estimate landed cost, recover labels and quote pickups. Shipment creation, voids and pickups are included but switched off. OAuth client ID and secret from the UPS Developer Portal.