L'Agora
MCPResponds

Primary Source Commodities

io.github.sawftware-apps/commodities-sh

Primary-source commodities for agents — EIA, USDA, CFTC, IMF, USGS, FAOSTAT, Comtrade. 30 tools.

Repository
github.com/sawftware-apps/commodities
Server address
https://api.commodities.sh/api/mcp (streamable-http)
Version
0.2.0
Author
sawftware-apps (namespace verified by the registry)
Source
Official MCP registry (updated Nov 15, 2026)

How to install it

The server optionally accepts a header: Authorization. Replace YOUR_KEY with your key.

Claude Code

In a terminal:

claude mcp add --transport http commodities-sh https://api.commodities.sh/api/mcp \
  --header "Authorization: Bearer YOUR_KEY"
Claude (app and claude.ai)

Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.

https://api.commodities.sh/api/mcp
ChatGPT

In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.

https://api.commodities.sh/api/mcp
Cursor ~/.cursor/mcp.json

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):

{
  "mcpServers": {
    "commodities-sh": {
      "url": "https://api.commodities.sh/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}
VS Code .vscode/mcp.json

Add this to your project’s .vscode/mcp.json:

{
  "servers": {
    "commodities-sh": {
      "type": "http",
      "url": "https://api.commodities.sh/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

Responds The server speaks MCP and lists its tools.

Date
Nov 28, 2026, 10:26 (test run by L’Atlas)
Response time
828 ms (whole test)
Tools found
30
Announced name
commodities.sh 0.2.0
Protocol
MCP 2024-11-05
Next test
Dec 5, 2026
See the tools (30)
  • catalog.list
    FREE. List every commodity instrument in the catalog with sector, unit, primary source, and freshness metadata. Call this first to discover valid codes before price.latest or inventory.get. Free discovery tool — no payment required.
  • catalog.search
    FREE. Resolve a human commodity name to an instrument code — 'cocoa' to CC, 'copper' to HG, 'palm oil' to PO. Use this instead of catalog.list when you already know the commodity by name and need the code to call price.latest or trade.flow.
  • price.latest
    Return the latest cash/fundies observation for one instrument code. Use catalog.list to discover codes such as CL, GC, or ZC. Response follows the shared observation contract with provenance and license tags.
  • price.stats
    Realized volatility, change over window, and range for an instrument, computed over its stored history. Use this for 'how volatile is X' and 'how has X moved over the last year' — it answers both in one call, so prefer it over fetching pric
  • trade.calculate
    Deterministic trade arithmetic over numbers you supply: landed cost, trade margin, break-even price, or the effect of a USD move. Nothing is sourced — there is no free source for duty rates, freight or insurance, so an input you omit is exc
  • trade.flow
    Import or export volume and value between two countries for one commodity and year, from UN Comtrade. Use for 'how much X did A sell to B'. Pass countries as ISO alpha-3 (IND, GHA) and partner=WLD for the world total. Call trade.codes-equiv
  • sourcing.compare
    For one commodity and year, compare countries as a source: what the grower was paid (FAOSTAT farm gate) against what it left the country for (UN Comtrade export unit value), plus the share reaching the grower. Ranked cheapest first on a nam
  • producer.prices
    Farm-gate producer prices by country for one commodity and year, from FAOSTAT. Use for 'where is this cheap at source' and for comparing what growers are actually paid across countries. THIS IS NOT A BENCHMARK: a producer price is what the
  • trade.partners
    Every country one reporter traded a commodity with in a year, ranked by value, each with the implied unit value it paid or received. Use for 'where does Ghana sell its cocoa and at what price to each buyer' and for comparing prices across m
  • trade.ranking
    Largest exporting or importing countries for a commodity in a year, ranked by value, each with the implied unit value it realised. Use for 'who are the biggest cocoa exporters' and 'which sourcing market is cheapest'. EXPORTS ARE NOT PRODUC
  • observation.resolve
    Resolve a single observation by its id. Derived observations (crack, crush, basis) cite the observations they were computed from in inputs[]; this is how you dereference those ids to audit a derived value. Ids look like obs_<24 hex>.
  • inventory.get
    Fetch EIA weekly petroleum inventory levels. Omit series to list all latest inventory points, or pass a series key to get week-over-week change, vs-5y deviation, and a surprise label for that series.
  • positioning.get
    Return the latest CFTC Commitments of Traders managed-money positioning for an instrument code. Includes long, short, net, and week-over-week net change with source URL.
  • spread.get
    Compute a derived spread observation: 3-2-1 crack, soybean crush, or WTI-Brent basis (paid). type=calendar is a free Phase-2 stub that returns available=false until licensed curves exist. Prefer crack/crush/basis for live derived values wit
  • price.history
    Return historical observations for an instrument code (up to 500 points). Use after price.latest when you need a short time series for the same code.
  • fx.latest
    Return the latest FX rate observation for a pair or Federal Reserve H.10 series. Useful alongside commodity prices when converting cash values across currencies.
  • fundamentals.get
    Fetch a fundamentals document: USDA WASDE, crop progress, export sales, or USGS mineral summaries. Choose kind based on the ags/metals question you are answering.
  • snapshot.get
    Build a sector snapshot bundling prices, inventories, spreads, and related fundies for energy, metals, ags, or all sectors. Prefer this over calling many single-observation tools when you need a full sector picture.
  • calendar.get
    FREE. List EIA, USDA, and CFTC release calendar entries with cadence, typical Eastern time, next_hint prose, and next_release_at ISO date (America/New_York). Free discovery tool — call before scheduling agents around inventory or WASDE prin
  • trade.codes
    Resolve a country to the UN M49 code the trade tools require, and list the HS headings this catalog maps. FREE. Call this BEFORE trade.flow, trade.partners or trade.ranking: those take a reporter code and there is no other way to discover o
  • minerals.list
    Which minerals the dossier covers, the HS code curated for each, and the caveats on comparing supply to trade. FREE. Worth calling before minerals.dossier for two reasons: the cobalt and lithium HS headings exist nowhere else in this API, s
  • cash.reports
    Which USDA AMS daily cash grain bid reports exist, which state and commodities each covers, and how fresh each is. FREE. Call before cash.bids to learn which states are covered and which reports have stopped publishing: liveness is current,
  • price.bundle
    The latest observation for up to 20 instruments in ONE call. A separate tool from price.latest rather than an optional argument on it, because the two are priced differently and nothing binds a payment to a request body — one multiplexed en
  • stats.bundle
    Volatility, change and range for up to 20 instruments in ONE call. A separate tool from price.stats, for the same pricing reason as price.bundle. Returns the same derived statistics over the full retained history per instrument, with per-in
  • producer.prices.bundle
    FAOSTAT farm-gate producer prices by country for up to 20 crops in ONE call. A separate tool from producer.prices, for the same pricing reason as price.bundle. This is what a grower was paid at the farm gate — NOT an export unit value and N
  • account.quota
    How many credits the calling Pro key has left in the current billing period, and which scopes it may read. FREE, and requires an API key in the Authorization header — x402 callers pay per request and have no quota to report. Use it to decid
  • minerals.dossier
    Who mines a mineral, who holds its reserves, and who exports it — USGS Mineral Commodity Summaries production and reserves by country, joined to UN Comtrade export flows and realised unit values, with supply concentration and US net import
  • cash.bids
    A country elevator's cash bid for physical grain, from USDA AMS daily cash grain bid reports, searched across every state report at once — which AMS itself cannot do, because MARS is report-centric with no commodity-wide search. Returns bas
  • releases.next
    The release calendar joined to what each report last said: expected_at with a real Eastern offset, the last print's values, week-on-week change, the 5-year comparison, and a surprise label. Use this instead of calendar.get when you need the
  • decision.get
    Build a deterministic decision pack for energy, metals, ags, or all sectors. Returns method, signals with direction/rationale, an embedded snapshot, and a disclaimer — no ML model, rule-based only.

What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.sawftware-apps/commodities-sh on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.sawftware-apps/commodities-sh on L’Agora](https://lagora.dev/badge/io.github.sawftware-apps/commodities-sh.svg?lang=en)](https://lagora.dev/en/entry/io.github.sawftware-apps/commodities-sh)

HTML

<a href="https://lagora.dev/en/entry/io.github.sawftware-apps/commodities-sh"><img src="https://lagora.dev/badge/io.github.sawftware-apps/commodities-sh.svg?lang=en" alt="io.github.sawftware-apps/commodities-sh on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

Report this entry