• DATA
  • MATH
  • ANALYSIS
  • HUMAN

How to calculate energy price spreads with your AI

Connect your AI to live crude oil data. Once connected, your agent handles the math and the monitoring.

Ask AI about this page

Short answer

How do I calculate energy price spreads with my AI?

Your AI pulls current WTI and Brent crude prices and subtracts one from the other to find the spread. You get the exact difference between these benchmarks without manual lookups. This breakdown shows how the data flows from the market to your chat window.

The results you get.

Where the data lands.

Running this task delivers three specific pieces of intelligence.

DATA

Live benchmark prices

The AI fetches the latest WTI and Brent crude values. You get the raw numbers used for the calculation.

MATH

Calculated price spreads

The agent performs the subtraction to find the spread. You receive the final spread value immediately.

ANALYSIS

Trend observations

Your AI compares the current spread against previous values if you ask. This helps you spot widening or narrowing spreads.

HUMAN

Trade decisions

The AI provides the numbers, but you decide how to act on the spread. It doesn't execute trades or place orders.

The workflow

What your AI does when the request arrives.

The AI moves from data retrieval to mathematical output in seconds.

  1. Fetch WTI price

    The agent calls the specific tool to get the current West Texas Intermediate price.

    get_crude_oil_price
  2. Fetch Brent price

    The agent pulls the current Brent crude price to ensure the data is fresh.

    get_brent_crude_oil_price
  3. Compute the spread

    The AI takes both prices and calculates the difference between them.

    get_crude_oil_priceget_brent_crude_oil_price
  4. Report results

    The agent presents the WTI price, the Brent price, and the resulting spread in your chat.

    get_crude_oil_priceget_brent_crude_oil_price

Try it

Copy these to start.

Use these prompts to trigger the calculation immediately.

Starting points

These are basic ways to start. You can swap the specific commodities for other assets if the connector supports them.

Commodities-API Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_15bQPrJg6sev6HbfiOe5JQGnOWn8c7UUJ25TPymD/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Commodities-API capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "commodities-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_15bQPrJg6sev6HbfiOe5JQGnOWn8c7UUJ25TPymD/mcp"
    }
  }
}
Copy into chat04
  • What is the current spread between WTI and Brent crude?

  • Calculate the price difference between WTI and Brent right now.

  • Get the latest crude oil prices and tell me the spread.

  • Compare WTI and Brent prices and show me the math.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Commodities once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted and the setup is instant.

Connect Commodities to your AI

FAQ

How this task behaves.

  • 01

    Can the AI execute trades based on the spread?

    No. The AI only retrieves prices and performs calculations. You must handle all trading through your own platforms.

  • 02

    Does the AI update the spread automatically?

    No. The AI only fetches new prices when you ask it to or when you trigger a prompt.

  • 03

    Can I use this to get natural gas prices?

    No. This specific connector is limited to the crude oil tools provided in the manifest.

  • 04

    Does the AI store my price history?

    No. The AI fetches real-time data. It does not maintain a persistent database of historical prices unless you provide that data.

  • 05

    How often does the price data refresh?

    The data is as fresh as the tool's last fetch. Every time you ask the AI for the price, it uses the tools to get the latest available value.

  • More questions about Commodities? The Connector page answers them. See everything the Commodities Connector can do

Connect Commodities-API to Claude, Cursor, ChatGPT & more