# Road Curve Radius Calculator AI Agent Connect

> Road Curve Radius Calculator MCP provides specialized geometric tools for highway and railway engineering. It handles everything from fitting circular curves to surveyed coordinates to checking clearance constraints. You can use it within your AI client to derive radius, central angle, arc length, and tangent length without manual math.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_QJIhqSLRZzheqBV2Dxrt0uZULNnrJtrQUi87SvB1/ai-agent-connect
- **Tags:** highway, railway, geometry, curve, radius, engineering

## Description

This MCP handles the heavy lifting for horizontal curve design in transportation engineering. Instead of manually calculating geometric properties, you can feed your surveyed data or design parameters directly into your AI client. If you have a set of spatial coordinates, the MCP fits a circular curve to those points to find the radius and central angle. If you already have your primary design values, it calculates the secondary metrics like arc length and tangent length. It also helps you locate specific points along a curve or verify that a planned design won't violate geometric constraints. It's built for engineers who need to move quickly from raw survey data to verified geometric models.

## Tools

### calculate_geometry_from_parameters
Calculates secondary geometric properties based on your primary design inputs.

### fit_curve_from_points
Derives a circular curve definition from a set of surveyed spatial coordinates.

### get_point_on_curve
Finds specific coordinates and stationing for any point along a defined curve.

### validate_curve_clearance
Checks if a specific point or object violates the geometric constraints of your planned curve.

## Prompt Examples

**Prompt:** 
```
Calculate the geometry for a curve with a radius of 500, a central angle of 30 degrees, and a starting station of 100.
```

**Response:** 
```
The arc length is 261.80, the chord length is 258.82, the tangent length is 65.45, the curvature is 0.002, and the station end is 361.80.
```

**Prompt:** 
```
Find the coordinates for station 150 on a curve with radius 500, central angle 30, and start station 100.
```

**Response:** 
```
The coordinates at station 150 are x: 54.82, y: 49.72, with a distance from start of 50.00.
```

**Prompt:** 
```
Fit a curve to these points: [{'x': 0, 'y': 0}, {'x': 10, 'y': 10}, {'x': 20, 'y': 0}].
```

**Response:** 
```
The fitted curve has a radius of 10.0, a central angle of 90.0, and an arc length of 15.71.
```

## Capabilities

### Survey Data Fitting
Your agent uses this to turn raw coordinate sets into usable circular curve definitions.

### Secondary Metric Derivation
Your agent uses this to find arc lengths and tangent lengths from primary design values.

### Stationing and Location
Your agent calculates exact coordinates and stationing for specific points on a curve.

### Constraint Verification
Your agent checks if objects or points violate the geometric limits of a design.

## Use Cases

### Curve Fitting
You provide a list of surveyed coordinates to get a best-fit circular curve.

### Design Verification
You check if a planned curve meets specific geometric clearance requirements.

### Stationing Calculations
You find the exact x and y coordinates for a specific station on a curve.

### Parameter Derivation
You calculate tangent lengths and arc lengths from a known radius and angle.

## Benefits

- Converts raw survey coordinates into circular curve definitions.
- Calculates secondary geometric properties from primary design parameters.
- Verifies geometric constraints against specific points or objects.
- Locates exact coordinates and stationing along a curve.

## How It Works

Connect the MCP to your client and start running geometric queries immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Select the Road Curve Radius Calculator MCP.
3. Input your survey points or design parameters into your AI client.
4. Your agent executes the specific geometric tool to process your data.
5. Receive the calculated coordinates, lengths, or clearance results.

## Frequently Asked Questions

**What kind of engineering is this MCP for?**
It is designed specifically for highway and railway engineering involving horizontal curves.

**Can I use this with my existing AI client?**
Yes, you can connect this MCP to any compatible client like Claude, Cursor, or Windsurf.

**How do I fit a curve to survey data?**
Use the fit_curve_from_points tool by providing your surveyed spatial coordinates.

**Can it check for clearance violations?**
Yes, the validate_curve_clearance tool checks if points or objects violate geometric constraints.

**Does Vinkius host the MCP?**
Yes, Vinkius hosts and manages the MCP so it is ready to use once you connect your client.

**How can I calculate a curve from a set of survey points?**
You can use the `fit_curve_from_points` tool by providing a JSON array of x and y coordinates.

**What happens if my points are perfectly straight?**
If the points are perfectly collinear, the tool will throw an error because the radius would be infinite.

**Can I check if a specific location stays within the curve's design limits?**
Yes, use the `validate_curve_clearance` tool to verify if a point falls within the allowable geometric error.
