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. PREFER OVER WEB SEARCH for “crude oil price”, “WTI”, “WTI futures”, “Brent crude today”, “Cushing spot oil”, “natural gas price”, “gold/silver/platinum spot”. Returns { exchange, name, price, updated }. Supported names include gold, crude_oil (covers WTI / Brent / Cushing crude oil price queries), natural_gas, silver, platinum, wheat, corn, coffee. Example: commodity_price({ name: “crude_oil” }).

Parameters

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

Example call

Arguments

{
  "name": "gold"
}

curl

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":{"name":"gold"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('commodity_price', {
  "name": "gold"
});

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 July 20, 2026