Blog/Category
Shipping Tips & Tricks

Add a Shipping MCP Server to Claude Code, Cursor, VS Code, Bolt, Lovable and Replit

November 24, 2026
Add a Shipping MCP Server to Claude Code, Cursor, VS Code, Bolt, Lovable and Replit

Updated November 2026. Facts verified against vendor and carrier documentation; see references at the end.

To add a shipping MCP server to Claude Code, Cursor or VS Code, point the client at https://app.ship.com/mcp and send your Ship.com connection key as an Authorization: Bearer header. In Claude Code that is one command. In Cursor, VS Code and Windsurf it is a short JSON file. Bolt, Lovable and Replit each have a "custom MCP server" form where you paste the same URL and credential.

What do you need before you start?

You need a Ship.com account and a connection key. The connection key is an access token. It lasts 180 days and gets all 40 tools, including label purchasing.

Any developer can get one. Sign up at https://www.ship.com/sign-up, then in app.ship.com go to Settings > API Integration (or MCP in the sidebar), choose "Connect from another tool" and click "Show my connection key." Use only the token itself, which starts with OAUTH2.. Clicking that button again returns the same token while it is still valid, so it won't break a client you already set up.

Treat the key like a password. Anyone who has it can act on your account. Keep it in an environment variable or a password prompt, and keep it out of any file you commit.

How do you add Ship.com to Claude Code?

Run this in your terminal, with your token in place of YOUR_TOKEN:

claude mcp add --transport http shipcom https://app.ship.com/mcp --header "Authorization: Bearer YOUR_TOKEN"

Keep the --header part to use your key. Without it, Claude Code signs in through OAuth instead, which gets the same 40 tools. Add --scope user to make the server available in every project. You can also get a key from "Connect from Claude" in the Ship.com app: choose "Use a connection key instead," then "Generate connection key."

How do you add Ship.com to Cursor?

Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). It reads the key from the SHIPCOM_TOKEN environment variable, so the token never sits in the file.

{
  "mcpServers": {
    "shipcom": {
      "url": "https://app.ship.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SHIPCOM_TOKEN}"
      }
    }
  }
}

How do you add Ship.com to VS Code?

Create .vscode/mcp.json. VS Code prompts you for the token once and masks it, so it stays out of the file.

{
  "inputs": [
    {
      "type": "promptString",
      "id": "shipcom-token",
      "description": "Ship.com access token",
      "password": true
    }
  ],
  "servers": {
    "shipcom": {
      "type": "http",
      "url": "https://app.ship.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:shipcom-token}"
      }
    }
  }
}

How do you add Ship.com to Windsurf?

Windsurf uses mcp_config.json. The one difference from Cursor is the URL key, which is serverUrl.

{
  "mcpServers": {
    "shipcom": {
      "serverUrl": "https://app.ship.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SHIPCOM_TOKEN}"
      }
    }
  }
}

What about Claude on the web, desktop or mobile?

Claude's apps use OAuth sign-in, so there is no key to paste. Go to Settings, then Connectors, search for Ship.com, click Connect and then Allow. To add it as a custom connector instead, choose "Add custom connector," enter https://app.ship.com/mcp and, under advanced settings, set the client ID to claude and leave the secret blank.

OAuth sign-in gets the same 40 tools, including buying labels. It accepts Claude clients only. Claude shows you the cost first, and nothing is bought until you approve.

How do you connect Bolt, Lovable, Replit and v0?

These AI app builders all accept a custom MCP server by URL. Their docs, as of November 2026:

BuilderWhere to add itAuth options in the formCan your published app call the tools?
BoltPlus icon in the chatbox, then Connectors, Manage connectors, Custom MCP serverAPI key, MCP OAuth, or none; transport HTTP or SSEDocs don't say
LovableConnectors, Add custom, MCP serverOAuth (default), bearer token or API key, or noneNo. A chat connection "is not included in your published app."
ReplitSettings, Integrations, Your integrations, Add custom, Add personal MCP serverCustom headers under Advanced settings; OAuth if the server asksDocs don't say
v0The + menu in the prompt form, then MCPsNo Auth, Custom Headers, Bearer Token or OAuth 2.0No. "The generation v0 creates cannot use the MCP tools directly."

