# MCP for Claude, ChatGPT and Cursor

> For the complete documentation index, see [llms.txt](https://docs.containerfeed.com/llms.txt).

URL: https://docs.containerfeed.com/mcp

OpenContainer's MCP server lets an AI assistant track containers and bills of lading as tools. The URL is `https://mcp.containerfeed.com/mcp` (Streamable HTTP), over the same lookups as the REST API, with the same usage and plans.

Sign in with OAuth (Claude and ChatGPT connectors), with an API key in the `Authorization` header, or with no credentials at all for one free lookup a day.

## Set up

```bash tab="Claude Code"
claude mcp add --transport http opencontainer https://mcp.containerfeed.com/mcp \
  --header "Authorization: Bearer lsk_live_…"
```

```text tab="Claude"
Settings → Connectors → Add custom connector

Server URL:              https://mcp.containerfeed.com/mcp
Then:                    Connect, sign in to OpenContainer and choose Allow
```

```text tab="ChatGPT"
Settings → Apps & Connectors → Advanced settings → Developer mode, then Create

Server URL:              https://mcp.containerfeed.com/mcp
Authentication:          OAuth
Then:                    Sign in to OpenContainer and choose Allow
```

```json tab="Cursor"
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "opencontainer": {
      "url": "https://mcp.containerfeed.com/mcp",
      "headers": { "Authorization": "Bearer lsk_live_…" }
    }
  }
}
```

```json tab="VS Code"
// .vscode/mcp.json
{
  "servers": {
    "opencontainer": {
      "type": "http",
      "url": "https://mcp.containerfeed.com/mcp",
      "headers": { "Authorization": "Bearer lsk_live_…" }
    }
  }
}
```

Other clients (Windsurf and the rest): an HTTP server at `https://mcp.containerfeed.com/mcp` with the header `Authorization: Bearer lsk_live_…`.

Claude and ChatGPT connectors sign in with OAuth instead of a key: the connector is allowed to look up containers (the `track` scope) on your account, with its plan. To disconnect, remove the connector in the app. When you make a key in the [dashboard](https://app.containerfeed.com/keys), it shows each of these with your key filled in. A key always goes in the `Authorization` header, never in the URL.

Without a key, `initialize`, `tools/list` and `list_carriers` always work, and `track_package` gets the same one free lookup a day per IP as the REST API. An MPP credit key (`lsk_pack_…`, from [paying per request](https://docs.containerfeed.com/authentication#pay-per-request)) works anywhere an API key does and spends its credits.

## Tools

| Tool | Arguments | Returns |
|---|---|---|
| `track_package` | `tracking_number`, `carrier?` | One container or bill of lading: status, ETA and every move. A [tracking result](https://docs.containerfeed.com/tracking#the-response). |
| `track_packages` | `tracking_numbers` (up to 100, 35 per line), `carrier?` | `{ results }`, one entry per number with `result` or `error`. |
| `list_carriers` | | The carrier ids `carrier` accepts. |

`tracking_number` takes a container number (`MSKU7812341`) or a bill of lading. The line is detected from a container's owner prefix; for a bill of lading or a leased container (owner prefixes such as `TGHU` and `TCNU`), pass the line as `carrier`, for example `msc`. See [Carriers](https://docs.containerfeed.com/carriers).

Ask in plain language, for example:

- "Where is container MSKU7812341, and when is it due?"
- "Track MEDU1234562 and ONEU1234566 and tell me which one has been discharged."
- "Track bill of lading MAEU… with Maersk and list its containers."

## Behavior

- Stateless: each POST is one JSON-RPC message answered with plain JSON. No sessions, no SSE.
- A failed lookup comes back as a tool result with `isError: true` and the same `{ "error": { "code", "message" } }` as the [REST API](https://docs.containerfeed.com/errors), so the model can read it.
- Credentials: an invalid, revoked or expired key or token is HTTP 401 with `WWW-Authenticate: Bearer resource_metadata="https://mcp.containerfeed.com/.well-known/oauth-protected-resource"`, and so is a keyless tool call once the day's free lookup is used, so an OAuth client knows to sign in. A token without the `track` scope gets a 403. The JSON-RPC error's `data.code` says which (`unauthorized` or `free_lookup_used`).
- When a Free account's allowance is used up, the tool result is an error with code `rate_limited`. Without sign-in, `track_packages` tracks only the first number; the rest come back with code `auth_required`, and the result's `_meta["mcp/www_authenticate"]` carries the sign-in challenge.
- Messages to the model stay neutral ("sign in to continue", "limit reached"); prices and upgrade links are left to the REST API, the site and these docs.
- A successful result can carry a `notice` (the lookup without sign-in was just used, a credit key is running low, or a paid account's new containers are near or past the included ones) and, with a credit key, `credits_remaining`.
- Each tool lists the sign-in it accepts in `securitySchemes` (`noauth`, and `oauth2` with the `track` scope for the lookups), has `readOnlyHint`, `destructiveHint` and `openWorldHint` annotations, and an `outputSchema` for its `structuredContent`.
- `GET https://mcp.containerfeed.com` and `/.well-known/mcp.json` describe the server (name, tools, endpoint) for MCP registries.
- Also served at `https://api.containerfeed.com/mcp`.

For when to use MCP, REST or pay-per-request in an agent, see [AI agents: MCP and MPP](https://docs.containerfeed.com/ai-agent-container-tracking-mcp-and-mpp).
