# TransportAPI MCP for AI Agents AI Agent Connect

> TransportAPI lets your AI agent access real-time UK public transport data. It handles live departures, journey planning, station searches, and fare checks across the entire UK network. Instead of switching between multiple travel apps, your agent can pull live bus and train info, find nearby hubs, and build detailed itineraries in one go.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_A7ZQbyLX3oS5tWkOj5ZwRNqG3jsQhrT7Q58iGEXg/ai-agent-connect
- **Tags:** public-transport, logistics, real-time-data, journey-planning, transit-schedules

## Description

This UK transport intelligence tool lets you handle all your transit research in one place. Imagine you're trying to figure out the best way to move a group of people across a city or checking if a specific bus line is running late. Usually, that involves a mess of bookmarks, manual cross-referencing, and squinting at tiny maps. This Connector changes that by giving your AI agent a direct line to Britain's transport infrastructure. It turns your chat interface into a high-powered transit desk. You can ask your agent to find every bus stop near a specific set of coordinates, pull up a full timetable for a train line, or calculate the cost of a trip between two distant cities. It's about moving from digging for info to just getting answers. By adding this to your setup on Vinkius, you're basically giving your agent a live feed to the UK's transit backbone. It handles the heavy lifting of data retrieval so you can focus on the actual logistics. It covers everything from live departures and station discovery to full journey planning and fare comparisons. You won't have to worry about outdated schedules or missing a connection because the agent pulls the most current data available. It makes it easy to see the full calling pattern of a train service or identify all the transport hubs in a specific geographic area. Instead of a manual search, you get a clear, conversational summary of the best routes and times.

## Tools

### get_bus_route_timetable
The get_bus_route_timetable tool pulls the scheduled timetable for a specific bus route. It shows you planned stops and times.

### get_transport_by_postcode
The get_transport_by_postcode tool finds transport options using a UK postcode. It's perfect for when you don't have exact GPS coordinates.

### get_bus_service
The get_bus_service tool provides the specific details and route info for a bus service. It's useful for understanding full route coverage.

### get_live_bus_departures
The get_live_bus_departures tool returns real-time bus departures for a UK bus stop. It shows live times, destinations, and operators.

### get_live_train_departures
The get_live_train_departures tool retrieves real-time train departures for a UK station. You get live data on upcoming trains and platforms.

### get_nearby_bus_stops
The get_nearby_bus_stops tool finds bus stops near a specific GPS location. It's great for identifying local transit access points.

### get_nearby_transport_places
The get_nearby_transport_places tool identifies all transport locations near a set of coordinates. It helps map out transit hubs in a specific area.

### get_train_fares
The get_train_fares tool gets the ticket prices between two specific stations. It's great for quick price comparisons between routes.

### get_train_service_details
The get_train_service_details tool provides the full calling pattern for a specific train service. It shows every stop a train makes on its route.

### get_train_station_timetable
The get_train_station_timetable tool pulls the scheduled timetable for a specific train station. This helps you see the full daily schedule.

### plan_public_transport_journey
The plan_public_transport_journey tool creates a step-by-step public transport route between two locations. It includes times, changes, and metadata.

### search_transport_places
The search_transport_places tool searches for train stations and bus stops using a name or keyword. This is the best way to find a specific hub.

## Prompt Examples

**Prompt:** 
```
What's the next train out of London Euston?
```

**Response:** 
```
**Next Departures from London Euston (EUS):**

| Destination | Departure | Platform |
| :--- | :--- | :--- |
| Manchester Piccadilly | 10:20 | 4 |
| Birmingham New Street | 10:35 | 7 |

Would you like to see the full station timetable for today?
```

**Prompt:** 
```
How much does a train ticket cost from London to Brighton?
```

**Response:** 
```
**Price Comparison: London to Brighton**

* **Morning Peak:** £45.00
* **Off-Peak:** £32.50
* **Advance Tickets:** Starting from £18.00

*Note: Prices vary based on the specific time of travel and booking class.*
```

