commodity_price

Pack: api-ninjas · Endpoint: https://gateway.pipeworx.io/api-ninjas/mcp

API Ninjas live commodity price: current spot price for a traded commodity. Returns { exchange, name, price, updated }. Supported names include gold, crude_oil, natural_gas, silver, platinum, wheat, corn, coffee. Example: commodity_price({ name: “gold” }).

Parameters

NameTypeRequiredDescription
namestringyesCommodity name, e.g. ‘gold’, ‘crude_oil’, ‘natural_gas’, ‘silver’, ‘platinum’, ‘wheat’, ‘corn’, ‘coffee’

Example call

curl -X POST https://gateway.pipeworx.io/api-ninjas/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"commodity_price","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "api-ninjas": {
      "url": "https://gateway.pipeworx.io/api-ninjas/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 4, 2026