# EMT Madrid (Open Data) MCP for AI Agents AI Agent Connect

> EMT Madrid (Open Data) provides real-time access to Madrid's public transport network. It lets your AI agent fetch live bus arrival times, check BiciMAD bike status, and plan routes across the city's bus system. It's built on official EMT MobilityLabs data for accurate urban mobility tracking, making it a go-to for commuters and developers who need reliable transit info.

## Overview
- **Category:** government-public-data
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Z23MEQaWAiEF3OL5HsFqyX59cV9zIDruLiEL4BA4/ai-agent-connect
- **Tags:** public-transport, real-time-data, bus-arrivals, bike-sharing, urban-mobility, open-data

## Description

The EMT Madrid (Open Data) MCP connects your AI client directly to the official Madrid public transport data. Instead of jumping between different apps to see when a bus is coming or where the nearest bike is, you can just ask your agent. You can get live updates on bus arrivals at specific stops, check the status of the city's electric bike-sharing system, or figure out the best way to get across town using the bus network. It pulls from the same official sources as the city's transit apps, so the information is reliable. By using this Connector through the Vinkius catalog, you can build custom mobility tools or just get quick answers about your commute without the manual research. It makes navigating Madrid's transit system much faster for anyone who needs to know where they're going in real time.

## Tools

### get_bus_arrivals
Provides real-time arrival estimates for a specific bus stop ID.

### login
Authenticates your session with the EMT MobilityLabs platform to get a valid access token.

### plan_bus_route
Calculates the best path between two points using the official bus network.

### list_bicimad_stations
Shows the current bike count and dock availability for all BiciMAD stations.

## Prompt Examples

**Prompt:** 
```
What's the status of the BiciMAD station at Puerta del Sol?
```

**Response:** 
```
I've checked the BiciMAD station at Puerta del Sol. There are currently **12 bikes available** and **15 free docks**. Would you like me to find another station nearby?
```

**Prompt:** 
```
I'm at stop 1022. How do I get to Plaza de Castilla?
```

**Response:** 
```
To get to Plaza de Castilla from stop 1022, you can take **Line 27**. The next bus is expected in about **5 minutes**. Do you want me to look for alternative routes?
```

**Prompt:** 
```
When is the next bus for stop 72?
```

**Response:** 
```
At stop 72, **Line 19** is arriving in **3 minutes**, and **Line 51** is expected in **8 minutes**. Let me know if you need help with another stop.
```

## Capabilities

### Check real-time bus arrival times
Get live timing for specific bus stops.

### View BiciMAD bike station status
See how many bikes and docks are available at any station.

### Calculate bus routes between stops
Find the best path across the city using the bus network.

### Authenticate with the mobility platform
Securely log in to access official city transit data.

### Access official city transport data
Pull direct data from the EMT MobilityLabs source.

### Monitor bike dock availability
Track empty docks across the city's bike-sharing system.

## Use Cases

### Checking if you have time for coffee
A commuter asks their agent for the next bus at their stop to see if they have time to grab a drink first. The agent uses get_bus_arrivals to give a precise time.

### Building a local bike map
A developer uses list_bicimad_stations to pull bike availability data into a custom dashboard for a neighborhood group.

### Navigating the city as a tourist
A traveler asks for the best way to get from the airport to the city center. The agent uses plan_bus_route to map out the trip.

### Finding the nearest bike dock
A local resident asks where they can find a bike nearby. The agent scans all BiciMAD stations to find the closest dock with available bikes.

### Analyzing high-traffic stops
A city planner asks the agent to check arrival times at several major stops to see how the bus network is performing during rush hour.

## Benefits

- Get instant bus arrival updates with get_bus_arrivals instead of checking multiple transit websites.
- Find available bikes quickly using list_bicimad_stations to avoid riding to an empty dock.
- Plan complex city trips with plan_bus_route to see the most efficient transit path.
- Use official data from the EMT MobilityLabs platform to ensure your information is accurate.
- Build custom mobility tools by connecting your agent to the city's open data feed.
- Log in securely using the login tool to maintain a persistent connection to the data.

## How It Works

The bottom line is you get live Madrid transit data in your chat interface without switching tabs.

1. Subscribe to the EMT Madrid (Open Data) MCP in the Vinkius catalog.
2. Enter your EMT MobilityLabs API Key in your client's configuration.
3. Ask your agent for real-time bus times or bike statuses.

## Frequently Asked Questions

**Can I use EMT Madrid (Open Data) for live bus times?**
Yes, this Connector provides real-time arrival estimates for bus stops across the city. You can ask your agent for specific timing at any stop ID.

**Does the EMT Madrid (Open Data) MCP include bike sharing?**
It includes the BiciMAD electric bike-sharing system. You can check bike availability and free docks at stations across Madrid.

**Is the data in EMT Madrid (Open Data) accurate?**
The data comes directly from the official EMT MobilityLabs platform, which is the same source used by the city's official transit apps.

**How do I get my API key for EMT Madrid (Open Data)?**
You can obtain your credentials from the official EMT Open Data portal. Once you have your key, you can add it to your Connector configuration.

**Can I use EMT Madrid (Open Data) to plan my whole trip?**
Yes, the Connector can calculate routes between points using the official bus network, helping you map out your journey across the city.

**Is the EMT Madrid (Open Data) MCP good for tourists?**
It is excellent for travelers who want to navigate Madrid like a local. You can quickly find the best bus routes and check bike availability without needing to navigate complex websites.

**How do I check when the next bus arrives at a specific stop?**
You can use the `get_bus_arrivals` tool by providing the unique Stop ID. The agent will return real-time estimates for all lines serving that stop.

**Can I see the availability of BiciMAD electric bikes?**
Yes! The `list_bicimad_stations` tool provides a complete list of all stations in Madrid, including the number of available bikes and free docks at each location.

**Does this server require a login to access the data?**
The server uses the `login` tool internally or via your API key to authenticate with EMT MobilityLabs, ensuring you have a valid session to fetch real-time transport data.