How to integrate AfterShip MCP with Atomic Agent

Connect Atomic Agent to AfterShip MCP. Check shipment status by tracking number, detect courier for an unknown shipment, and more using natural language, with authentication handled for you.

AfterShip logoAfterShip
Api Key

AfterShip is an ecommerce shipping platform for tracking shipments, detecting couriers, and predicting delivery dates. It helps teams keep customers informed and manage deliveries across carriers.

17 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including AfterShip.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a AfterShip account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate AfterShip with

How Atomic Agent connects to AfterShip

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect AfterShip to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in AfterShip. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your AfterShip account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the AfterShip MCP server, and what's possible with it?

The AfterShip MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your AfterShip account. It provides structured and secure access to shipment tracking, courier connections, courier detection, and delivery date predictions, so your agent can create and manage trackings, identify carriers, monitor shipment progress, and estimate delivery dates on your behalf.

  • Shipment tracking management: Have your agent create, view, update, delete, and retrack shipment tracking records, including order, customer, route, and delivery details.
  • Courier detection and connections: Let the agent identify likely couriers for a tracking number, review available courier services, and manage connected courier accounts.
  • Delivery date predictions: Direct your agent to predict estimated delivery dates for planned shipments, including several shipments at once before tracking numbers exist.
  • Tracking status updates: Instruct your agent to list shipments using delivery status and shipment details, then mark tracking records as delivered, lost, or returned to sender.
  • Courier account maintenance: Have your agent add, review, update, or remove courier connections when carrier credentials or shipping providers change.

Use AfterShip from Atomic Agent

With your account connected, ask Atomic Agent to work with AfterShip in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every AfterShip action and event your agent gets out of the box.

Create Courier Connection

Connect one courier account using the courier-specific credential fields advertised by courier metadata.

Create Tracking

Create one shipment tracking record from a tracking number and optional courier, order, route, customer, and delivery metadata.

Create Trackings Batch

Sequentially create 1-20 tracking records through AfterShip's single-record create endpoint.

Delete Courier Connection

Permanently remove one courier account connection by an ID obtained from list or create.

Delete Tracking

Permanently delete one tracking record by its AfterShip tracking ID.

Detect Courier

Return couriers that may handle a tracking number, using optional courier and shipment hints to narrow detection.

Get Courier Connection

Return one courier account connection by an ID obtained from list or create.

Get Tracking

Return one tracking record by its AfterShip tracking ID, with optional field selection and checkpoint translation.

List Courier Connections

Return one cursor-controlled page of courier account connections, optionally filtered by courier slug.

List Couriers

Return courier metadata, optionally limited to account-activated couriers or selected courier slugs, including required tracking and credential field definitions.

List Trackings

Return one cursor-controlled page of shipment trackings, optionally filtered by identifiers, courier, status, dates, route, or shipment metadata.

Mark Tracking Completed

Mark a tracking as delivered, lost, or returned to sender.

Predict Estimated Delivery Date

Predict an estimated delivery date before a tracking number exists.

Predict Estimated Delivery Dates Batch

Predict estimated delivery dates atomically for one to five planned shipments.

Retrack Tracking

Restart automatic updates for an expired tracking.

Update Courier Connection

Replace carrier-specific credentials on an existing courier account connection.

Update Tracking

Update editable order, courier, route, customer, and delivery metadata on an existing tracking record.

FAQ

Frequently asked questions

Start with AfterShip.It takes 30 seconds.

Managed auth, hosted MCP servers, and every AfterShip tool your agent needs.Free to start.

Start building