Supports tracking parcels shipped with DHL, allowing users to check delivery status and shipment progress.
Enables tracking of FedEx packages, providing delivery status updates and shipment information.
Allows tracking of UPS parcels, providing delivery status, timestamps, and location updates.
Supports tracking of USPS mail and packages, showing delivery progress and status information.
Parcel Tracking MCP Server
A Model Context Protocol (MCP) server for tracking parcel deliveries using the 17track.net API.
Features
- Track parcel deliveries from various carriers
- Automatic carrier detection
- Support for manual carrier specification
- Built with TypeScript and MCP SDK
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- 17track.net API token
Installation
Install the package via npm:
Or install locally:
Configuration
Create a config.json
file in your working directory with your 17track.net API token:
Note: The server looks for config.json
in the current working directory where you run the command.
Getting a 17track.net API Token
- Visit 17track.net
- Sign up for an account
- Navigate to the API section
- Generate your API token
- Add it to your
config.json
file
Usage
Running the Server
If installed globally:
If installed locally:
Or if you're using it as a dependency in your project:
MCP Client Configuration
To use this server with MCP clients (like Claude Desktop), add it to your MCP configuration:
Or if installed globally:
Available Tools
tracking-delivery
Track a parcel delivery by providing a tracking number.
Parameters:
number
(required): The tracking number of the parcelcarrier
(optional): The carrier of the parcel (defaults to 'auto' for automatic detection)
Example:
Supported Carriers
The server supports automatic carrier detection, but you can also specify carriers manually. Common carriers include:
- UPS
- FedEx
- DHL
- USPS
- China Post
- And many more (check 17track.net documentation for full list)
API Response Format
The server returns tracking information in JSON format, including:
- Tracking status
- Delivery progress
- Timestamps
- Location updates
- Carrier information
Error Handling
The server includes comprehensive error handling:
- API connection errors
- Invalid tracking numbers
- Missing configuration
- Network timeouts
Development
Project Structure
Dependencies
@modelcontextprotocol/sdk
- MCP SDK for building serverszod
- Schema validationnode-fetch
- HTTP requests (if needed for older Node.js versions)
License
MIT License
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Support
For issues related to:
- MCP protocol: Check the MCP documentation
- 17track.net API: Visit 17track.net API docs
- This implementation: Create an issue in the repository
Changelog
v1.0.0
- Initial release
- Basic parcel tracking functionality
- Support for automatic and manual carrier detection
- Error handling and logging
Allows tracking of parcel deliveries across various carriers using the 17track.net API, with automatic or manual carrier detection.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server providing seamless integration with the Shiplogic shipping API to calculate shipping rates, create shipments, track packages, and manage shipping operations programmatically.Last updated -5JavaScriptMIT License
- AsecurityAlicenseAqualityProvides access to satellite tracking data from N2YO, allowing users to query satellite positions, predict passes, and access TLE data through natural language requests.Last updated -13TypeScriptMIT License
Trackmage MCP Serverofficial
-securityAlicense-qualityProvides shipment tracking api and logistics management capabilities through the TrackMage API. Enables creation and monitoring of shipments and orders, carrier detection, tracking checkpoint retrieval, and comprehensive logistics workflow automation.Last updated -1JavaScriptMIT License- -securityFlicense-qualityAn MCP server that enables interaction with ShipEngine's shipping API, allowing users to manage shipments, labels, carriers, and other shipping operations through natural language commands.Last updated -Python