Primary Source Commodities
io.github.sawftware-apps/commodities-sh
Serveur MCP OK 30 outils
Primary-source commodities for agents — EIA, USDA, CFTC, IMF, USGS, FAOSTAT, Comtrade. 30 tools.
Fiche technique
- Auteur
- sawftware-apps (espace de noms du registre)
- Dépôt
- github.com/sawftware-apps/commodities
- Site
- —
- Version
- 0.2.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://api.commodities.sh/api/mcp Streamable HTTP
- Outils
- 30
- Catégories
- IA, agents et mémoire
- Dernière mise à jour
- 15 nov. 2026
- Publication
- 15 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.sawftware-apps/commodities-sh)<a href="https://latlas.dev/mcp/io.github.sawftware-apps/commodities-sh"><img src="https://latlas.dev/badge/fiche/io.github.sawftware-apps/commodities-sh.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://api.commodities.sh/api/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:26
- Temps de réponse
- 828 ms (initialize + tools/list)
- Version du protocole
- 2024-11-05
- Nom annoncé
- commodities.sh 0.2.0
- Outils
- 30
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:26 | OK | 828 ms | 30 |
Outils exposés (30, réponse à tools/list, 28 nov. 2026)
catalog.list
List Instruments
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.
Aucun paramètre.
catalog.search
Search Instruments
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 matches. Free discovery tool — no payment required.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| q | string | oui | Commodity name, synonym, or instrument code, e.g. 'cocoa' |
| limit | integer | non | Maximum results (1-50, default 10) |
price.latest
Latest Price
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| code | string | oui | Instrument code from catalog.list. Example: CL, GC, ZC. |
| currency | string | non | Optional ISO currency to additionally express the price in, e.g. BRL. The observation itself stays in its catalog unit and remains the citable value; a `converted` block is added alongside it, citing the rate and its own as_of. |
price.stats
Price Statistics
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 signals or view, which live in decision.get.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| code | string | oui | Instrument code from catalog.list. Example: CC, CL, GC. |
| windows | array<string> | non | Windows to compute over, as a count and a unit. Example: ["30d", "90d", "1y"]. Defaults to those three. |
trade.calculate
Trade Calculation
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 defaulted to zero. Use price.latest first if you want a benchmark price to pass as unit_price.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| calculation | enum: "landed_cost" | "trade_margin" | "break_even" | "fx_impact" | oui | Which calculation to run. Example: landed_cost. |
| unit_price | number | non | landed_cost: price per unit. Example: 1133.13. |
| price_unit | string | non | landed_cost: unit of unit_price. Example: USD/metric ton. |
| quantity | number | non | Quantity. Example: 100. |
| quantity_unit | string | non | landed_cost: unit of quantity. Example: metric ton. |
| incoterm | enum: "EXW" | "FOB" | "CFR" | "CIF" | non | landed_cost: decides which costs your price already carries, so it shapes `missing`. CIF already includes freight and insurance. Example: CIF. |
| freight_usd | number | non | landed_cost: your freight cost. Omit and it is reported missing, not assumed zero. |
| insurance_usd | number | non | landed_cost: your insurance cost. |
| duty_rate_pct | number | non | landed_cost: your import duty rate, percent. Example: 8. |
| port_usd | number | non | landed_cost: port charges. |
| handling_usd | number | non | landed_cost: handling charges. |
| quote_currency | string | non | landed_cost: currency for the total. Needs fx_rate — no rate is sourced. Example: GHS. |
| fx_rate | number | non | landed_cost: units of quote_currency per USD. fx_impact: the rate to shock. |
| buy_price | number | non | trade_margin, break_even: purchase price per unit. |
| sell_price | number | non | trade_margin: sale price per unit. |
| costs_usd | number | non | trade_margin, break_even: other costs. |
| amount | number | non | fx_impact: amount held in the foreign currency. |
| rate_unit | string | non | fx_impact: direction of fx_rate, read not inferred. Example: GHS/USD means cedi per dollar. |
| usd_move_pct | number | non | fx_impact: percent the USD strengthens. Example: 5. |
trade.flow
Bilateral 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 data; the response says whether the rows reconcile with the upstream's own total.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | string | oui | Instrument code with an HS heading. Example: ZR for rice. |
| reporter | string | oui | Reporting country, ISO alpha-3 preferred. Example: IND. |
| partner | string | non | Partner country, or WLD for the world total. Example: GHA. |
| year | number | oui | Four-digit year. Example: 2023. |
| flow | enum: "import" | "export" | non | Direction from the reporter's view. Example: export. |
sourcing.compare
Compare Sourcing Countries
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 the weights would be invented. Supply freight_usd / duty_rate_pct to add a landed cost; absent costs are never defaulted, they are listed in `missing`. Annual data: this supports structural comparison, not an arbitrage claim. Covers the seven crops FAOSTAT prices.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | enum: "ZC" | "ZW" | "ZS" | "ZR" | "KC" | "CC" | "CT" | oui | Instrument code. Example: CC for cocoa. |
| year | number | non | Four-digit year; defaults to the latest available. |
| currency | string | non | Optional ISO currency for an additional converted view. |
| freight_usd | number | non | Caller-supplied freight per tonne. |
| duty_rate_pct | number | non | Caller-supplied duty rate, percent. |
| insurance_usd | number | non | |
| port_usd | number | non | |
| handling_usd | number | non | |
| incoterm | enum: "EXW" | "FOB" | "CFR" | "CIF" | non |
producer.prices
Producer Prices by Country
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 export unit value in trade.partners — all three can be correct and several-fold apart. Covers seven crops only (ZC ZW ZS ZR KC CC CT); sugar, palm and livestock are deliberately unmapped because FAOSTAT prices a different product for those. Annual, usually one to two years behind.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | enum: "ZC" | "ZW" | "ZS" | "ZR" | "KC" | "CC" | "CT" | oui | Instrument code. Example: KC for coffee. |
| year | number | non | Four-digit year; defaults to the latest available. |
trade.partners
Trading Partners Ranked
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 data. Completeness is verifiable for this shape: the response says whether the partner rows reconcile with the upstream's own World total.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | string | oui | Instrument code with an HS heading. Example: CC for cocoa. |
| reporter | string | oui | Reporting country, ISO alpha-3 preferred. Example: GHA. |
| year | number | oui | Four-digit year. Example: 2023. |
| flow | enum: "import" | "export" | non | Direction from the reporter's view. |
| limit | number | non | Maximum rows returned, 1-200 (default 25). |
trade.ranking
Countries Ranked by Trade
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 not grow — the Netherlands ranks sixth in cocoa exports and grows none. Completeness cannot be verified for this shape, so `complete` is always null.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | string | oui | Instrument code with an HS heading. Example: CC for cocoa. |
| year | number | oui | Four-digit year. Example: 2023. |
| flow | enum: "import" | "export" | non | export ranks exporters, import ranks importers. |
| limit | number | non | Maximum rows returned, 1-200 (default 25). |
observation.resolve
Resolve Observation
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_ .
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Observation id, e.g. from a derived observation's inputs[] array. |
inventory.get
EIA Inventory
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| series | string | non | Optional EIA inventory series key. Omit to return all latest inventory rows. Example: crude_stocks. |
positioning.get
COT Positioning
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| code | string | oui | Instrument code from catalog.list. Example: CL, NG, GC, ZC. |
spread.get
Derived Spread
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| type | enum: "crack" | "crush" | "basis" | "calendar" | oui | Spread type to compute. Example: crack for 3-2-1 gasoline/distillate crack. |
| root | string | non | Optional root symbol for calendar spreads. Example: CL. Ignored for crack/crush/basis. |
price.history
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| code | string | oui | Instrument code from catalog.list. Example: CL, GC, ZC. |
| limit | number | non | Number of historical points to return. Max 500, default 60. |
fx.latest
Latest FX Rate
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| pair | string | oui | FX pair or series id. Example: EURUSD, USDCNY, DTWEXBGS. |
fundamentals.get
USDA/USGS Fundamentals
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| kind | enum: "wasde" | "crop_progress" | "export_sales" | "usgs" | oui | Fundamentals report kind. Example: wasde for World Agricultural Supply and Demand Estimates. |
snapshot.get
Sector Snapshot
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sector | enum: "energy" | "metals" | "ags" | "all" | oui | Sector to snapshot. Use all to receive energy, metals, and ags together. |
calendar.get
Release Calendar
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.
Aucun paramètre.
trade.codes
Country and HS Code Reference
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 name. Historical entities are excluded by default — twelve ISO3 codes resolve to more than one UN Comtrade entry and the expired one is never preferred, so IND gives India rather than pre-1974 India.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| country | string | non | ISO3, ISO2, numeric M49 or exact name to resolve. Omit to list HS headings only. |
minerals.list
Mineral Coverage and HS Pairings
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 and neither mineral has one; and the HS code here is chosen to match the USGS production basis, so copper, nickel and zinc point at ore headings rather than the refined-metal headings their instruments use. Also reports which minerals currently have US net import reliance and which column it was read from.
Aucun paramètre.
cash.reports
AMS Cash Grain Report Index
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 it) or unknown. Three reports are published as covered-but-unparsed rather than omitted, because a visible gap beats a silent absence.
Aucun paramètre.
price.bundle
Latest Prices for Several Instruments
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 the bundle. Use this instead of looping price.latest: it is one settlement and one round trip. Codes that do not resolve come back with an error field rather than being dropped, and codes past the cap are listed in dropped_codes. Paid; charged only if at least one code resolves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| codes | array<string> | oui | Instrument codes, up to 20. Example: ["CL", "BZ", "HG"]. |
stats.bundle
Statistics for Several Instruments
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 has no history. Paid; charged only if at least one instrument resolves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| codes | array<string> | oui | Instrument codes, up to 20. |
| windows | array<string> | non | Lookback windows, e.g. ["30d", "90d", "1y"]. Defaults to those three. |
producer.prices.bundle
Farm-Gate Prices for Several Crops
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 and differ. Paid; charged only if at least one crop resolves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| codes | array<string> | oui | Crop instrument codes, up to 20. Example: ["CC", "KC"]. |
| year | integer | non | Year to summarise. Defaults to the latest stored. |
account.quota
Remaining Credits on This Key
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.
Aucun paramètre.
minerals.dossier
Critical Minerals Supply and Trade
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 side and the trade side, because USGS counts contained metal while HS counts the gross weight of a traded article and for lithium those differ by about five times; no price of any kind; no criticality or supply-risk score. EXPORTS ARE NOT PRODUCTION — for gold and silver the largest reporters refine and vault rather than mine, so the two halves rank different countries for good reasons. The HS code matches the USGS production basis, so copper, nickel and zinc point at ore and concentrate headings rather than the refined-metal headings their instruments use. Annual data. Paid.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mineral | enum: "aluminum" | "copper" | "gold" | "silver" | "nickel" | "zinc" | "iron_ore" | "cobalt" … | oui | Which mineral. Required. |
| year | integer | non | Trade year for the Comtrade half. USGS years are fixed by the edition. |
| limit | integer | non | Maximum country rows. |
cash.bids
Cash Grain Bids and Basis
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 in DOLLARS per bushel, location, grade, elevator class, freight and delivery. THIS IS NOT a futures settlement and NOT the NASS season-average price received that price.latest returns for ZC/ZW/ZS; all three are correct and all three differ. Values are ranges where the report published a range. Latest published print only — there is no stored history, so this cannot tell you whether basis is strengthening; read each row's basis_change, which is the agency's own answer. Wheat must name its class: CBOT soft red winter, KCBT hard red winter and MGE hard red spring traded 35 cents apart on the same page. Paid.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| commodity | enum: "corn" | "soybeans" | "wheat_srw" | "wheat_hrw" | "wheat_hrs" | "wheat_hard_white" | "sorghum" | oui | Which grain. Required. |
| state | string | non | Two-letter state code, e.g. IA. |
| elevator_class | enum: "country_elevator" | "terminal_elevator" | "mill_or_processor" | "other" | non | Narrow to one kind of buyer. |
| month | string | non | Futures month code ("Z") or contract ("2026-12") the basis is quoted against. |
| include_stale | boolean | non | Include reports that have not published recently. Excluded and named by default. |
| limit | integer | non | Maximum rows. |
releases.next
Next Releases With Last Print
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 *when*. `last` is null when nothing is stored yet and surprise_label is null when no 5-year band exists; neither is ever guessed. Paid.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| release_id | enum: "eia-wpsr" | "eia-ng" | "cftc-cot" | "usda-wasde" | "usda-crop" | "usda-esr" | non | One release id, as published by calendar.get |
| window_days | integer | non | Keep only releases expected within this many days. Releases with no known date are excluded by a window. |
decision.get
Decision Pack
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sector | enum: "energy" | "metals" | "ags" | "all" | oui | Sector for the decision pack. Use all to bundle every sector. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://api.commodities.sh/api/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http commodities-sh https://api.commodities.sh/api/mcpCustomize > Connectors > + Add > Add custom connector ; Name : commodities-sh ; URL : https://api.commodities.sh/api/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : commodities-sh ; Server URL : https://api.commodities.sh/api/mcp ; Create as a plugin{
"mcpServers": {
"commodities-sh": {
"url": "https://api.commodities.sh/api/mcp"
}
}
}{
"mcpServers": {
"commodities-sh": {
"type": "http",
"url": "https://api.commodities.sh/api/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"commodities-sh": {
"url": "https://api.commodities.sh/api/mcp"
}
}
}{
"mcpServers": {
"commodities-sh": {
"httpUrl": "https://api.commodities.sh/api/mcp"
}
}
}[mcp_servers.commodities-sh]
url = "https://api.commodities.sh/api/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Primary Source Commodities · L’Atlas · Test du
[Primary Source Commodities — L’Atlas](https://latlas.dev/mcp/io.github.sawftware-apps/commodities-sh)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.