L'Atlas / Serveurs MCP / Primary Source Commodities
Serveur MCP

Primary Source Commodities

io.github.sawftware-apps/commodities-sh

Serveur MCP OK 30 outils

Faire examiner Voir les tarifs

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

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.sawftware-apps/commodities-sh.svg)](https://latlas.dev/mcp/io.github.sawftware-apps/commodities-sh)
HTML
<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

DateRésultatRéponseOutils
28 nov. 2026, 10:26OK828 ms30

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ètreTypeRequisDescription
qstringouiCommodity name, synonym, or instrument code, e.g. 'cocoa'
limitintegernonMaximum 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ètreTypeRequisDescription
codestringouiInstrument code from catalog.list. Example: CL, GC, ZC.
currencystringnonOptional 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ètreTypeRequisDescription
codestringouiInstrument code from catalog.list. Example: CC, CL, GC.
windowsarray<string>nonWindows 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ètreTypeRequisDescription
calculationenum: "landed_cost" | "trade_margin" | "break_even" | "fx_impact"ouiWhich calculation to run. Example: landed_cost.
unit_pricenumbernonlanded_cost: price per unit. Example: 1133.13.
price_unitstringnonlanded_cost: unit of unit_price. Example: USD/metric ton.
quantitynumbernonQuantity. Example: 100.
quantity_unitstringnonlanded_cost: unit of quantity. Example: metric ton.
incotermenum: "EXW" | "FOB" | "CFR" | "CIF"nonlanded_cost: decides which costs your price already carries, so it shapes `missing`. CIF already includes freight and insurance. Example: CIF.
freight_usdnumbernonlanded_cost: your freight cost. Omit and it is reported missing, not assumed zero.
insurance_usdnumbernonlanded_cost: your insurance cost.
duty_rate_pctnumbernonlanded_cost: your import duty rate, percent. Example: 8.
port_usdnumbernonlanded_cost: port charges.
handling_usdnumbernonlanded_cost: handling charges.
quote_currencystringnonlanded_cost: currency for the total. Needs fx_rate — no rate is sourced. Example: GHS.
fx_ratenumbernonlanded_cost: units of quote_currency per USD. fx_impact: the rate to shock.
buy_pricenumbernontrade_margin, break_even: purchase price per unit.
sell_pricenumbernontrade_margin: sale price per unit.
costs_usdnumbernontrade_margin, break_even: other costs.
amountnumbernonfx_impact: amount held in the foreign currency.
rate_unitstringnonfx_impact: direction of fx_rate, read not inferred. Example: GHS/USD means cedi per dollar.
usd_move_pctnumbernonfx_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ètreTypeRequisDescription
commoditystringouiInstrument code with an HS heading. Example: ZR for rice.
reporterstringouiReporting country, ISO alpha-3 preferred. Example: IND.
partnerstringnonPartner country, or WLD for the world total. Example: GHA.
yearnumberouiFour-digit year. Example: 2023.
flowenum: "import" | "export"nonDirection 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ètreTypeRequisDescription
commodityenum: "ZC" | "ZW" | "ZS" | "ZR" | "KC" | "CC" | "CT"ouiInstrument code. Example: CC for cocoa.
yearnumbernonFour-digit year; defaults to the latest available.
currencystringnonOptional ISO currency for an additional converted view.
freight_usdnumbernonCaller-supplied freight per tonne.
duty_rate_pctnumbernonCaller-supplied duty rate, percent.
insurance_usdnumbernon
port_usdnumbernon
handling_usdnumbernon
incotermenum: "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ètreTypeRequisDescription
commodityenum: "ZC" | "ZW" | "ZS" | "ZR" | "KC" | "CC" | "CT"ouiInstrument code. Example: KC for coffee.
yearnumbernonFour-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ètreTypeRequisDescription
commoditystringouiInstrument code with an HS heading. Example: CC for cocoa.
reporterstringouiReporting country, ISO alpha-3 preferred. Example: GHA.
yearnumberouiFour-digit year. Example: 2023.
flowenum: "import" | "export"nonDirection from the reporter's view.
limitnumbernonMaximum 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ètreTypeRequisDescription
commoditystringouiInstrument code with an HS heading. Example: CC for cocoa.
yearnumberouiFour-digit year. Example: 2023.
flowenum: "import" | "export"nonexport ranks exporters, import ranks importers.
limitnumbernonMaximum 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ètreTypeRequisDescription
idstringouiObservation 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ètreTypeRequisDescription
seriesstringnonOptional 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ètreTypeRequisDescription
codestringouiInstrument 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ètreTypeRequisDescription
typeenum: "crack" | "crush" | "basis" | "calendar"ouiSpread type to compute. Example: crack for 3-2-1 gasoline/distillate crack.
rootstringnonOptional 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ètreTypeRequisDescription
codestringouiInstrument code from catalog.list. Example: CL, GC, ZC.
limitnumbernonNumber 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ètreTypeRequisDescription
pairstringouiFX 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ètreTypeRequisDescription
kindenum: "wasde" | "crop_progress" | "export_sales" | "usgs"ouiFundamentals 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ètreTypeRequisDescription
sectorenum: "energy" | "metals" | "ags" | "all"ouiSector 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ètreTypeRequisDescription
countrystringnonISO3, 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ètreTypeRequisDescription
codesarray<string>ouiInstrument 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ètreTypeRequisDescription
codesarray<string>ouiInstrument codes, up to 20.
windowsarray<string>nonLookback 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ètreTypeRequisDescription
codesarray<string>ouiCrop instrument codes, up to 20. Example: ["CC", "KC"].
yearintegernonYear 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ètreTypeRequisDescription
mineralenum: "aluminum" | "copper" | "gold" | "silver" | "nickel" | "zinc" | "iron_ore" | "cobalt" …ouiWhich mineral. Required.
yearintegernonTrade year for the Comtrade half. USGS years are fixed by the edition.
limitintegernonMaximum 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ètreTypeRequisDescription
commodityenum: "corn" | "soybeans" | "wheat_srw" | "wheat_hrw" | "wheat_hrs" | "wheat_hard_white" | "sorghum"ouiWhich grain. Required.
statestringnonTwo-letter state code, e.g. IA.
elevator_classenum: "country_elevator" | "terminal_elevator" | "mill_or_processor" | "other"nonNarrow to one kind of buyer.
monthstringnonFutures month code ("Z") or contract ("2026-12") the basis is quoted against.
include_stalebooleannonInclude reports that have not published recently. Excluded and named by default.
limitintegernonMaximum 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ètreTypeRequisDescription
release_idenum: "eia-wpsr" | "eia-ng" | "cftc-cot" | "usda-wasde" | "usda-crop" | "usda-esr"nonOne release id, as published by calendar.get
window_daysintegernonKeep 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ètreTypeRequisDescription
sectorenum: "energy" | "metals" | "ags" | "all"ouiSector 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.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport 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 Code
claude mcp add --transport http commodities-sh https://api.commodities.sh/api/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : commodities-sh ; URL : https://api.commodities.sh/api/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : commodities-sh ; Server URL : https://api.commodities.sh/api/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "commodities-sh": {
      "url": "https://api.commodities.sh/api/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "commodities-sh": {
      "type": "http",
      "url": "https://api.commodities.sh/api/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "commodities-sh": {
      "url": "https://api.commodities.sh/api/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "commodities-sh": {
      "httpUrl": "https://api.commodities.sh/api/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[Primary Source Commodities — L’Atlas](https://latlas.dev/mcp/io.github.sawftware-apps/commodities-sh)
Méthode et limites des tests

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.