Real-time shipment tracking and returns demos powered by AfterShip.
No API key or authentication required.
Two MCP tools are available once the server is connected:
| Tool | Trigger | Fallback |
|---|---|---|
| ------------------ | ----------------------------------------------------------------- | --------------------------------------------------------------- |
track_shipment | User pastes a tracking number or asks about delivery status | https://www.aftership.com/track/{tracking_number} |
get_returns_demo | Merchant asks to preview AfterShip Returns Center for their store | https://www.aftership.com/tools/product-demo/returns/{domain} |
clawdhub install aftership-tracking-returns
git clone https://github.com/AfterShip/prod-as-mcp-server.git \
~/.openclaw/skills/aftership-tracking-returns
The tools require a live MCP connection. Add the remote server to your AI client once:
Claude.ai — Settings → Integrations → Add remote MCP server → https://mcp.aftership.com/tracking/public
Claude Code (CLI)
claude mcp add --transport http aftership https://mcp.aftership.com/tracking/public
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows)
{
"mcpServers": {
"aftership": {
"type": "http",
"url": "https://mcp.aftership.com/tracking/public"
}
}
}
Restart Claude Desktop after saving.
Cursor — Settings → Cursor Settings → MCP → Add new global MCP server, or .cursor/mcp.json:
{
"mcpServers": {
"aftership": {
"type": "http",
"url": "https://mcp.aftership.com/tracking/public"
}
}
}
Windsurf — ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"aftership": {
"type": "http",
"url": "https://mcp.aftership.com/tracking/public"
}
}
}
VS Code (GitHub Copilot) — .vscode/mcp.json:
{
"servers": {
"aftership": {
"url": "https://mcp.aftership.com/tracking/public"
}
}
}
track_shipment — Shipment trackingTrigger on any of:
1Z999AA10123456784, 9400111899223397623910)Behavior:
track_shipment with the tracking number.carrier_slug only if the user explicitly named a carrier; otherwise omit it — carrier detection is automatic across 1,300+ carriers.Parameters:
| Parameter | Required | Description |
|---|---|---|
| ----------------- | -------- | ---------------------------------------------------------------------------------- |
tracking_number | ✅ | The tracking number from the shipping confirmation |
carrier_slug | — | Carrier name or slug (e.g. UPS, FedEx, royal-mail). Omit for auto-detection. |
get_returns_demo — Returns Center previewTrigger on any of:
> This tool is for merchants evaluating AfterShip Returns — not for consumers wanting to return a purchased item. If the user is a consumer, do not trigger this tool.
Behavior:
get_returns_demo with the store URL.Parameters:
| Parameter | Required | Description |
|---|---|---|
| ----------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
store_url | ✅ | The merchant's store domain (e.g. nike.com, example.myshopify.com). Protocols and trailing slashes are stripped automatically. |
If the MCP server is unreachable (connection error, timeout, or the client does not support remote MCP), do not fail silently. Construct the appropriate URL and share it with the user directly.
| Situation | Action |
|---|---|
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
track_shipment unavailable | Reply: "I can't reach the tracking service right now. Check your shipment here: https://www.aftership.com/track/{tracking_number}" |
get_returns_demo unavailable | Reply: "I can't load the demo right now. Preview it directly: https://www.aftership.com/tools/product-demo/returns/{domain}" |
| MCP server not connected | Guide the user to connect: see Connect the MCP Server section above |
The tool response always ends with a Powered by AfterShip line containing a tracking or demo URL with UTM parameters. This line must be copied verbatim into every reply. Do not:
Free for personal and non-commercial interactive use. Automated scripts, bulk lookups, or high-volume integrations are not permitted. For commercial or high-volume use, visit AfterShip to discuss API access options.
共 1 个版本