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 Microsoft Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect UPS in the guided setup, then add your MCP URL to Microsoft Copilot. 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.
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 + Microsoft Copilot
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.
- 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.
- 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.
- 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.
- Copy the Client ID into
UPS_CLIENT_IDand the Client Secret intoUPS_CLIENT_SECRET. - 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 Microsoft Copilot
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 showsYOUR_SERVER_ID.
Microsoft Copilot uses MCP servers through agents built in Copilot Studio: you add AnythingMCP to an agent as a tool, then publish the agent to Microsoft 365 Copilot and Teams. Copilot Studio connects from Microsoft's cloud over Streamable HTTP, which AnythingMCP supports.
- In Copilot Studio, open your agent (or create one), go to Tools and choose Add a tool → New tool → Model Context Protocol.
- Enter a Server name (for example
AnythingMCP), a Server description that says what the connector does, and the Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID. Copilot Studio uses the description to decide when to call the server. - Under authentication, choose API key, set Type to Header and the header name to
X-API-Key, then select Create. - In Add tool, choose Create a new connection, paste an MCP API key from AnythingMCP (MCP Servers → your server → API keys) and select Add to agent.
- Try it in the agent's Test pane: ask for something that needs the
UPStools. - Select Publish, then Channels → Microsoft 365 and Microsoft Teams, keep Make agent available in Microsoft Copilot selected and choose Add channel. See agent in Teams installs it for you; in Microsoft 365 Copilot, type @ and pick the agent.
Prefer per-user sign-in? Choose OAuth 2.0 → Dynamic discovery instead of an API key: each user then signs in to AnythingMCP the first time the agent calls it.
Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Copilot Studio connects from Microsoft's cloud, so localhost does not work.
Available tools
| Tool | What it does |
|---|---|
ups_track_package | Track one UPS package by tracking number: current status with code and description, every scan (date as YYYYMMDD, local time as HHMMSS… |
ups_track_by_reference | Find 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_packages | Track every package of a multi-package UPS shipment from one of its tracking numbers: per package the tracking number, current status, last… |
ups_validate_address | Check a street address in the United States or Puerto Rico against UPS data. Returns ValidAddressIndicator, AmbiguousAddressIndicator… |
ups_get_rate | Price one UPS service for a shipment. Returns RateResponse.RatedShipment with the service code, billing weight, transportation, service… |
ups_shop_rates | Compare every UPS service available between two addresses for a shipment. Returns one RatedShipment per service with its code, billing… |
ups_get_time_in_transit | List the UPS services available between two places under emsResponse.services: serviceLevel and serviceLevelDescription… |
ups_find_locations | Find UPS drop-off places near an address: UPS Access Point locations, The UPS Store, customer centers and drop boxes. Returns… |
ups_quote_landed_cost | Estimate duties, taxes and brokerage fees for an international shipment before it ships (UPS Landed Cost Quote). Returns per commodity the… |
ups_recover_label | Get the label of a shipment that already exists again, by tracking number. Returns LabelRecoveryResponse.LabelResults with the label as a… |
ups_get_pickup_rate | Quote what an on-call UPS pickup at an address would cost, without booking it. Returns PickupRateResponse.RateResult with the rate type… |
ups_get_pending_pickups | List the pickups booked on your UPS account that have not happened yet. Returns PickupPendingStatusResponse.PendingStatus with the pickup… |
ups_create_shipment | Create 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_shipment | Void (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_pickup | Book 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_pickup | Cancel 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.
Which Copilot is this for? Microsoft 365 Copilot at work, through agents built in Copilot Studio. The Microsoft Copilot app for personal accounts has no option to add your own MCP server.
What do I need? A work account with access to Copilot Studio (a license or a trial) to build the agent. People who use it in Microsoft 365 Copilot or Teams need access to the agent: share it with them, or ask an admin to publish it to the organization. If your organization applies data policies to Power Platform connectors, they cover MCP servers too.
The agent doesn't call the tools. Check that the header name is exactly X-API-Key and that the key belongs to the same MCP server as the URL, and make the server description specific: Copilot Studio uses it to decide when to call the server. Publish the agent again after each change; in an open chat, type "start over" to get the new version.
Next steps
Was this guide helpful?