# Road Horizontal Curve Calculator AI Agent Connect

> Road Horizontal Curve Calculator MCP handles the heavy lifting for roadway geometry. It gives your AI client the ability to compute tangent lengths, radii, and central angles for both simple and compound horizontal curves. You can also extract specific stationing coordinates and validate that your engineering units stay consistent across your design data.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_6qcwgDPqmOOjctrMdycbz67GSMacoCRAGqt1JUaP/ai-agent-connect
- **Tags:** roadway, geometry, alignment, civil-engineering, horizontal-curve

## Description

You can now bring high-precision roadway geometry directly into your agent-driven design workflow. This MCP acts as a geometric engine that your agent uses to solve complex horizontal alignment problems. Instead of manually calculating tangents or radii, you provide the parameters and let your AI client handle the math. 

Whether you are working on a single circular arc or a more complex multi-radius compound curve, the math stays accurate. You can request specific stationing and coordinate pairs at set intervals to map out your curves. It also includes a built-in check to ensure your metric or imperial measurements don't conflict during the design process. It is built to turn your AI client into a capable civil engineering assistant that understands the specific geometry of road design.

## Tools

### calculate_compound_curve
This tool computes the geometric properties for two connected circular arcs that have different radii.

### calculate_simple_curve
This tool solves for all geometric properties of a single circular arc curve.

### get_curve_geometry_points
This tool calculates specific stationing and coordinate pairs at the intervals you request along a curve.

### validate_alignment_units
This tool checks that your provided measurements are consistent with standard metric or imperial unit systems.

## Prompt Examples

**Prompt:** 
```
Calculate a simple curve with a radius of 500m, a central angle of 30 degrees, starting at chainage 1000 and coordinates (0,0) with an incoming bearing of 90 degrees.
```

**Response:** 
```
The tangent length is 133.97m, the curve length is 261.80m, and the Point of Tangency (PT) is located at coordinates (133.97, 250.00) with a chainage of 1261.80.
```

**Prompt:** 
```
Find the coordinates for points every 50m along a simple curve with radius 200, angle 45, chainage 500, start (10,10), bearing 0.
```

**Response:** 
```
The points along the curve at 50m intervals are: (10.00, 10.00) at chainage 500.00, (13.53, 59.85) at chainage 550.00, and (70.71, 100.00) at chainage 600.00.
```

**Prompt:** 
```
Check if a radius of 0.5 is valid for a metric system.
```

**Response:** 
```
The measurement is valid within the metric system.
```

## Capabilities

### Compound Curve Math
Your agent uses this to solve for two connected arcs with different radii.

### Simple Arc Geometry
Your AI client calculates all necessary properties for a single circular arc.

### Stationing and Coordinates
Your agent extracts specific chainage and coordinate pairs at requested intervals.

### Unit Validation
Your agent checks that measurements match metric or imperial standards.

## Use Cases

### Horizontal Alignment Design
Use the MCP to solve for tangent lengths and radii when designing new road segments.

### Curve Point Mapping
Generate a list of coordinates at specific intervals to assist with site layouts.

### Compound Curve Modeling
Solve for the geometry of complex curves made of two different circular arcs.

### Data Integrity Checks
Verify that your design measurements are consistent with your chosen unit system.

## Benefits

- Calculates complex multi-radius curves without manual trigonometry.
- Generates precise coordinate pairs for specific intervals along an arc.
- Prevents unit errors by validating metric and imperial consistency.
- Provides exact stationing and chainage data for roadway alignments.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to geometric calculation tools.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your curve parameters to your AI agent.
3. Your agent invokes the specific calculation tool needed.
4. The MCP returns the geometric results to your agent.
5. Your agent presents the final coordinates or lengths to you.

## Frequently Asked Questions

**What kind of curves can this MCP calculate?**
It handles both simple circular arcs and compound curves consisting of two connected arcs with different radii.

**Can I get specific coordinates along a curve?**
Yes, you can use the tool to get specific stationing and coordinate pairs at any interval you request.

**Does it support both metric and imperial units?**
Yes, the MCP includes a tool to validate that your measurements are consistent with either metric or imperial systems.

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

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect.

**Can I calculate compound curves?**
Yes, use the `calculate_compound_curve` tool to compute properties for curves consisting of two or more circular arcs.

**How do I get coordinates for specific points on the curve?**
You can use `get_curve_geometry_points` by providing the curve data and the desired interval between points.

**Does the server validate my input units?**
Yes, the `validate_alignment_units` tool checks if your measurements are consistent with metric or imperial systems.
