# Decline Curve Analysis AI Agent Connect

> Decline Curve Analysis MCP lets your AI client perform specialized petroleum engineering tasks. You can fit decline curves to historical data, predict future production rates, and calculate recoverable reserves using standard Arps equations. It turns your agent into a technical assistant capable of handling complex reservoir decline modeling.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_nnLXT5xiMrDwBy2DV8VMUbqCAZZKwzGicGLsoqYg/ai-agent-connect
- **Tags:** oil-and-gas, petroleum, forecasting, arp-equations, production

## Description

You can now run Decline Curve Analysis directly through your AI client. This MCP gives your agent the mathematical tools needed to handle petroleum production data using Arps equations. Instead of manually calculating parameters, you provide your historical data and let the agent handle the heavy lifting. 

You can use it to determine how well a decline model fits your actual production history. Once you have those parameters, you can project future rates or estimate the total volume of oil and gas left in a well. It also helps you confirm if a well has transitioned into boundary-dominated flow, which is critical for accurate forecasting. It is a practical way to bring reservoir engineering math into your existing AI-driven workflows.

## Tools

### validate_flow_regime
This tool checks historical data to see if a well has moved into boundary-dominated flow.

### calculate_reserves
Use this to find the total recoverable volume and the remaining volume available in a well.

### fit_decline_curve
This tool calculates the best-fit decline parameters from your historical production records.

### forecast_production
This tool predicts what the production rate will be at a specific future time.

## Prompt Examples

**Prompt:** 
```
Can you find the best-fit decline parameters for this production data: [{"timestamp": 1672531200, "rate": 1000}, {"timestamp": 1675209600, "rate": 850}, {"timestamp": 1677628800, "rate": 720}] using a hyperbolic model?
```

**Response:** 
```
The best-fit parameters for the hyperbolic model are a decline rate of 0.15 and a b-factor of 0.5, with a fit quality score of 0.98.
```

**Prompt:** 
```
Based on a decline rate of 0.1 and a b-factor of 0.4, what will the production rate be at time 12 months?
```

**Response:** 
```
The forecasted production rate at 12 months is 450 barrels per day.
```

**Prompt:** 
```
What is the remaining reserve if the EUR is 1,000,000 and we have already produced 300,000?
```

**Response:** 
```
The remaining reserves are 700,000 units.
```

## Capabilities

### Parameter Fitting
Your agent calculates the most accurate decline parameters from raw production data.

### Production Forecasting
The AI predicts specific future production rates based on established decline models.

### Reserve Estimation
Your agent calculates total recoverable volumes and remaining reserves.

### Flow Regime Validation
The tool analyzes data to confirm if a well has reached boundary-dominated flow.

## Use Cases

### Well Performance Forecasting
Predict how much a well will produce in the coming months to plan operations.

### Reserve Estimation
Calculate the remaining recoverable volumes to update asset valuations.

### Model Validation
Check if your current decline model matches the actual historical flow regime.

### Data Fitting
Quickly find the best-fit hyperbolic or exponential parameters for new production datasets.

## Benefits

- Calculates Arps decline parameters without manual math.
- Provides production forecasts for specific future time points.
- Determines recoverable volumes from historical data.
- Validates flow regimes to ensure model accuracy.

## How It Works

Connect the MCP to your AI client and start running engineering calculations immediately.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your historical production data to your agent.
3. Ask the agent to fit the decline curve or forecast rates.
4. Receive the calculated parameters or volume estimates.

## Frequently Asked Questions

**What mathematical models does this MCP use?**
The MCP uses Arps decline equations to perform all forecasting and parameter fitting.

**Which AI clients can I use with this MCP?**
You can use this with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Can I use this to calculate remaining reserves?**
Yes, the calculate_reserves tool calculates both total recoverable volume and the remaining volume available.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You just connect your client and it is ready to use.

**How does the tool handle flow regime validation?**
The validate_flow_regime tool analyzes your historical data to determine if the well has transitioned to boundary-dominated flow.

**What types of decline models are supported?**
The server supports exponential, hyperbolic, and harmonic decline models through the `fit_decline_curve` tool.

**How do I know if my data is valid for forecasting?**
You should use `validate_flow_regime` to ensure the production data has transitioned from transient flow to boundary-dominated flow before applying Arps equations.

**Can I calculate the total recoverable volume?**
Yes, the `calculate_reserves` tool calculates both the Estimated Ultimate Recovery (EUR) and the remaining reserves.
