Refinery Margin Calculator

Refinery Margin Calculator MCP Connector for Claude

A+

Calculate refinery gross margins, net margins, and crack spreads.

4 tools Official Updated Oct 1, 2026 Official Vinkius Partner

This MCP server provides essential tools for refinery economics. It allows AI agents to calculate calculate_gross_margin for specific crude slates, determine the bottom-line profitability using calculate_net_margin, and analyze specific profitability via calculate_crack_spread. It also includes optimize_slates to identify the most profitable combination of crude grades and product yields.

refinerymargincrudeeconomicsoil

4 tools expose this connector's capabilities to your AI agent.

calculate_crack_spread

Calculates the crack spread for a single crude type into specific products

calculate_gross_margin

Calculates the gross margin for a specific crude slate and product yield

calculate_net_margin

Calculates the net margin after operating costs

optimize_slates

Finds the combination of crude and products that maximizes net margin

See how to talk to your AI agent using Refinery Margin Calculator.

What is the gross margin for a crude costing $70 with a 50% yield of gasoline at $100 and 50% yield of diesel at $80?

The gross margin is $30.00.

Calculate the crack spread for crude at $80 with 80% gasoline at $110 and 20% diesel at $90.

The crack spread is $14.00.

If my gross margin is $50 and my operating costs are $20, what is my net margin?

Your net margin is $30.00.

You can use the `calculate_net_margin` tool by providing the gross margin data and the total operating costs.

Related Connectors