# Wellbore Stability Analysis AI Agent Connect

> Predict drilling safety windows by calculating mechanical integrity against formation stresses and pore pressures.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_U4C18nTFjdwPrRt7DCXFXGMEaF32lyatOXipv926/ai-agent-connect
- **Tags:** wellbore, drilling, geomechanics, stability, oil-and-gas

## Description

This MCP server provides specialized tools for drilling engineers to maintain borehole integrity. It calculates the critical mud weight window by balancing hydrostatic pressure against in-situ stresses. Use `calculate_stability_window` to determine the safe operating range between collapse and fracture pressures. You can also use `evaluate_time_dependent_risk` to predict how rock strength changes over time, or `calculate_collapse_pressure` to find the minimum pressure needed to prevent wellbore crushing. For chemical considerations, `analyze_chemical_interaction` estimates how fluid types like water-based or oil-based muds affect rock properties.

## Tools

### calculate_collapse_pressure
Specifically calculates the minimum pressure required to maintain borehole stability against crushing

### calculate_stability_window
Determines the safe operating range for mud weight to prevent both collapse and fracturing

### analyze_chemical_interaction
Estimates the impact of drilling fluid chemistry on the near-wellbore rock properties

### evaluate_time_dependent_risk
Predicts how rock strength and stability change over time due to environmental factors

## Prompt Examples

**Prompt:** 
```
What is the safe mud weight window for a vertical well with 40 MPa vertical stress, 30 MPa min horizontal stress, 35 MPa max horizontal stress, 25 MPa pore pressure, 50 MPa UCS, and 1200 kg/m³ mud weight?
```

**Response:** 
```
The safe mud weight window is 15.5 MPa, with a collapse pressure of 32.2 MPa and a fracture pressure of 47.7 MPa.
```

**Prompt:** 
```
How much will the rock strength degrade after 24 hours if the initial strength is 45 MPa and the degradation rate is 0.1 per hour in shale?
```

**Response:** 
```
The remaining strength is 21.6 MPa, representing a 52% degradation, and the stability status is critical.
```

**Prompt:** 
```
What is the impact of using water-based mud on shale with a salinity of 5?
```

**Response:** 
```
The strength reduction factor is 0.85, with a high swelling potential of 0.75, leading to increased permeability in the near-wellbore region.
```

## Frequently Asked Questions

**How do I find the safe mud weight range?**
You can use the `calculate_stability_window` tool. Provide the in-situ stresses, pore pressure, rock strength, and current mud weight to get the collapse and fracture pressure limits.

**Can this tool account for shale swelling?**
Yes. The `evaluate_time_dependent_risk` tool includes an option to specify if the rock is shale, which simulates the increased degradation caused by swelling.

**Does orientation affect the results?**
Yes, wellbore orientation is critical. The `calculate_collapse_pressure` tool allows you to specify if the well is vertical or deviated to ensure accurate stress concentration calculations.
