# Marine Vector Calculator AI Agent Connect

> Marine Vector Calculator handles the heavy math for marine navigation. It lets your AI client resolve vessel movement vectors to find ground tracks or determine the set and drift of a current. You can decompose vectors into Cartesian components or quantify the gap between where you expected to be and where you actually are.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_FfvVSUkw7fZoHWeeqIcpFrrqyYtrEpvmv4ll9jIU/ai-agent-connect
- **Tags:** marine, vector, navigation, current, physics

## Description

Navigating through moving water requires constant math to account for how currents push your vessel off course. This MCP handles those vector calculations so you don't have to. You can use it to figure out your actual speed and course over ground when you know the current, or work backward to find out exactly what the current is doing based on your observed movement. It handles the trigonometry of polar to Cartesian conversions and helps you measure the error between your predicted path and your real-world position. Instead of manual plotting, you give your agent the heading, speed, and current data, and it gives you the precise results you need for navigation.

## Tools

### calculate_ground_track
This tool finds your resulting course and speed over the ground. It's used when you know your heading and the current's influence.

### calculate_vector_residual
This tool measures the difference between a predicted vector and an observed one. Use it to find the error in your navigation math.

### derive_current_properties
This tool calculates the set and drift of a current. It works by comparing your intended movement against your actual GPS position.

### get_vector_components
This tool converts polar coordinates into East-North Cartesian components. It's useful for breaking down vectors into directional parts.

## Prompt Examples

**Prompt:** 
```
What will my course and speed over ground be if I head 090 degrees at 10 knots and the current is setting 180 degrees at 2 knots?
```

**Response:** 
```
Your resulting course over ground is 101.3 degrees at a speed of 10.2 knots.
```

**Prompt:** 
```
Calculate the current properties if my heading is 045 degrees at 5 knots, but my GPS shows I am moving at 050 degrees at 6 knots.
```

**Response:** 
```
The derived current has a set of 058.3 degrees and a drift of 1.1 knots.
```

**Prompt:** 
```
Convert a bearing of 270 degrees and a speed of 5 knots into components.
```

**Response:** 
```
The eastward component is -5.0 and the northward component is 0.0.
```

## Capabilities

### Ground Track Calculation
Your agent calculates the actual path a vessel takes over the seabed.

### Current Analysis
Your agent determines the direction and strength of water movement.

### Vector Decomposition
Your client converts polar headings into East and North components.

### Error Quantification
The tool finds the discrepancy between predicted and actual movement.

## Use Cases

### Current Compensation
Calculate how much to steer into a current to maintain a specific ground track.

### Drift Analysis
Determine the strength of a current by comparing heading and speed to GPS data.

### Vector Conversion
Break down polar bearings into Cartesian components for technical plotting.

### Navigation Error Checking
Find the residual difference between a planned course and the actual path taken.

## Benefits

- Removes manual trigonometric calculations from the navigation process.
- Provides immediate current set and drift data from observed movement.
- Quantifies navigation errors by comparing predicted and actual vectors.

## How It Works

Connect your client to Vinkius and start running math via natural language.

1. Connect your MCP-compatible client to the Vinkius hosted MCP.
2. Provide your heading, speed, or current data to your AI agent.
3. Your agent calls the specific tool needed for the calculation.
4. The MCP returns the precise vector or component results.
5. Your agent presents the final answer in your chat interface.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates ground tracks, current set and drift, vector components, and vector residuals.

**How do I use it with Claude or Cursor?**
You connect your client to the Vinkius platform, and the tools become available to your agent automatically.

**Can it help me find the current's direction?**
Yes, the derive_current_properties tool calculates the set and drift of the current based on your vessel's movement.

**Does it work with GPS data?**
Yes, you can provide your observed GPS movement to calculate current properties or vector residuals.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you.

**How do I find the current direction?**
You can use the `derive_current_properties` tool. By providing your vessel's heading and speed through water alongside your observed course and speed over ground, the tool calculates the current's set and drift.

**What is the difference between set and drift?**
In marine navigation, 'set' refers to the compass direction the current is flowing towards, while 'drift' refers to the speed of that current in knots.

**Can I calculate my expected ground track?**
Yes, use the `calculate_ground_track` tool. Input your vessel's heading and speed through water, as well as the known current set and drift, to determine your resulting course and speed over ground.
