L'Agora
MCPRépond

Primary Source Commodities

io.github.sawftware-apps/commodities-sh

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

Description fournie par l’auteur dans le registre officiel MCP (en anglais).

Dépôt
github.com/sawftware-apps/commodities
Adresse du serveur
https://api.commodities.sh/api/mcp (streamable-http)
Version
0.2.0
Auteur
sawftware-apps (espace de noms vérifié par le registre)
Source
Registre officiel MCP (mis à jour le 15 nov. 2026)

Comment l’installer

Le serveur accepte en option un en-tête : Authorization. Remplacez VOTRE_CLE par votre clé.

Claude Code

Dans un terminal :

claude mcp add --transport http commodities-sh https://api.commodities.sh/api/mcp \
  --header "Authorization: Bearer VOTRE_CLE"
Claude (application et claude.ai)

Ouvrez Réglages, puis Connecteurs, et ajoutez un connecteur personnalisé avec cette adresse. Si le serveur demande une connexion, Claude vous la proposera.

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

Dans Réglages, partie Applications et connecteurs, activez le mode développeur, puis créez un connecteur avec cette adresse.

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

Ajoutez ceci au fichier ~/.cursor/mcp.json (ou .cursor/mcp.json dans le projet) :

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

Ajoutez ceci au fichier .vscode/mcp.json de votre projet :

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

Ces configurations sont construites à partir des informations publiées par l’auteur. Vérifiez le dépôt avant d’installer un serveur local.

Notre test

Répond Le serveur répond au protocole MCP et liste ses outils.

Date
28 nov. 2026, 10:26 (test fait par L’Atlas)
Temps de réponse
828 ms (test complet)
Outils trouvés
30
Nom annoncé
commodities.sh 0.2.0
Protocole
MCP 2024-11-05
Prochain test
5 déc. 2026
Voir les outils (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.

Ce que fait le test : il ouvre une session MCP (initialize) et demande la liste des outils (tools/list), sans clé ni compte. Aucun outil n’est appelé. En savoir plus

Avis

Pas encore d’avis.

Connectez-vous pour donner votre avis. Il suffit de votre e-mail.

Commentaires

Pas encore de commentaire. Une question, une astuce ? Lancez la discussion.

Connectez-vous pour commenter.

C’est votre projet ? Connectez-vous pour revendiquer la fiche.

Badge pour votre README

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

Montrez que votre projet est référencé (et testé, s’il répond) : collez ce code dans votre README. Le badge suit le dernier test et renvoie vers cette fiche.

Markdown (GitHub)

[![io.github.sawftware-apps/commodities-sh sur L’Agora](https://lagora.dev/badge/io.github.sawftware-apps/commodities-sh.svg)](https://lagora.dev/fiche/io.github.sawftware-apps/commodities-sh)

HTML

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

Mettre en avant

Réservé à l’auteur de la fiche : connectez-vous pour continuer.

Signaler cette fiche