UPS MCP Server
Enables AI agents to track packages, rate and create shipments, manage pickups and customs documentation, and perform international shipping logistics checks through natural language.
README
UPS MCP Server
A Model Context Protocol (MCP) server for UPS shipping and logistics capabilities. This server enables AI systems to seamlessly integrate with UPS API tools.
Users can integrate with the MCP server to allow AI agents to facilitate tracking events on their behalf, including tracking the status of a shipment, the latest transit screen, and expected delivery date and time. Agents will be authenticated using OAuth client credentials provided by the user after application creation on the UPS Developer Portal.
Usage
Prerequisites
- Obtain a Client ID and Client Secret: Create an application on the UPS Developer Portal to obtain your OAuth credentials – Client ID and Client Secret. (https://developer.ups.com/get-started?loc=en_US)
- Python 3.12 or higher
- Install uv (Python Package)
Environment Variables
CLIENT_ID- UPS Client IDCLIENT_SECRET- UPS Client SecretENVIRONMENT- Whether to point to Test (CIE) or Production (Accepted values: test, production)
Note: Your API credentials are sensitive. Do not commit them to version control. We recommend managing secrets securely using GitHub Secrets, a vault, or a password manager.
Execution
You can run the package using uvx:
uvx --from git+https://github.com/VoxveyAI/UPS-MCP ups-mcp
To use an older version, you can specify the version number like so:
uvx --from git+https://github.com/VoxveyAI/UPS-MCP@v1.0.0 ups-mcp
Popular Integrations
Here are sample config files for popular integrations. Different MCP Clients may require modification.
Claude Desktop
{
"mcpServers": {
"ups-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "git+https://github.com/VoxveyAI/UPS-MCP", "ups-mcp"],
"env": {
"CLIENT_ID": "**********",
"CLIENT_SECRET": "**********",
"ENVIRONMENT": "test"
}
}
}
}
GitHub Copilot in VS Code
{
"servers": {
"ups-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "git+https://github.com/VoxveyAI/UPS-MCP", "ups-mcp"],
"env": {
"CLIENT_ID": "**********",
"CLIENT_SECRET": "**********",
"ENVIRONMENT": "test"
}
}
}
}
Available Tools
The server now supports the core international shipping workflow:
validate_address— validates U.S. and Puerto Rico street addresses. UPS's Address Validation API is not a general international address validator; international destination data is supplied in the shipping/rating payload.rate_shipment— compares UPS services and charges. This is an estimate and does not purchase postage.get_time_in_transit— estimates transit time for an origin, destination, and package request.get_customs_requirements— obtains customs fields required by UPS.validate_customs_details— validates supplied customs data.estimate_landed_cost— estimates duties, taxes, and other landed-cost values returned by UPS.create_shipment— creates a shipment and returns UPS shipment/tracking and label data. This requiresconfirm=trueand may incur charges.recover_label— recovers a label using the Shipping API contract.void_shipment— voids a shipment and requiresconfirm=true.rate_pickup— obtains a pickup estimate without scheduling one.create_pickup— schedules a pickup and requiresconfirm=true.get_pickup_status— checks pending pickup status for an account.cancel_pickup— cancels a pickup and requiresconfirm=true.find_pickup_service_centers— finds pickup facilities.get_pickup_political_divisions— gets pickup-valid political divisions for a country.customs_description_guidance— starts, continues, or submits feedback for an Export Assure interactive product-description and commodity/HTS guidance session usingaction=start|continue|feedback.submit_export_assure— submit cross-border shipment details for compliance guidance.upload_paperless_document,push_paperless_document_to_image_repository, anddelete_paperless_document— manage UPS paperless customs/shipping documents. Deletion requiresconfirm=true.lookup_dangerous_goods_chemical_referenceanddangerous_goods_acceptance_precheck— look up chemical data and run the UPS dangerous-goods acceptance audit pre-check.get_delivery_intercept_options— inspect post-shipment intercept eligibility or charges withaction=eligibility|charges.apply_delivery_intercept— change delivery handling for an in-transit package withaction=redirect|willcall|return|reschedule; requiresconfirm=true.cancel_delivery_intercept— cancel a prior intercept request; requiresconfirm=true.manage_tracking_alert_subscription— manage persistent Track Alert subscriptions withscope=package|accountandaction=subscribe|unsubscribe; requiresconfirm=true.find_ups_locations— find UPS Stores, Access Point locations, and other facilities.create_guaranteed_landed_cost_quote— request a guaranteed landed-cost quote when the UPS account has access to that product.track_package,track_by_reference, andtrack_shipment— track one package, reference-matched packages, or all packages in a shipment.
Complex UPS request bodies are accepted as validated JSON objects matching the
request wrappers in ../api-documentation. This preserves support for
international customs, service, packaging, and account fields that vary by
UPS product while keeping the common MCP operation names stable.
For shipment billing, pass accountNumber to create_shipment or provide the
equivalent UPS field in the request wrapper. The convenience argument is
written to:
{
"ShipmentRequest": {
"Shipment": {
"PaymentInformation": {
"ShipmentCharge": {
"BillShipper": {"AccountNumber": "YOUR_UPS_ACCOUNT_NUMBER"}
}
}
}
}
}
International customs declarations are sent in the UPS shipment wrapper's
international-form fields (and can also be validated through
validate_customs_details). A typical declaration contains one or more
products/commodities with a plain-language description, quantity, unit value,
currency, country of origin, and harmonized tariff/commodity code when known.
Declared package value is represented separately through the package service
options when required. The MCP does not guess tariff codes, values, or country
of origin; missing or invalid customs data is returned by UPS for correction.
Recommended international workflow
- Call
rate_shipmentandget_time_in_transit. - Call
get_customs_requirements, thenvalidate_customs_details. - Call
estimate_landed_costand review the returned duties, taxes, and warnings. - Review the complete shipment payload and call
create_shipmentwithconfirm=trueonly when the shipment should actually be created. - Track the returned tracking number with
track_packageortrack_shipment. - Schedule a pickup separately with
create_pickupandconfirm=true.
UPS API-product approval, account permissions, production approval, service availability, and country-specific eligibility are controlled by UPS. A successful test-environment response does not prove that production shipping or pickup creation is enabled.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.