Back to connectors
OilPriceAPI logo

OilPriceAPI

Your key

Real-time and historical commodity prices for crude oil, natural gas, diesel, gasoline, and heating oil.

Needs your own OilPriceAPI key. Included on Free.

What you can ask

  • “What does OilPriceAPI have for the area or asset I'm working on?”
  • “Pull the most recent OilPriceAPI records and put them in a table.”
  • “What does OilPriceAPI 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 OilPriceAPI 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 OilPriceAPI through PatchOps when it needs to.

› Technical details

Real-time and historical commodity prices for crude oil, natural gas, diesel, gasoline, and heating oil.

View the data contract and method schemas →

Setup

A few steps to connect your AI agents to OilPriceAPI.

Continue setup
  1. 1

    Get an Access Key

    Register at https://oilpriceapi.com and generate your access key for full access.

  2. 2

    Connect on PatchOps

    Navigate to /mcp, find OilPriceAPI, and enter your access key. Without one, some calls may return limited demo data.

  3. 3

    Start Querying

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