UPS MCP Server
An MCP server for accessing UPS shipping and logistics services.
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/UPS-API/ups-mcp ups-mcp
To use an older version, you can specify the version number like so:
uvx --from git+https://github.com/UPS-API/[email protected] 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/UPS-API/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/UPS-API/ups-mcp", "ups-mcp"],
"env": {
"CLIENT_ID": "**********",
"CLIENT_SECRET": "**********",
"ENVIRONMENT": "test"
}
}
}
}
Available Tools
-
track_package: Track a package using the UPS Tracking APIArgs:
- inquiryNumber (str): the unique package identifier. Each inquiry number must be between 7 and 34 characters in length. Required.
- locale (str): Language and country code of the user, separated by an underscore. Default value is 'en_US'. Not required.
- returnSignature (bool): a boolean to indicate whether a signature is required, default is false. Not required.
- returnMilestones (bool): a boolean to indicate whether detailed information on a package's movements is required, default is false. Not required
- returnPOD (bool): a boolean to indicate whether a proof of delivery is required, default is false. Not required
Returns:
- str: The response from the tracking capability, this is a string of json tracking data.
-
validate_address: Validate an address using the UPS Address Validation API for the U.S. or Puerto RicoArgs:
- addressLine1 (str): The primary address details including the house or building number and the street name, e.g. 123 Main St. Required.
- addressLine2 (str): Additional information like apartment or suite numbers, e.g. Apt 4B. Not required.
- politicalDivision1 (str): The two-letter state or province code, e.g. GA for Georgia. Required.
- politicalDivision2 (str): The city or town name, e.g. Springfield. Required.
- zipPrimary (str): The postal code. Required.
- zipExtended (str): 4 digit Postal Code extension. For US use only. Not required.
- urbanization (str): Puerto Rico Political Division 3. Only valid for Puerto Rico. Not required.
- countryCode (str): The country code, e.g. US. Required.
Returns:
- str: The json response body from the address validation API
UPS MCP server is still in active development. More tools coming soon!
関連サーバー
Rhombus MCP Server
An MCP server for the Rhombus API, offering advanced security and surveillance features.
McpVanguard
An open-source security proxy and active firewall for the Model Context Protocol (MCP).
Quiz MCP
MCP server for interactive quizzes
Kite Trading
A server for performing trading operations using the Kite Connect API.
mycop
AI code security scanner with 100 built-in rules covering OWASP Top 10 and CWE Top 25
Elite Stock Research MCP
Live Stock Market Data, SEC Filings, Stock Screener, and analysis
Regenique Elegance Commerce
AI-powered commerce MCP server enabling product discovery, cart management, and checkout for the Regenique Elegance luxury skincare store via Shopify Storefront API.
Phone Carrier Detector
Detects Chinese mobile phone carriers, including China Mobile, China Unicom, China Telecom, and virtual carriers.
MCP Emotional Support
Provides emotional support and positive reinforcement for LLMs, with customizable therapeutic personas.
alphavantage stock mcp
stock data, stock analytics