Summary
FedEx APIs for shippers: track shipments by number or reference, get proof of delivery, quote rates and transit times, check services and special options, validate addresses, find drop-off locations and check pickup availability. Shipment creation, cancellation and pickups are included but switched off. API key and secret key of a FedEx Developer Portal project.
Guided setup
Connect FedEx to Claude, ChatGPT or Copilot in 2 minutes
Start a free trial on AnythingMCP Cloud, connect FedEx in the guided setup, then add your MCP URL to your AI assistant. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for FedEx
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 → FedEx, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
FedEx
FedEx APIs for shippers: track shipments by number or reference, get proof of delivery, quote rates and transit times, check services and special options, validate addresses, find drop-off locations and check pickup availability. Shipment creation, cancellation and pickups are included but switched off. API key and secret key of a FedEx Developer Portal project.
Setup
Setting up takes about 15 minutes.
- Sign in at https://developer.fedex.com with your FedEx user ID. Under My Projects create an organization as a company that ships with FedEx and integrates FedEx APIs into its own applications.
- My Projects, tab APIs, + Create API Project. Select the APIs the connector uses: Track, Rates and Transit Times, Service Availability, Address Validation, FedEx Locations Search, Pickup Request and, for the switched-off tools, Ship. Name the project and accept the terms.
- Add your FedEx shipping account to the project (Add shipping accounts, + Add Account: account number, a nickname and the billing address of the account).
- Open the project and its Production key tab. Copy the API Key into
FEDEX_CLIENT_IDand the Secret Key intoFEDEX_CLIENT_SECRET. FedEx shows the production secret key only once. The Test Key does not work here: it belongs to the sandbox host. - Put your 9-digit FedEx account number into
FEDEX_ACCOUNT_NUMBER.
The connector sends the API key and secret key to https://apis.fedex.com/oauth/token (client credentials) and gets a bearer token valid for one hour, which it reuses and renews by itself.
Label validation before shipping: FedEx lists the Ship API under "APIs Requiring Validation". Before fedex_create_shipment works with production keys, you generate test labels in the FedEx test environment, print and scan them at 600 DPI or more, and email the scans with the Label Cover Sheet (account number and production key) to [email protected]. The Bar Code Analysis group answers within about three business days and then enables your production credentials for shipping labels. Tracking, rates, transit times, address validation, locations and pickup availability need no such step.
Where to start: fedex_track_by_tracking_number with a tracking number. For a price, fedex_get_rates without a service type compares every service; fedex_get_transit_times gives delivery dates without prices.
Tracking: fedex_track_by_tracking_number, fedex_track_by_reference (your own order or invoice number, searched within your account and a ship date range), fedex_track_multi_piece_shipment (all packages under a master tracking number) and fedex_get_tracking_document (signature proof of delivery as PDF or PNG, base64). FedEx reuses tracking numbers over time: when a number matches more than one shipment, call again with the trackingNumberUniqueId of the one you want or with a ship date range. Dates are ISO 8601 with the local offset.
Rates and options: fedex_get_rates returns ACCOUNT rates (your contract) and LIST rates (published); amounts are numbers with the currency next to them. fedex_get_package_and_service_options and fedex_get_special_service_options tell which services, packaging and extras are valid on a lane. Weights are LB or KG, dimensions IN or CM, in whole numbers for dimensions.
Addresses and locations: fedex_validate_address corrects one address and classifies it as business or residential (a residential surcharge applies to Ground and Express). fedex_find_locations finds drop-off places around an address.
Shipments and pickups: fedex_validate_shipment checks a full shipment request without creating anything. fedex_create_shipment and fedex_cancel_shipment create and cancel real shipments, fedex_create_pickup and fedex_cancel_pickup book and cancel a courier; these four are installed switched off, and fedex_check_pickup_availability stays on because it books nothing. The FedEx account number of the connector is filled in for you on every call that needs one.
Errors: FedEx answers failures with errors, a list of code and message, e.g. NOT.AUTHORIZED.ERROR (401), FORBIDDEN.ERROR (403: the project is not allowed to use this API, or the Ship API is not validated yet) and NOT.FOUND.ERROR (404). A tracking number FedEx cannot find is reported inside a 200 answer, as error on the track result. Every answer carries a transactionId to quote to FedEx support.
Limits: 1,400 calls per 10 seconds per project across all APIs, a daily quota per organization and per API (Track: 100,000 a day by default); a 429 says which one was hit and when to retry. The token endpoint blocks an address for 10 minutes after bursts of token requests, which the connector avoids by reusing the token.
Prerequisites: FEDEX_CLIENT_ID, FEDEX_CLIENT_SECRET, FEDEX_ACCOUNT_NUMBER
Install the connector locally
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
Open http://localhost:3000/connectors/store, pick FedEx and paste in the env vars listed under Prerequisites.
Available tools
| Tool | What it does |
|---|---|
fedex_track_by_tracking_number | Track one FedEx shipment by tracking number. Returns output.completeTrackResults with, per match, latestStatusDetail (code such as PU… |
fedex_track_by_reference | Find and track shipments of your FedEx account by a reference you gave them: customer reference, purchase order number, invoice number… |
fedex_track_multi_piece_shipment | Track all packages of a multi-piece FedEx shipment from its master tracking number, or the outbound shipment linked to a return. Returns… |
fedex_get_tracking_document | Get the proof of delivery of a delivered FedEx shipment (signature proof of delivery letter), or a freight bill of lading. Returns… |
fedex_get_rates | Quote FedEx rates for a shipment between two addresses. Returns output.rateReplyDetails, one entry per service, with serviceType… |
fedex_get_transit_times | List the FedEx services available between two addresses with their delivery commitments, without prices. Returns output.transitTimes with… |
fedex_get_package_and_service_options | List which FedEx services and packaging types are valid between two addresses, e.g. before offering shipping choices. Returns… |
fedex_get_special_service_options | List the special services FedEx offers for a shipment between two addresses: signature options, Saturday delivery, hold at location… |
fedex_validate_address | Check and complete one postal address with FedEx Address Validation. Returns output.resolvedAddresses with the corrected… |
fedex_find_locations | Find FedEx drop-off and pickup places near an address: FedEx Office, ship centers, authorized ship centers, self-service lockers and drop… |
fedex_check_pickup_availability | Check whether and when FedEx can collect at an address, without booking anything. Returns output.options with, per carrier and day… |
fedex_validate_shipment | Check a complete FedEx shipment request for errors without creating the shipment or a label: FedEx validates addresses, service, packaging… |
fedex_create_shipment | Create a FedEx shipment and its label. FedEx bills the shipment to your account once the label is used, and the Ship API only works after… |
fedex_cancel_shipment | Cancel a FedEx shipment that has not been handed to FedEx yet, by tracking number. It cannot be undone: the label becomes invalid. Returns… |
fedex_create_pickup | Book a FedEx pickup: a courier comes to the address in the given time window. FedEx may charge a pickup fee to your account, so the tool is… |
fedex_cancel_pickup | Cancel a booked FedEx pickup by its confirmation code and date. It cannot be undone; a new pickup has to be booked. Returns… |
Example prompts
- "Track FedEx shipment 794843185271 and tell me when it will arrive."
- "Get the proof of delivery for tracking number 794843185271."
- "Compare FedEx rates for a 10 kg parcel from Memphis 38118 to Toronto M5V 3L9."
- "Which FedEx services can deliver from Dallas to Miami by tomorrow?"
- "Can FedEx pick up a parcel from my warehouse in 30301 tomorrow afternoon?"
Next steps
Was this guide helpful?