- MARGIN
- DATA
- INPUT
- HUMAN
Our technology reaches across leading technology and enterprise teams.

Short answer
How can I use AI to find crack spreads?
Your agent uses the Refinery Margin Calculator to subtract the cost of a specific crude grade from the market price of its finished products. This gives you the immediate margin for that refining setup. You'll see the specific profitability breakdown below.
The results you get
What your analysis produces
Once the calculation runs, your agent delivers these specific outcomes.
MARGIN
Net crack spread
Your agent calculates the raw difference between the crude input cost and the product output value. You get a single number representing the spread.
DATA
Price breakdown
The tool pulls the latest pricing for the crude grade and the finished products. You see exactly which price points drove the margin.
INPUT
Grade comparison
You can compare different crude types against the same product set. This helps you decide which feedstock is most profitable.
HUMAN
Refining decisions
Your agent provides the math, but you decide if the spread justifies the operational costs and logistics. You hold the final call on execution.
The workflow
What your agent does when the data arrives.
Your agent handles the math and data retrieval so you can focus on the strategy.
Fetch market prices
Your agent pulls the current market values for the crude grade and the target finished products.
calculate_crack_spreadRun the math
Your agent subtracts the crude cost from the product revenue to find the spread.
calculate_crack_spreadCompare grades
You can ask your agent to run the same calculation for a different crude type to see the difference in margin.
calculate_crack_spreadSummarize results
Your agent presents the final margin and the underlying price components in a readable format.
calculate_crack_spread
Vinkius Agentic Execution Platform
State the outcome. Agents take it from there.
You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.
Run it in Vinkius
Agents carry the task to the end
Agents execute Refinery Economics tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.
Take it to any compatible AI
One connection, any client
Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.
Spaces
One Space per activity
A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.
Limits
Autonomy inside limits you set
Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.
Record
All steps, on the record
Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.
Models
Included in your plan
A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.
Try it
Copy these to start.
Paste these prompts into your chat to begin.
Starting points
Swap out the crude grades and products for the ones you are tracking.
Refinery Economics Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_kcMkhyqnOApI7Pww2eCvIcKnRsq0pMK3FitczMzr/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat, Refinery Economics capabilities are ready to use.
{
"mcpServers": {
"refinery-margin-calculator-mcp": {
"url": "https://edge.vinkius.com/vk_preview_kcMkhyqnOApI7Pww2eCvIcKnRsq0pMK3FitczMzr/mcp"
}
}
}- 01
Calculate the crack spread for WTI crude versus ultra-low sulfur diesel.
- 02
What is the current margin if I refine Brent crude into gasoline?
- 03
Compare the crack spread of West Texas Intermediate to Dubai crude using current prices.
- 04
Show me the profitability of converting Light Sweet crude into naphtha.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Refinery Margin Calculator once, then ask.
Link your preferred AI client to the Vinkius platform. Your credentials stay encrypted, and you can start running calculations immediately.
Connect Refinery Margin Calculator to your agentFAQ
How the calculator behaves
- 01
Can your agent execute trades based on the crack spread?
No. Your agent only performs the calculation. You must manually execute any trades or operational changes.
- 02
Does your agent update my internal spreadsheets automatically?
No. The tool calculates the spread based on the data it accesses, but it does not write to your local files or external databases.
- 03
Where does the pricing data come from?
Your agent uses the pricing data provided through the calculate_crack_spread tool.
- 04
Can I use this for any crude grade?
Yes, as long as the pricing for that specific grade is available through the tool.
- 05
Does your agent account for refinery operating costs?
No. The tool calculates the raw crack spread between crude and product. You need to factor in your specific refining costs separately.
More questions about Refinery Margin Calculator? The Connector page answers them. See everything the Refinery Margin Calculator Connector can do
Building with AI? Ship this whole workflow in your product.
Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Refinery Economics to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.
Explore Vinkius ConnectTypeScript · Python · Java · Go · C# · PHP · Rust
- 01
Your customers bring their own keys.
Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.
- 02
Whole catalog, kept current.
Refinery Economics plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.
- 03
Any agent, any model.
Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.
Connect Refinery Economics to Claude, Cursor, ChatGPT & more
From idea to done
See what gets done when the agents take over the busywork
Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.









