# Metacentric Height Calculator AI Agent Connect

> Metacentric Height Calculator is a specialized engineering MCP designed for naval architects and marine engineers. It handles the heavy lifting of stability math, from calculating static metacentric height to applying free surface corrections and validating vertical dimensions, all within your existing AI client.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_uUgxmiuiBpCXIHOg5IMqZkDa4iNXglTusO6kgVJ4/ai-agent-connect
- **Tags:** naval-architecture, stability, metacentric-height, marine-engineering, vessel-design

## Description

You can now perform complex stability calculations directly through your AI agent. Instead of jumping between spreadsheets and manual formulas, you use this MCP to run stability profiles and verify vessel parameters. It handles the math for static metacentric height and accounts for the stability loss caused by liquid movement in tanks through free surface corrections. You can also use it to check that your vertical coordinates are physically consistent before finalizing a design. It's built to act as a technical calculator that understands the specific physics of naval architecture, making it a reliable part of your design workflow.

## Tools

### apply_free_surface_correction
This tool adjusts the vessel's center of gravity to account for stability loss caused by free surface effects in tanks.

### calculate_full_stability_profile
This tool performs a complete stability assessment by combining static height, free surface effects, and final metacentric height.

### calculate_static_metacentric_height
This tool calculates the metacentric height (GM) for a vessel in a static state without liquid free-surface effects.

### reconcile_vertical_dimensions
This tool validates that your provided vertical coordinates are physically consistent.

## Prompt Examples

**Prompt:** 
```
Calculate the static metacentric height for a vessel with a keel center of 0, center of gravity at 5, center of buoyancy at 3, and a metacentric radius of 4.
```

**Response:** 
```
The calculated metacentric height (GM) is 2.0, and the metacenter height is 7.0. The vessel is stable.
```

**Prompt:** 
```
Apply a free surface correction for a vessel with a current KG of 6.5, a free surface moment of 150, and a displacement of 5000.
```

**Response:** 
```
The free surface correction value is 0.03, resulting in a corrected center of gravity (KG) of 6.53.
```

**Prompt:** 
```
Check if these dimensions are consistent: Keel 0, KG 5, KB 3, GM 2.
```

**Response:** 
```
The dimensions are consistent. The expected KG is 5.0, with a variance of 0.0.
```

## Capabilities

### Static GM Calculation
Your agent uses this to find the metacentric height when no liquid movement is present.

### Free Surface Adjustment
Your agent applies corrections to the center of gravity to account for tank effects.

### Full Stability Profiling
Your agent runs a complete assessment including static height and free surface effects.

### Dimension Validation
The tool checks vertical coordinates for physical consistency.

## Use Cases

### Initial Vessel Design
Run static metacentric height calculations to check early-stage stability.

### Tank Loading Analysis
Apply free surface corrections to see how liquid in tanks affects the center of gravity.

### Stability Verification
Generate a full stability profile to ensure the vessel meets safety requirements.

### Data Integrity Checks
Use the reconciliation tool to ensure vertical coordinates are physically possible.

## Benefits

- Reduces manual calculation errors in stability math.
- Integrates directly into your existing AI-driven design environment.
- Automates the application of free surface corrections.
- Provides instant validation of vertical vessel dimensions.

## How It Works

You connect the MCP to your client and start asking technical questions.

1. Connect the MCP to Claude, Cursor, or Windsurf via Vinkius.
2. Provide your vessel dimensions or stability data to your AI client.
3. Your agent invokes the specific calculation tool needed for your request.
4. The MCP returns the calculated values or validation results.
5. Your agent presents the final stability assessment to you.

## Frequently Asked Questions

**How do I use this MCP with my AI client?**
You connect to the Vinkius catalog once, and the tools become available in any MCP-compatible client like Claude or Cursor.

**Does this tool account for liquid in tanks?**
Yes, you can use the apply_free_surface_correction tool to adjust the center of gravity for free surface effects.

**Can it check if my vessel dimensions are valid?**
Yes, the reconcile_vertical_dimensions tool validates the physical consistency of your vertical coordinates.

**What is the difference between static and full stability profiles?**
Static calculations ignore liquid movement, while the full stability profile includes free surface effects and the final metacentric height.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use immediately after connection.

**What is metacentric height (GM)?**
Metacentric height (GM) is the distance between the center of gravity and the metacenter. It is a primary indicator of a vessel's initial stability; a positive GM indicates a stable vessel.

**How does free surface correction affect stability?**
Free surface effects from partially filled tanks effectively raise the center of gravity, which reduces the metacentric height and overall stability.

**Can I perform a full stability assessment in one go?**
Yes, you can use the `calculate_full_stability_profile` tool to perform a complete assessment including static height and free surface effects.
