# Leeway Corrected Track Calculator AI Agent Connect

> Leeway Corrected Track Calculator MCP handles the heavy math for maritime navigation. It lets your AI client calculate a vessel's actual path over the ground by combining heading, speed through water, wind-induced leeway, and current vectors. Instead of manual trigonometry, your agent gets immediate, accurate results for course over ground and drift analysis.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_u4tsoWwhzhpZm8ZlpbvRPug1Z4M0tylrUbKmtvQJ/ai-agent-connect
- **Tags:** vessel, leeway, current, vector, maritime-navigation

## Description

Navigating a vessel isn't only about pointing the bow in a direction. Wind pushes you sideways through leeway, and currents pull you off course entirely. This MCP gives your AI client the ability to solve these vector problems instantly. You can feed your agent heading, speed through water, leeway angles, and current sets to find out exactly where the boat is actually going. 

It handles the math required to bridge the gap between where you are pointing and where you are actually moving. Your agent can use these tools to provide a full picture of the navigation state or dive deep into how much external forces are affecting your intended track. Whether you need a quick summary of your current vector or a detailed breakdown of how much drift is pushing you off course, this MCP provides the specific calculations needed for reliable maritime planning.

## Tools

### get_ground_track_result
This tool calculates the final over-ground motion by merging the water-path vector with the current. It gives you the true path the vessel follows relative to the seabed.

### get_leeway_corrected_ctw
Use this to find the vessel's direction of travel through the water after accounting for wind drift. It adjusts your heading based on the leeway angle.

### get_vessel_drift_analysis
This tool analyzes how external forces impact your movement. It determines exactly how much the vessel is being pushed away from its intended heading.

### get_vector_summary
This tool provides a clean, human-readable summary of the entire navigation state. It's the fastest way to get a snapshot of heading, COG, and SOG.

## Prompt Examples

**Prompt:** 
```
Calculate the navigation summary for a vessel with heading 090, STW 10 knots, leeway angle 5 degrees to starboard, and a current set at 180 degrees with 2 knots drift.
```

**Response:** 
```
Heading: 090, COG: 101.3, SOG: 11.2, leewayEffect: Course shifted 5 degrees to starboard, currentEffect: Course shifted 11.3 degrees south.
```

**Prompt:** 
```
What is the drift angle if my heading is 045 and my course over ground is 050?
```

**Response:** 
```
The total drift angle is 5 degrees, with the drift pushing the vessel to the starboard side.
```

**Prompt:** 
```
Find the course through water for a heading of 180 with a 10 degree leeway to port.
```

**Response:** 
```
The course through water is 170 degrees.
```

## Capabilities

### Vector Synthesis
Your agent combines heading, speed, leeway, and current to find the true path.

### Drift Analysis
Your agent calculates exactly how much wind and current push a vessel off its intended heading.

### Leeway Correction
Your agent adjusts the course through water based on wind-induced drift angles.

### Navigation Summaries
Your agent generates readable reports of the complete navigation state including COG and SOG.

## Use Cases

### Course Correction
An agent calculates the necessary heading adjustments to maintain a specific course over ground despite heavy current.

### Drift Assessment
A navigator uses your agent to determine how much a vessel is being pushed off course by a specific wind angle.

### Navigation Reporting
Your agent generates a summary of the current navigation state for a log or briefing.

### Path Planning
An agent predicts the final over-ground track by combining water-path vectors with known current sets.

## Benefits

- Replaces manual trigonometric calculations with instant tool calls.
- Accounts for both wind leeway and current drift in a single workflow.
- Provides human-readable summaries of complex vector data.
- Enables agents to perform deep drift analysis on vessel paths.

## How It Works

You connect the MCP to your client and then provide the environmental and vessel data to your agent.

1. Connect your MCP-compatible client to Vinkius.
2. Provide heading, speed, leeway, and current data to your AI agent.
3. Your agent invokes the specific tool needed for the calculation.
4. The MCP performs the vector math and returns the result.
5. Your agent presents the corrected track or drift analysis to you.

## Frequently Asked Questions

**What is the difference between heading and course over ground?**
Heading is the direction the vessel is pointing, while course over ground is the actual path the vessel follows after wind and current are factored in.

**How does this MCP handle wind?**
It uses leeway angles to calculate how much the wind pushes the vessel sideways through the water.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any compatible client like Claude, Cursor, or Windsurf through the Vinkius platform.

**Does this calculate current drift?**
Yes, the tool can combine water-path vectors with current vectors to find the final over-ground motion.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start using the tools.

**How does this tool account for wind drift?**
The tool uses the `get_leeway_corrected_ctw` function to adjust the vessel's heading based on the provided leeway angle and direction (port or starboard), calculating the true course through the water.

**Can I calculate the final speed over ground?**
Yes, by using `get_ground_track_result`, you can combine the vessel's motion through the water with the current vector to find the resulting speed over ground (SOG) and course over ground (COG).

**What is the purpose of the residual value?**
The residual is a mathematical value returned by `get_ground_track_result` that represents the difference between the intended water path and the resultant ground path, used to validate calculation accuracy.
