# Futures Butterfly Spread Strategy MCP for AI Agents AI Agent Connect

> Futures Butterfly Spread Strategy MCP generates deterministic trading signals for futures butterfly spreads. It uses z-score mean reversion to identify compressed or expanded spreads, calculates profit-taking metrics, and validates contract liquidity to ensure your trading setups meet structural requirements.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_xbhQeKv1iOWUt5DX5cn5VTUFqDnA0luPvth18PEU/ai-agent-connect
- **Tags:** futures, butterfly-spread, trading-signals, z-score, mean-reversion

## Description

Trading butterfly spreads requires constant monitoring of contract spacing and liquidity. Instead of manually checking z-scores and moving averages, you can let your AI agent handle the heavy lifting. This MCP connects your preferred AI client to a suite of deterministic calculation tools designed specifically for futures markets. You can quickly identify when a spread is overextended or compressed relative to its historical mean. It handles the math for profit targets and convergence, while also checking that your chosen contract triplets actually have enough liquidity to trade. By connecting through Vinkius, you get a direct line between your trading logic and your agent, turning complex mean-reversion math into actionable signals without leaving your chat interface.

## Tools

### calculate_butterfly_signals
Generates daily trading signals and technical metrics for three futures contracts. It helps you spot mean-reversion opportunities.

### get_butterfly_financial_metrics
Calculates profit-taking and risk metrics for current positions. It provides specific targets for convergence and width.

### validate_contract_structure
Checks if a triplet of contracts meets liquidity and structural criteria. It ensures your spread is tradable.

## Prompt Examples

**Prompt:** 
```
Are these three corn contracts good for a butterfly spread?
```

**Response:** 
```
Based on the data provided, the contract structure is valid. 

**Liquidity Check:**
* **Status:** Pass
* **Criteria:** Open interest and spacing meet the required thresholds for a standard butterfly setup.
```

**Prompt:** 
```
What are the profit targets for my current butterfly position?
```

**Response:** 
```
Here are the financial metrics for your current position:

| Metric | Value |
| :--- | :--- |
| **Butterfly Width** | 5.0 |
| **Convergence Target** | 5.0 |

These targets are based on the current moving average and contract pricing.
```

**Prompt:** 
```
Check the signals for these futures: near [100, 102], middle [50, 51], far [105, 104], OI [6000, 6000, 6000], and intervals ['Mar24', 'Jun24', 'Sep24'].
```

**Response:** 
```
The signal for the second day is **BUY**.

**Technical Metrics:**
* **Butterfly Value:** 3.0
* **Z-Score:** -2.1

The negative z-score indicates a compressed spread, suggesting a mean-reversion opportunity.
```

## Capabilities

### Detect spread anomalies
Identify when butterfly spreads are compressed or expanded using z-score mean reversion math.

### Verify contract liquidity
Check if a specific triplet of futures contracts meets the necessary structural and liquidity requirements.

### Calculate profit targets
Determine potential profit width and convergence targets for active butterfly positions.

### Generate daily signals
Produce technical metrics and trading signals for sets of three futures contracts.

## Use Cases

### Spotting mean-reversion opportunities
A trader notices a price divergence in corn futures and asks their agent to check the z-score for a butterfly spread.

### Validating new trade setups
Before entering a position, a strategist uses the MCP to ensure the three selected contracts have sufficient open interest.

### Managing exit points
An analyst needs to know exactly where a butterfly spread should converge to lock in profits efficiently.

### Scanning contract liquidity
A desk head uses the agent to quickly vet whether a specific maturity triplet is too thin for a large butterfly order.

## Benefits

- Eliminate manual z-score calculations by letting your agent identify spread compressions instantly.
- Avoid liquidity traps by using validate_contract_structure to confirm contract triplets are tradable.
- Speed up decision-making with get_butterfly_financial_metrics providing immediate profit targets.
- Get consistent, deterministic signals from calculate_butterfly_signals instead of relying on manual spreadsheet math.
- Reduce errors in spread width calculations by automating the technical metric generation.

## How It Works

The bottom line is you turn raw futures data into precise butterfly spread signals through a simple chat interface.

1. Connect your AI client to the MCP via the Vinkius catalog.
2. Provide your contract details or price data to your agent.
3. Receive specific trading signals, liquidity checks, or financial metrics.

## Frequently Asked Questions

**How can I use the Futures Butterfly Spread Strategy MCP to find trades?**
You can provide your contract prices and open interest to your AI agent, which will then use the MCP to generate specific buy or sell signals based on z-score mean reversion.

**Can this MCP help me check if a futures spread is liquid enough?**
Yes, the MCP includes tools to validate that your chosen triplet of futures contracts meets specific liquidity and structural requirements before you trade.

**Does the Futures Butterfly Spread Strategy MCP work with any AI client?**
Yes, as long as your client is MCP-compatible, such as Claude, Cursor, or Windsurf, you can connect to this MCP through Vinkius.

**How does this MCP calculate my profit targets?**
The MCP uses specific financial metric tools to calculate the expected profit width and convergence targets based on the current contract prices and moving averages.

**Is the signal generation in this MCP deterministic?**
Yes, the signals are generated using deterministic math based on z-scores and moving averages, ensuring consistent results for the same input data.