# Intersection Delay Calculator AI Agent Connect

> Intersection Delay Calculator MCP gives your AI client the mathematical tools needed for traffic engineering. It breaks down intersection delays into specific components like approach, control, queue, and stop delay. You can use it to verify vehicle continuity, determine travel times, and evaluate how effectively signal phases handle arrival flow.

## Overview
- **Category:** transportation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_mqW0WjsX67It1k5a35Ji88hIQlVk9DI4pm4oVULL/ai-agent-connect
- **Tags:** traffic, delay, signal-timing, queue-analysis, transportation-modeling

## Description

You can now run complex traffic engineering calculations directly within your AI client. This MCP provides the specific mathematical tools required to analyze signalized intersections without manual computation. Instead of feeding raw data into a chat window and hoping for the right result, you use this MCP to decompose delays into approach, control, queue, and stop components. 

It handles the heavy lifting for signal performance evaluation. You can check how well signal phases manage arrival flows or verify that vehicle counts remain consistent across signal cycles. If you need to know the total time a vehicle spends in an intersection area, the MCP calculates those travel time metrics instantly. It is built for engineers who want to use an agent to automate the repetitive math of queue reconciliation and signal efficiency checks.

## Tools

### analyze_signal_efficiency
This tool evaluates how effectively signal phases and service intervals manage arrival flow.

### calculate_delay_components
This tool calculates primary delay components including approach, control, queue, and stop delay.

### get_travel_time_metrics
This tool determines the total time a vehicle needs to traverse an intersection area.

### perform_queue_reconciliation
This tool verifies vehicle count continuity across signal cycles.

## Prompt Examples

**Prompt:** 
```
Calculate the delay components for an arrival flow of 500 vph, a service interval of 30s, a cycle length of 90s, and a stop duration of 5s.
```

**Response:** 
```
The calculated components are: approach delay of 12.5s, control delay of 18.2s, queue delay of 4.3s, and stop delay of 5.0s.
```

**Prompt:** 
```
Determine the total travel time if the free-flow time is 45 seconds and the control delay is 20 seconds.
```

**Response:** 
```
The total travel time is 65 seconds.
```

**Prompt:** 
```
Check if a queue is consistent with an initial queue of 5, arrivals of [10, 12, 8], and departures of [12, 10, 11].
```

**Response:** 
```
The queue is consistent. The final queue length is 10 vehicles.
```

## Capabilities

### Delay Decomposition
Your agent breaks down total delay into approach, control, queue, and stop components.

### Signal Performance Evaluation
Your agent checks how well signal phases handle incoming traffic flows.

### Queue Verification
Your agent reconciles vehicle counts to ensure continuity across signal cycles.

### Travel Time Calculation
The MCP computes the total time required for vehicles to pass through an intersection.

## Use Cases

### Signal Timing Optimization
An engineer uses the delay components tool to adjust signal phases based on calculated stop and queue delays.

### Traffic Flow Validation
A planner uses queue reconciliation to ensure vehicle counts in a model match expected arrival and departure patterns.

### Intersection Capacity Analysis
Your agent evaluates signal efficiency to determine if current phases can handle increasing arrival flows.

### Travel Time Studies
A technician calculates total travel time metrics to assess the impact of control delays on a corridor.

## Benefits

- Automates the math for approach, control, queue, and stop delay components.
- Provides direct verification of vehicle continuity across signal cycles.
- Calculates total travel time through the intersection area.
- Evaluates signal phase effectiveness against arrival flows.

## How It Works

Connect your AI client to the Vinkius hosted MCP to start running traffic calculations.

1. Connect your MCP-compatible client to Vinkius.
2. Provide traffic data like arrival flow, cycle length, or queue counts to your agent.
3. Your agent invokes the specific tool needed for the calculation.
4. The MCP returns the calculated delay, time, or reconciliation results.
5. Your agent presents the final technical data in your chat interface.

## Frequently Asked Questions

**What kind of delays can this MCP calculate?**
It calculates approach, control, queue, and stop delays for signalized intersections.

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

**How does the MCP handle queue data?**
It uses the perform_queue_reconciliation tool to verify that vehicle counts remain consistent across signal cycles.

**Does this MCP require me to host it?**
No, Vinkius hosts and manages the MCP for you. You connect your client and start using the tools.

**What is the purpose of the signal efficiency tool?**
The analyze_signal_efficiency tool evaluates how well signal phases and service intervals manage arrival flows.

**What specific delay components can be calculated?**
The server can calculate approach delay, control delay, queue delay, and stop delay using the `calculate_delay_components` tool.

**How does the tool handle queue verification?**
You can use `perform_queue_reconciliation` to ensure that vehicle arrivals and departures are physically consistent across signal cycles.

**Can I evaluate signal efficiency?**
Yes, the `analyze_signal_efficiency` tool provides the degree of saturation, capacity utilization, and an efficiency rating.
