Back to connectors
Commodities-API logo

Commodities-API

Your key

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

Needs your own Commodities-API key. Included on Free.

What you can ask

  • “What does Commodities-API have for the area or asset I'm working on?”
  • “Pull the most recent Commodities-API records and put them in a table.”
  • “What does Commodities-API cover, and how fresh is the data?”

Connect to your AI assistant

Paste this URL into Claude, ChatGPT, or any MCP client, then sign in when prompted. After you sign in, add your Commodities-API key in PatchOps.

https://patchops.ai/api/mcp

Claude: use Add to Claude, or Settings > Connectors > Add custom connector and paste the URL.

Claude Code

claude mcp add --transport http patchops https://patchops.ai/api/mcp

Step by step

  1. 1

    Open connectors

    In Claude, open Settings > Connectors and click "Add custom connector".

  2. 2

    Paste the URL

    Name it PatchOps and paste https://patchops.ai/api/mcp as the server URL, then click Add.

  3. 3

    Sign in

    Click Connect and sign in to PatchOps when Claude asks.

  4. 4

    Start using

    Ask Claude a question. It uses Commodities-API through PatchOps when it needs to.

› Technical details

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

View the data contract and method schemas →

Setup

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

Continue setup
  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

    Ask your AI agent for the data you need — it discovers this connector's methods automatically.