Install on Claude Code
Prerequisites
- Claude Code installed and signed in.
- An AfterShip account with access to the organization you want to connect.
Install
Add the AfterShip Post-purchase MCP server to Claude Code. The local server
name — aftership-post-purchase — is how Claude Code identifies this MCP.
You can pick any name, but the examples below assume aftership-post-purchase.
preparing...
Sign in
Authenticate with AfterShip:
preparing...
This opens your browser and starts the OAuth flow. Choose the AfterShip organization you want the agent to work with, then return to the terminal — Claude Code stores the token automatically. No credentials need to be written into any config file.
Verify
Start a new conversation and ask:
What tools does the AfterShip Post-purchase connector provide?
Claude should list the available tools without calling any of them —
such as list_shipments, get_shipment, list_returns, and so on.
If Claude reports it has no such connector or lists no tools, reopen
Settings → Connectors and confirm AfterShip Post-purchase shows
as connected.
Troubleshooting
- Tools do not appear after install. Re-run
claude mcp login aftership-post-purchase; the OAuth flow may not have completed on the first attempt. - Wrong organization data. Remove the server with
claude mcp remove aftership-post-purchase, add it again, and re-runclaude mcp login aftership-post-purchase, selecting the correct organization during OAuth.
Still stuck? Contact us at AfterShip Support