Install on Cursor
Cursor connects to MCP servers through its MCP settings and makes their tools available to Agent.
Prerequisites
- Cursor installed and signed in — download it here.
- An AfterShip account with access to the organization you want to connect.
Install
Where Cursor keeps MCP servers changed in version 3.18. If Cursor Settings shows a banner reading "Plugins, MCPs, Skills, and Rules have moved to Customize", use the first path. Otherwise use the second.
Cursor 3.18 and later
- Click Customize in the sidebar.
- Select the MCPs tab.
- Click New MCP Server ("Add a Custom MCP Server"). Cursor opens a file called
mcp.json.
Earlier versions
- Open Cursor Settings: press
⌘⇧J(macOS) orCtrl+Shift+J(Windows). - Go to Tools & MCP.
- Click New MCP Server. Cursor opens a file called
mcp.json.
Then, on either path, put this inside mcp.json and save:
preparing...
If the file already lists other servers, add the aftership-post-purchase block alongside them — don't delete what's there.
aftership-post-purchase is just a label. You can call it anything; the rest of this page assumes that name.
If you can't find either screen, edit the file yourself instead: ~/.cursor/mcp.json applies to every project, .cursor/mcp.json to one project.
Sign in
Go back to the MCP list. The server you added should be there, marked Needs authentication.
- Click Connect on that row.
- A browser tab opens. Sign in to AfterShip and pick the organization you want Cursor to work with.
- Come back to Cursor.
The row turns green and lists the tools it can use. Nothing is saved into mcp.json — Cursor stores the sign-in for you.
Verify
Open Cursor's chat panel and ask:
What tools does the AfterShip Post-purchase server provide?
Cursor should list the available tools without calling any of them — such as list_shipments, get_shipment, list_returns, and so on. If Cursor reports no such server or lists no tools, go back to the MCP list and confirm the server you added is connected.
Troubleshooting
- The server is not in the list. Check
mcp.jsonis valid JSON — one missing comma or bracket makes Cursor skip the whole file. - Can't find the MCPs screen. Cursor 3.18 moved MCP settings to Customize. Older versions keep them in Cursor Settings → Tools & MCP.
- It works in one project but not another. A server saved in
.cursor/mcp.jsononly exists inside that project. Move the block to~/.cursor/mcp.jsonto get it everywhere. - You're seeing the wrong company's data. Remove the server, add it again, and sign in — this time picking the right organization.
Still stuck? Contact us at AfterShip Support