Skip to content
Corridor Terminal

API and MCP

Use Corridor's trade data in your own tools

The same duty, landed-cost and market estimates as the terminal, as a simple API and as an MCP server for AI assistants. Free with an account.

1. Get a key

Sign in, open your account and create a key under “API and AI access”. The key is shown once, so copy it then. An account can have 5 keys, and each key can make 60 requests a minute.

2. Call the API

Send the key in the Authorization header. Every endpoint is a GET that returns JSON.

curl "https://corridorterminal.com/api/v1/duty?product=p68-0&origin=IN&dest=US" \
  -H "Authorization: Bearer YOUR_KEY"
EndpointWhat it returns
/api/v1/products?q=black pepperSearch the catalogue by name or HS code. Gives the product ids the other calls use.
/api/v1/duty?product=p68-0&origin=IN&dest=USImport duty, additional duty and import VAT or GST on a lane, with any trade deal applied.
/api/v1/landed-cost?product=p68-0&origin=IN&dest=UKLanded cost per unit for a typical shipment: price, freight, insurance, duty, port charges and delivery.
/api/v1/markets?product=p68-0Export destinations ranked by India's real exports, margin, duty, freight and risk.

Use a product id from the search, or pass hs= with a 6 or 8 digit HS code instead. Origins and destinations are the terminal's country codes, such as IN, US, EU, UK, AE, AU, OM and NZ. The EU is one destination.

3. Connect an AI assistant (MCP)

The MCP server gives an AI assistant the same four tools: search_products, get_duty, landed_cost, best_markets. It speaks the Model Context Protocol over HTTP. Add it as a remote server with your key as a bearer token:

{
  "mcpServers": {
    "corridor-terminal": {
      "type": "http",
      "url": "https://corridorterminal.com/api/mcp",
      "headers": { "Authorization": "Bearer YOUR_KEY" }
    }
  }
}

The exact place for this setting depends on the assistant you use. Then ask it something like “what duty does black pepper from India pay in the US, and where else should I sell it?”

What to know