Skip to content
TradeStats logo

TradeStats MCP server

Returns monthly Japan and UK customs import and export figures by product code and partner country, over MCP and a web API.

read 2026-11-15

← Back to TradeStats

How to connect

Add the server to your MCP client config. Claude Desktop, Cursor and most other clients read this shape:

{
  "mcpServers": {
    "tradestats": {
      "type": "http",
      "url": "https://tradestats.dev/mcp"
    }
  }
}

Add it

Claude Code, in a terminal

claude mcp add --transport http tradestats https://tradestats.dev/mcp

Add to CursorAdd to VS Code

claude.ai, ChatGPT and other clients: add https://tradestats.dev/mcp as a custom connector in the settings.

Tools it offers23 tools · read 2026-11-29
  • search_items

    Find product codes of one reporter by words from the product name (customs wording, e.g. "lithium-ion", "frozen shrimp", "integrated circuits") or by a code prefix (digits, e.g. "8708" or "30"). Japanese words work too (kanji, katakana or…

  • get_series

    Monthly time series for one product (HS2/4/6 or national code) of one reporter and partner country (default: world total). Per month: value and value_usd, quantity, kilograms, unit price (per unit and per kg), year-over-year and…

  • get_partners

    Trading partners of one reporter for one product. window 12 (default) covers the latest 12 months: each partner's 12-month value (and value_usd), share, year-over-year change against the previous 12 months, the 3-year change and rank…

  • get_ranking

    Rankings of one reporter for a month. kind "items_for_country": the largest products (at the chosen level) for a partner country (default: world total). kind "countries_for_item": the largest partner countries for one product code. kind…

  • get_balance

    Trade balance of one reporter for a product and partner country (default: world total) by month: export value, import value and balance (exports minus imports), in the reporter's currency and in US dollars. A month with trade in one…

  • compare_countries

    One product (HS2, HS4 or HS6 code, e.g. "850760" lithium-ion batteries, "8708" auto parts, "72" iron and steel, "030617" frozen shrimp) side by side across several reporting countries (default: every reporter currently available, as…

  • get_mirror_trade

    Two customs records of trade between two reporting countries: reporter's flow (export or import) with partner as the other side, next to the partner's opposite flow with the reporter as the other side. For example reporter JP, partner GB…

  • get_item_summary

    One-call overview of a product (HS2/4/6 or national code) of one reporter for the usual questions: a one-line summary (ai_context_summary, in US dollars), latest month, the last 12 months against the previous 12 and 3 years earlier, top…

  • get_new_markets

    Partner countries that are new or surging for one product of one reporter, comparing the latest 12 months with the 12 months before. "new": the 12-month value is at least min_value (default 1,000,000 US dollars; never below 100,000) and…

  • get_seasonality

    Seasonal pattern of one product of one reporter: for the 3 latest full calendar years before the year of the latest published month (data through 2026-08 gives 2023 to 2025; the years are stated in the answer), each calendar month's share…

  • get_catalog

    Call this first. Describes what the service holds: the reporters (JP, US, GB, EU) with their currency, national code level, and for import and export the first month and the latest published month; per reporter also source (the agency to…

  • report_data_issue

    Report a figure that looks wrong or a data problem you noticed (at most 10 reports per day per caller). Give the tool and arguments of the call in question and describe the problem in message (up to 2,000 characters). Returns a report id…

  • list_indicators

    Call by name, no HS code needed: lists the named indicators this service computes from public customs statistics (for example the quarterly base price of domestic naphtha, naphtha import prices and origins, or Japan passenger car and…

  • get_indicator

    Call by name, no HS code needed: returns one named indicator as a series (monthly or quarterly, newest first) with its latest value, year-on-year changes, a partner-country breakdown where the indicator has one, the definition, the…

  • decompose_change

    Splits the change in the value of a named indicator or of an HS code into a unit-value (price) effect and a volume effect: the latest window of 1, 3 or 12 months (default 12) is compared with the same months a year earlier, with the…

  • get_supplier_dependency

    Concentration of the supplying countries behind a named indicator or an HS code over the latest 12 months: the Herfindahl index (hhi, 0 to 1; score_points is the same figure on the 0 to 10,000 scale), the share of the largest supplier and…

  • get_mirror_estimate

    Estimate of one country's trade for a product from the records of the reporting countries that trade with it: for a target such as CN (China), flow "import" sums the reporters' exports to the target (what the target bought from them) and…

  • get_breadth

    How widespread a rise or fall in one country's trade is: for each month, the share of items (HS2 chapters, HS4 headings or HS6 subheadings, all or under one chapter) whose value in the latest window of 3 or 12 months is higher than in the…

  • get_trade_shift

    Trade around a month you name (a tariff, a quota or another policy date; this service keeps no list of policies): for one HS code of 2, 4 or 6 digits, the months before the event month and the months from it (the event month included) are…

  • get_tariff_burden

    Duty paid on imports as a share of their value, month by month, for one HS or national code (and optionally one partner country; default the world). Returns the calculated duty, the dutiable value, the consumption value and two effective…

  • get_transport_mode

    How an item arrives or leaves by method of transport, month by month: the value, the share of the total, the shipping weight and the value per kilogram of each mode (vessel, air, other), the change of the share against the same month a…

  • get_landed_cost

    What it costs to bring imports in, month by month: the general import value, the freight and insurance charges, the CIF value, the charges as a share of the value and the CIF value as a share of the general value. Imports only. Only…

  • get_drilldown

    Which child items drove the change of an HS2, HS4 or HS6 item: for the month you name (default the latest) compared with the same month a year earlier (compare "yoy") or the month before ("mom"), each child gets its value, the earlier…

How we checked it

Should an agent connect it

Not proven either way yet
  • Whether its tools do the product's job has not been judged yet.

Once connected

  • Its definitions take about 19718 tokens of context: enable only the tools a task needs.

Said by rules from the measurements above. The likely first call is a model's pick from the tool list; read its description before relying on it.

Measured daily

daily checks: 14, the first on 2026-11-15
  • INITE MCP score77 of 100answers 96 · definitions 83 · context 49 · connects 100 · lowered until one of our scenario runs passes
  • Answered100% of days14 of 14 daily checks
  • Median first answer1384 ms
  • Space in an agent's context≈ 19,718 tokensthe definitions of all its tools (23), which an agent carries on every turn
  • Tool definitionsB · 83 of 100
  • Typed results0 of 23 toolsdeclared outputSchema: results come typed, read once
  • Not saying whether it only reads or can destroy: 23 of 23

Worth a look

None of the five warning signs in these definitions.

A program checks the server once a day: initialize and tools/list, no model. Tokens are the definitions' length at about four characters a token. The grade averages six checks of every tool's name, description, schema and annotations; it says how well the tools are described, not whether they work. The score weighs what was measured and nothing else: answering (25%), doing the product's job (25%), definitions (20%), context (10%), use (10%) and how readily a client connects (10%). A part that was not measured is left out, and a hidden instruction caps the score at 40. The state of vendors' MCP servers: method and numbers →

When we asked itchecked 2026-11-28
  • Stateanswerschecked 2026-11-28
  • Tools23
  • Server calls itselftradestats
  • Server version0.1.0
  • Protocol version2025-06-18

On 2026-11-28 the server answered initialize and tools/list without a sign-in. First answer in 513 ms.

Whose server it is
  • Registry namedev.tradestats/tradestatsverified in the MCP registry

The registry name sits under tradestats.dev. The registry only lets a publisher use that namespace after proving control of the domain through DNS or HTTP.

OpenAPI spec

17 paths, read 2026-11-15. Open the spec ↗

Each line is something a program found when it went looking: the registry entry, the server's own answer, a spec that parses. A missing line means we did not find it, not that it does not exist.