Back to connectors
Commodities-API logo

Commodities-API

Live

Real-time and historical commodity prices for crude oil, natural gas, gold, silver, and 100+ commodities with time-series and OHLC data.

Available tools

8 tools
ToolDescription
getLatestPricesGet latest commodity prices. Optionally filter by base currency and symbols.
getHistoricalPricesGet historical prices for a specific date.
getTimeSeriesGet time-series data between two dates.
getFluctuationGet price fluctuation (change) between two dates.
convertConvert an amount from one commodity/currency to another.
getOHLCGet open/high/low/close for a commodity on a specific date.
getOilPricesGet latest crude oil prices (Brent + WTI).
getEnergyPricesGet latest energy commodity prices (oil, gas, gasoline, diesel).

Setup

A few steps to connect your AI agents to Commodities-API.

Get started
  1. 1

    Get an Access Key

    Register at https://commodities-api.com and generate your access key. Free tier allows 100 req/month.

  2. 2

    Connect on PatchOps

    Navigate to /mcp, find Commodities-API, and enter your access key.

  3. 3

    Start Querying

    Use getOilPrices for quick Brent/WTI, getTimeSeries for historical trends, or convert for currency conversion.

Connect to your AI assistant

Pick the tool your team uses for the exact setup steps.

  1. 1

    Open Claude settings

    Launch Claude, click the profile button (bottom left), and go to Settings.

  2. 2

    Access connectors

    Open the Connectors tab, scroll to the bottom, and click “Add custom connector”.

  3. 3

    Name your connector

    Enter any name you’d like for this connector.

  4. 4

    Get the connector URL

    Log in to PatchOps, open the /mcp page, and copy the connector URL you want to use.

  5. 5

    Add the connector

    Paste the URL into the “Remote MCP server URL” box and click Add.

  6. 6

    Start using

    Your Commodities-API connector is ready to use in Claude.