# Cross-Track Error Calculator AI Agent Connect

> Cross-Track Error Calculator MCP gives your agent the ability to perform high-precision maritime calculations. It tracks how far a vessel has drifted from its planned route, measures progress along a path, and identifies the exact coordinates of the closest point on a route segment. It turns your AI client into a capable navigation monitor.

## Overview
- **Category:** maritime
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_leHqH7WOUTv40uzBLQFiu571bS2kpvtiCu9prDVM/ai-agent-connect
- **Tags:** vessel, route, xte, maritime-navigation, geospatial

## Description

You can use this MCP to give your agent a real sense of where a vessel is relative to its intended path. Instead of guessing, your AI client can pull exact signed deviations and distance measurements to monitor drift or progress. If you are managing maritime routes, you can hand off the heavy lifting of geospatial math to your agent. It can determine exactly how many meters a vessel has drifted from its track or how much of a segment is left to complete. By using the provided tools, your agent can provide a full status report on vessel position and error, making it a practical tool for monitoring maritime movement and ensuring route adherence.

## Tools

### get_along_track_distance
This tool calculates the distance a vessel has traveled along its intended route.

### get_cross_track_error
Use this to find out how far and on which side a vessel has drifted from its planned path.

### get_navigation_summary
This tool provides a full snapshot of vessel status, including error, progress, and position.

### get_projected_coordinates
This tool finds the specific geographic coordinates for the point on a route closest to the vessel.

## Prompt Examples

**Prompt:** 
```
How far is the vessel from the route segment?
```

**Response:** 
```
The vessel is 15.5 meters to the right of the intended track.
```

**Prompt:** 
```
What is the vessel's progress along the path?
```

**Response:** 
```
The vessel has completed 45% of the route segment.
```

**Prompt:** 
```
Give me a summary of the vessel's status.
```

**Response:** 
```
The vessel has a cross-track error of 5 meters, has progressed 1200 meters along the route, and the nearest point is at 45.000, -125.000.
```

## Capabilities

### Drift Detection
Your agent identifies exactly how far a vessel has moved away from its intended track.

### Progress Tracking
Your agent calculates how much of a route segment a vessel has completed.

### Position Snapshots
Your agent pulls a complete summary of error, progress, and current position.

### Coordinate Projection
Your agent finds the nearest geographic coordinates on a route relative to the vessel.

## Use Cases

### Route Deviation Monitoring
Your agent can alert you if a vessel drifts too far from its intended path.

### Progress Reporting
Use your agent to report exactly how much of a voyage segment is finished.

### Position Verification
Find the closest point on a route to a vessel's current location using projected coordinates.

### Automated Status Updates
Generate full navigation summaries for vessel status reports automatically.

## Benefits

- Calculates signed deviations to show exactly which side of the track a vessel is on.
- Provides mathematical accuracy for vessel drift and progress monitoring.
- Reduces manual math by letting your agent handle geospatial calculations.

## How It Works

Connect your client to Vinkius to start using these maritime tools immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Ask your agent to check vessel position or route progress.
3. Your agent calls the specific navigation tool needed.
4. The MCP returns precise mathematical data to your agent.
5. Your agent presents the results in plain language.

## Frequently Asked Questions

**What is cross-track error?**
It is the distance a vessel has drifted from its intended path. This MCP can tell you both the distance and which side of the track the vessel is on.

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

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

**Can your agent tell me how much of a route is finished?**
Yes. Your agent uses the along-track distance tool to determine progress along a route segment.

**How accurate are these calculations?**
The MCP provides high-precision maritime navigation utilities for calculating drift, progress, and coordinates.

**How do I get a full report of the vessel's position?**
You can use the `get_navigation_summary` tool to receive a comprehensive snapshot including error, progress, and the nearest point on the route.

**Can I calculate progress along a route?**
Yes, the `get_along_track_distance` tool calculates both the distance traveled along the path and the progress percentage.
