trackmage
Model Context Protocol (MCP) server for TrackMage API integration, with support for 1600+ carriers worldwide. Enables AI assistants to track shipments, manage logistics, create orders, and monitor package delivery statuses. Features OAuth authentication, carrier detection, and real-time tracking updates.
claude mcp add --transport stdio trackmage-trackmage-mcp-server node /path/to/trackmage-mcp-server/index.js \ --env TRACKMAGE_CLIENT_ID="your_client_id_here" \ --env TRACKMAGE_WORKSPACE_ID="your_workspace_id_here" \ --env TRACKMAGE_CLIENT_SECRET="your_client_secret_here"
How to use
This MCP server exposes the TrackMage shipment tracking API and logistics capabilities through the MCP (Model Context Protocol) interface. It enables creation and management of shipments and orders, retrieval of shipment checkpoints, and carrier detection across TrackMage’s network, with OAuth-based authentication to the TrackMage API. You can interact with the server using the included MCP resources, such as trackmage:///workspaces/{id}, trackmage:///shipments/{id}, trackmage:///orders/{id}, trackmage:///carriers/{id}, and trackmage:///tracking_statuses/{id}, as well as the core tools for creating and updating shipments and orders, listing resources, and retracking shipments.
To use the server, start it with the provided Node entry point and ensure your environment variables are properly set (client credentials and workspace ID). The server will authenticate against TrackMage and expose endpoints via the MCP transport you configure (for example HTTP on localhost:3000). You can then issue MCP requests to perform operations like creating shipments, retrieving checkpoints, listing carriers, and detecting carriers for a given tracking number. The tools and resources mirror TrackMage’s API capabilities, making it straightforward to integrate tracking into your larger workflow or agent-driven processes.
How to install
Prerequisites:
- Node.js v18+ installed on your machine
- Access to a TrackMage account with API credentials (Client ID, Client Secret) and a Workspace ID
Installation steps:
- Clone the MCP server repository:
git clone https://github.com/yourusername/trackmage-mcp-server.git
cd trackmage-mcp-server
- Install dependencies:
npm install
- Create and configure environment variables:
cp .env.example .env
- Populate .env with your TrackMage credentials:
TRACKMAGE_CLIENT_ID=your_client_id_here
TRACKMAGE_CLIENT_SECRET=your_client_secret_here
TRACKMAGE_WORKSPACE_ID=your_workspace_id_here
- Start the MCP server:
npm start
- (Optional) Run tests if provided:
npm test
If you’re deploying with a container or another process manager, configure the command accordingly (see mcp_config example in the JSON below).
Additional notes
Environment variables required by the server:
- TRACKMAGE_CLIENT_ID: Your TrackMage client/application ID
- TRACKMAGE_CLIENT_SECRET: Your TrackMage client secret
- TRACKMAGE_WORKSPACE_ID: The workspace you want to operate within
Common issues:
- Incorrect credentials or workspace ID will cause authentication failures; re-check values in TrackMage Settings > API KEYS and the workspace URL
- Ensure the port used by the MCP transport (e.g., HTTP on 3000) is accessible from your tooling
- If using a reverse proxy, configure proper CORS and network rules
- For sensitive data handling, follow privacy best practices outlined in the README and your organization’s policy
Configuration tips:
- You can configure additional MCP resources and tools in your client calls as shown in the README (shipments, orders, carriers, etc.)
- The server supports both direct MCP file-based configuration and environment-based startup; choose the method that fits your deployment workflow
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
bitbucket
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
mcp-arr
MCP server for *arr media management suite
crawlbase
Crawlbase MCP Server connects AI agents and LLMs with real-time web data. It powers Claude, Cursor, and Windsurf integrations with battle-tested web scraping, JavaScript rendering, and anti-bot protection enabling structured, live data inside your AI workflows.
npm-search
MCP server for searching npm packages
webasyst
MCP server for Webasyst framework — tools for apps, plugins, themes, UI components via AI assistants (Claude, Cursor)