io.github.sawftware-apps/commodities-sh · v0.2.0 · productivity
Primary Source Commodities is healthy: it completed an MCP handshake in 2317 ms and exposes 30 tools.
Primary-source commodities for agents — EIA, USDA, CFTC, IMF, USGS, FAOSTAT, Comtrade. 30 tools.
Endpoint: https://api.commodities.sh/api/mcp (streamable-http)
Repository · JSON · Add to my inventory
| Users (last 30 days) | 0 |
| Handshake | Healthy |
| Auth needed | None |
| Tool count | 30 |
| Latency | 2317 ms |
| Last checked (UTC) | 2026-11-29T07:30:31.807Z |
| Checked (UTC) | Status | Latency | Error |
|---|---|---|---|
| 2026-11-29T07:30:31.807Z | Healthy | 2317 | |
| 2026-11-26T23:00:22.938Z | Healthy | 1834 | |
| 2026-11-24T15:55:27.658Z | Healthy | 1332 | |
| 2026-11-22T11:10:25.704Z | Healthy | 851 | |
| 2026-11-20T07:55:32.690Z | Healthy | 625 | |
| 2026-11-18T05:45:39.271Z | Healthy | 788 | |
| 2026-11-16T05:00:15.305Z | Healthy | 1023 | |
| 2026-11-14T05:50:58.332Z | Healthy | 2036 | |
| 2026-11-12T07:30:26.918Z | Healthy | 876 | |
| 2026-11-10T10:20:37.549Z | Healthy | 2161 | |
| 2026-11-08T14:35:19.277Z | Healthy | 1669 | |
| 2026-11-06T19:55:48.439Z | Healthy | 866 | |
| 2026-11-05T02:15:48.553Z | Healthy | 890 | |
| 2026-11-03T09:10:29.737Z | Healthy | 2606 | |
| 2026-11-01T17:20:31.343Z | Healthy | 1359 | |
| 2026-10-31T02:35:23.870Z | Healthy | 644 | |
| 2026-10-29T12:25:26.898Z | Healthy | 1639 | |
| 2026-10-27T22:50:12.690Z | Healthy | 1317 | |
| 2026-10-26T10:35:12.918Z | Healthy | 1386 | |
| 2026-10-24T23:05:09.473Z | Healthy | 1019 |
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. Returns nothing rather than a guess when no instrument matc |
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 price.history and computing yourself. Descriptive only: no signa |
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 excluded from the total and reported in `missing`, never defaul |
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-equivalent discovery via /v1/trade/codes for valid values. Annual |
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 named observable field — there is NO opportunity score, because |
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 farmer received, and differs from price.latest and from 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 markets. Pass the reporter as ISO alpha-3 (GHA, IND). Annual |
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 PRODUCTION: a country can be a large exporter of something it does |
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 with formula and inputs. |
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 prints. |
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 one. Accepts ISO3, ISO2, a numeric M49 or an exact country na |
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, since trade.codes lists headings only for catalog instruments |
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, stale (served and flagged), unlisted (AMS no longer lists i |
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 entry point would let a caller quote the single price and send |
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-instrument errors rather than a whole-call failure when one ha |
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 NOT the benchmark price.latest returns; all three are correct |
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 decide whether to spend on a bundle or a pack before calling one. |
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 reliance. REFUSES three things: no ratio between the supply |
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 basis in CENTS per bushel against a named futures month, price |
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 numbers as well as the timing — calendar.get answers only * |
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. |