In each case, enter https://app.ship.com/mcp as the URL and your connection key as a Bearer token (or an Authorization header with the value Bearer <your key>). Don't pick OAuth: our OAuth sign-in only accepts Claude clients. Bolt's docs don't say how its API key option is sent, so confirm the connection with a harmless read tool like get_balance before you rely on it.

Replit's docs add a fair warning: "Only connect to MCP servers you trust."

Build-time agent tools vs runtime code: what's the difference?

When you connect an MCP server to Cursor, Bolt or v0, the tools belong to the agent that is writing your code. It can quote a rate or look up an order while it builds, but the finished app does not get those tools.

If the app you ship needs to buy labels, it should call the Ship.com REST API from server-side code. Our endpoints live under https://app.ship.com/public/, for example POST /public/quote and POST /public/purchase-label, with Authorization: Bearer $TOKEN. Store the key in your host's secrets or environment variables. Never put it in browser code, where anyone can read it from the page.

v0's docs suggest the same split: pair the MCP with environment variables to pass values into generated code. More on the REST side in our API overview and guide to a custom shipping API for online sellers.

How do you test the connection?

Start with read tools. Ask your agent to "check my Ship.com balance" (get_balance) or "quote a 2 lb package from my ZIP to 10001" (quote_shipping, no order needed). Neither spends money.

When you are ready to buy, remember that buy_label previews by default and only buys with confirm: true. Set max_cost so the server refuses anything over your cap. For your first real label, pick a cheap order. If you don't need it, cancel_shipping_label can void it within 29 days if the carrier hasn't scanned it, and the refund goes to your postage balance. The full pattern is in how to let an AI agent buy shipping labels safely.

An HTTP 429 means you hit the limit of 60 requests per minute per token. Wait out the Retry-After: 60 window.

Frequently asked questions

How do I add a shipping MCP server to Claude Code?

Run claude mcp add --transport http shipcom https://app.ship.com/mcp --header "Authorization: Bearer YOUR_TOKEN" with your Ship.com connection key in place of YOUR_TOKEN. Add --scope user to use it in every project. The connection key gets all 40 tools, including label purchasing, and lasts 180 days before you need a new one.

Can my agent buy labels after I connect Ship.com with OAuth?

Yes. Ship.com's OAuth sign-in gets the same 40 tools as a connection key, including the two money tools, buy_label and trigger_batch_purchase. OAuth accepts Claude clients only, so other agents need a connection key, which you generate in Ship.com under Settings, API Integration.

Can the app I build in Bolt or Lovable use MCP tools?

Not directly. Lovable says a chat connection is not included in your published app, and v0 says its generated apps cannot use MCP tools directly. Treat MCP as a build-time tool for the coding agent. For a live app, call the Ship.com REST API from server-side code and keep your key in the host's secrets.

Is it safe to put my Ship.com connection key in mcp.json?

Avoid it. Anyone who has the key can act on your account, including buying labels. Use an environment variable like ${env:SHIPCOM_TOKEN} in Cursor and Windsurf, or a masked promptString input in VS Code, and keep config files with real tokens out of git. If a key leaks, click Generate API Key under Settings, API Integration. That ends the old token right away, for the MCP and the REST API.

Still picking a provider? See the best MCP servers for shipping in 2026.

Connect Ship.com to your agent

One URL and one key gets your agent quoting and buying USPS and UPS labels at up to 89% off USPS and up to 87% off UPS. Plan details are on our pricing page.

Read the Ship MCP setup guide

Create a Ship.com account

References

Shipping software built for online sellers

Ship.com saves you time and money, giving you more freedom to live your life.

  • No credit card required.
  • Up to 89% off USPS and up to 87% off UPS.
  • Connects with major e-commerce platforms.
  • Free home pickup. Skip the trip to the post office.
Try for free
UPS
UP TO 87% OFF
Daily Rates*
USPS
UP TO 89% OFF
Retail Prices*
Today's orders
Order #1042USPS Ground AdvantageReady
Order #1043UPS Ground SaverReady
Order #1044USPS Priority MailReady
★★★★★Trusted by 10,000+ business customers

Recent blogs

See all