# Geographic Distance Calculator MCP for AI Agents MCP

> The Geographic Distance Calculator finds precise distances and bearings between any two points on Earth. It uses multiple established mathematical models—including Haversine, Vincenty, and Euclidean—to pinpoint locations accurately. Need to find a midpoint or map out a travel route? This MCP provides specialized tools for complex geospatial analysis, helping you define exact boundaries and calculate destination coordinates.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7XcEh40M569a4Ozwg2pjmlKZ5IXOkRjucVYppuey/mcp
- **Tags:** distance, coordinates, latitude, longitude, haversine, vincenty, navigation, geography

## Description

Calculating distances in the real world is more complicated than just pulling up two points on a map. You need precision that accounts for Earth's curvature and varying geometries. This MCP gives your AI client access to high-precision tools for solving complex geospatial problems. Instead of relying on rough estimates, you can calculate the distance between any coordinates using multiple models—Haversine, Vincenty, or Euclidean. Need to map a travel path? You can compute a destination point by specifying both the starting location and the required bearing and travel distance. It also helps you find the exact midpoint between two points or draw a bounding box around an area of interest. Vinkius hosts this MCP alongside thousands of others, giving your agent access to a complete set of professional-grade mapping utilities.

## Tools

### get_bearing_stats
Calculates the precise starting and ending compass bearings between two geographic points.

### generate_bounding_box
Creates a rectangular area that perfectly contains a circular zone defined by a center point and radius.

### compute_destination
Determines the coordinates of an endpoint based on starting location, travel distance, and bearing.

### calculate_distance
Finds the direct measured distance between two specified geographic points using three different mathematical models.

### get_midpoint
Calculates the precise geometric center point that lies exactly halfway between two coordinates.

## Prompt Examples

**Prompt:** 
```
What's the distance between our HQ (34.0522, -118.2437) and the client site at (37.7749, -122.4194)?
```

**Response:** 
```
**Distance Calculation Results**

Based on your coordinates, here are three methods for estimating separation:

*   **Haversine Model:** 560 km (or 348 miles)
*   **Vincenty Model:** 561 km (most accurate for this span)
*   **Euclidean Model:** 721 km (use only for flat-plane approximation)
```

**Prompt:** 
```
If we start at the depot and travel exactly 50 kilometers due east, where will we land?
```

**Response:** 
```
**Destination Coordinates Found**

Starting Point: Latitude 34.1, Longitude -118.2
Travel Distance: 50 km
Bearing: 90 degrees (East)

*Calculated Destination:* 
Latitude: 34.10
Longitude: -118.208 (This is your new waypoint).
```

**Prompt:** 
```
Find the exact center point between Miami and Tampa.
```

**Response:** 
```
**Midpoint Analysis**

The geographic midpoint between those two locations is located at:

*   Latitude: 27.5
*   Longitude: -80.5

This spot represents the most balanced central location for your planning.
```

## Capabilities

### Calculate distance using multiple models
Determines the exact separation between two geographic coordinates using Haversine, Vincenty, or Euclidean methods.

### Calculate a destination point
Figures out where you'll end up if you travel a specific distance from a starting point along a set bearing.

### Identify geographic center points
Pinpoints the mathematical midpoint between any two specified coordinates.

### Determine initial and final bearings
Calculates the precise compass bearing needed when moving from one point to another.

### Define service boundaries
Generates a defined rectangular area (bounding box) that encompasses a given radius around a central point.

## Use Cases

### Defining a Service Area for Utility Mapping
A utility manager needs to define all properties within a 5-mile radius of a new substation. They ask their agent, and it uses `generate_bounding_box` to return the precise coordinates for that service zone, avoiding manual drawing errors.

### Calculating Inter-City Logistics Distance
A logistics team needs to know the distance between two cities. They ask their agent and use `calculate_distance` with the Vincenty model, getting a highly accurate measurement for fuel consumption estimates that standard mapping tools miss.

### Finding Optimal Meeting Points
Two field agents are in different parts of a county. They ask their agent to find the geographic midpoint using `get_midpoint` so they can schedule an equally accessible meeting spot for all stakeholders.

### Mapping Out Navigation Waypoints
A hiker needs to plot a course 10 miles away from their current position at a 45-degree bearing. They ask their agent, and it uses `compute_destination` to provide the exact coordinates for the next waypoint.

## Benefits

- Instead of guessing the distance, use `calculate_distance` to measure separation using Haversine, Vincenty, or Euclidean models for maximum accuracy.
- `compute_destination` lets your agent map out routes by giving you a starting point, bearing, and exact mileage without needing multiple calculations. It's instant route planning.
- Need to define where a service area ends? Use `generate_bounding_box` to create precise rectangular boundaries around any radius, perfect for zoning or coverage mapping.
- `get_midpoint` instantly finds the mathematical center between two points, which is critical when setting up neutral meeting locations or defining asset placement.
- When planning a path, use `get_bearing_stats` to nail down both the initial and final compass bearings. This saves time figuring out directional changes in complex fields.

## How It Works

The bottom line is your agent gets accurate, math-backed spatial measurements without you needing to run complex calculations manually.

1. Your AI client sends the MCP your starting coordinates and the type of calculation needed, like distance or bearing.
2. The MCP runs the specific geospatial math (e.g., Haversine formula) against the provided data points.
3. It returns a clear, precise result: whether that's a calculated distance in kilometers/miles, a new destination coordinate pair, or a defined bounding box.

## Frequently Asked Questions

**How can I use the Geographic Distance Calculator to plan a new supply route?**
It helps you calculate precise distances between all stops on your planned route, using models like Haversine or Vincenty. You also get bearings, so you always know exactly which direction and how far you're going at each leg of the journey.

**What is the best way to define a service area boundary?**
You use the bounding box tool. Instead of sketching corners, you provide a center point and a radius, and the MCP generates the mathematically perfect rectangular coordinates for that coverage zone.

**Does the Geographic Distance Calculator help with finding halfway points?**
Yes, it calculates the exact geographic midpoint between any two locations. This is useful when you need a neutral, equally accessible location for multiple parties or assets.

**Can I figure out where I'll end up if I travel a specific distance?**
Absolutely. By using the destination tool, you input your starting coordinates along with the bearing and desired mileage, and it tells you the exact latitude and longitude of that endpoint.

**Is this better than just using Google Maps for distances?**
This MCP provides raw mathematical data (Haversine/Vincenty models) directly. It gives you coordinates and angles, which is critical for engineering or surveying where the precise calculation method matters more than a visual route.