eShipz Tracking MCP Server
A Model Context Protocol (MCP) server that provides shipment tracking functionality through the eShipz API. This server enables Claude Desktop to track packages across multiple carriers with intelligent, status-aware formatting.
README
eShipz Tracking MCP Server
A Model Context Protocol (MCP) server that provides shipment tracking functionality through the eShipz API. This server enables Claude Desktop to track packages across multiple carriers with intelligent, status-aware formatting.
Features
- š¦ Track shipments across multiple carriers
- šÆ Status-aware output formatting
- ā Automatic status detection (Delivered, In Transit, Exception, etc.)
- š Location-based updates
- š Event count and timeline tracking
- š Secure API token management via environment variables
Prerequisites
- Python 3.12 or higher
- uv package manager
- eShipz API token
- Claude Desktop app
Installation
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/mcp-eshipz.git
cd mcp-eshipz
- Create a
.envfile in the project root:
API_BASE_URL=https://app.eshipz.com
ESHIPZ_TOKEN=your_eshipz_api_token_here
- Install dependencies:
uv sync
Configuration
Add the server to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"eshipz_tracking": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\mcp-eshipz",
"run",
"main.py"
]
}
}
}
Replace C:\\path\\to\\mcp-eshipz with your actual project path.
Usage
After configuring the server and restarting Claude Desktop, you can ask Claude to track packages:
- "Track package <your tracking id>"
- "What's the status of tracking number ABC123?"
- "Check delivery status for tracking XYZ789"
- "Analyze the carrier performance"
- "Create new shipment with valid values for all required fields"
- "Pre Docket Allocation"
Note: for the required fields for all features refer to the API docs of eShipz
Shipment Query Workflow (Reusable Response Data)
The server now supports a fetch-once, query-many flow for shipment analysis.
- Run
query_shipmentsto fetch shipments and create a reusablequery_idcontext. - Reuse the same
query_idwithquery_shipments_followupfor:
- stuck shipment checks (
intent="stuck") - grouped summaries (
intent="aggregate",group_by="status"|"carrier"|"sub_status"|"age_bucket") - filtered listing (
intent="list"with optional filters)
- Use
get_shipment_details_from_queryto fetch a specific shipment from cached context byawbororder_id.
This lets Claude answer multiple follow-up questions from the same API response without refetching each time.
Backward Compatibility
get_shipmentsstill works for stuck shipment reporting.- It now internally uses shared shipment normalization/stuck logic and includes a
Query IDin output for follow-up analysis.
Query Context Behavior
- Query contexts are short-lived in-memory cache entries.
- If a query id expires, rerun
query_shipmentsto get a freshquery_id. - Cache tuning environment variables:
SHIPMENT_QUERY_TTL_SECONDS(default:1200)SHIPMENT_QUERY_MAX_CONTEXTS(default:25)SHIPMENT_QUERY_MAX_RECORDS(default:2000)
Development
Run the server locally for testing:
uv run main.py
Project Structure
mcp-eshipz/
āāā main.py # Main MCP server implementation
āāā pyproject.toml # Project dependencies
āāā .env # Environment variables (not in git)
āāā .gitignore # Git ignore rules
āāā README.md # This file
Dependencies
httpx- Async HTTP clientmcp- Model Context Protocol SDKpython-dotenv- Environment variable management
Support
For issues or questions, please open an issue on GitHub.
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.