**Prompt:** 
```
Find a bus stop near me at 51.5074, -0.1278.
```

**Response:** 
```
**Nearby Bus Stops:**

* **Trafalgar Square** (Stop ATCO: 490001123)
* **Horse Guards Parade** (Stop ATCO: 490001125)

Would you like to see the live departures for either of these stops?
```

## Capabilities

### Check live bus departures
Your agent pulls real-time bus arrival times and operator info for any UK stop.

### Plan multi-leg journeys
The agent builds step-by-step public transport routes with times and connection details.

### Find nearby transit hubs
Identify bus stops and train stations based on specific GPS coordinates or UK postcodes.

### Retrieve train fare prices
Get current ticket costs between two stations to compare different travel options.

### Look up bus route timetables
Access the full scheduled timetable for any specific bus route in the UK.

### Search for stations by name
Find specific train stations or bus stops using keywords or station names.

## Use Cases

### Mapping city transit gaps
An urban planner asks the agent to find all bus stops within a 1km radius of a new housing development. The agent uses get_nearby_bus_stops to identify gaps.

### Real-time logistics monitoring
A logistics manager wants to know if a specific train line is delayed. The agent uses get_live_train_departures to check the status of upcoming trains.

### Corporate travel price comparison
An admin asks for the cheapest train route between London and Manchester. The agent uses get_train_fares to compare options and provide a summary.

### Daily commute auditing
A researcher asks the agent to pull the full timetable for a specific bus route to analyze frequency. It uses get_bus_route_timetable to get the full schedule.

## Benefits

- Get live bus and train departures instantly without opening travel apps. Use get_live_bus_departures and get_live_train_departures to see what's coming next.
- Plan complex multi-leg journeys with plan_public_transport_journey to see every step, time, and connection in one go.
- Find the nearest transit hubs using get_nearby_bus_stops and get_nearby_transport_places based on exact GPS coordinates.
- Compare travel costs across different routes using get_train_fares to find the cheapest way to get from one city to another.
- Access full route timetables and service details with get_bus_route_timetable and get_train_service_details for deep research.
- Search for specific stations or stops by postcode or name using get_transport_by_postcode and search_transport_places.

## How It Works

The bottom line is your agent gets a live feed to UK transit data without you having to browse multiple websites.

1. Subscribe to the Connector and add your TransportAPI credentials to your configuration.
2. Connect the Connector to your preferred client like Claude, Cursor, or Windsurf.
3. Ask your agent for specific transport data, like live departures or journey plans.

## Frequently Asked Questions

**Can TransportAPI help me plan a trip across the UK?**
Yes, it can build a step-by-step itinerary between any two locations, including all the stops and connections you'll need to make.

**Does it show live bus times?**
It provides real-time departure information for UK bus stops, so you can see exactly when the next bus is arriving.

**Can I use it to check train fares?**
Yes, you can ask for the current ticket prices between specific stations to help with your travel budgeting.

**How do I find transit hubs near a specific address?**
If you have a UK postcode, the agent can find all nearby transport options for you.

**Is this for planning work commutes?**
It's great for that. You can ask it to find the best routes and check the reliability of different bus or train lines.

**Can it give me the full schedule for a bus route?**
Yes, it can retrieve the entire scheduled timetable for any specific bus route in the UK.

**How do I find my TransportAPI credentials?**
Log in to your [**TransportAPI dashboard**](https://developer.transportapi.com/), and you will find your App ID and App Key under your 'Account' or 'Apps' section. Copy and paste them below.

**Does this cover transport outside of the UK?**
TransportAPI provides high-density data primarily for the UK transport network, including national rail, London Underground, and regional bus services.

**Can the agent plan a journey from coordinates?**
Yes. Use the `get_journey_plan` tool providing coordinates in 'lat,lon' format for the 'from' or 'to' parameters. Your agent will calculate the best public transport route instantly.