Renfe Data

Renfe Data MCP Connector for Claude

A+

Access real-time train positions, trip updates, and open datasets from Renfe, Spain's national railway operator.

11 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to the Renfe Data portal to monitor the Spanish railway network in real-time. This server provides comprehensive access to both live operational data and static historical datasets through the official CKAN infrastructure.

What you can do

  • Real-time Tracking — Get precise GPS locations and movement status for Cercanías (commuter) and Long Distance (AVE/LD/MD) trains.
  • Trip Updates & Delays — Monitor live delays, cancellations, and platform changes to keep travelers informed.
  • CKAN Portal Access — List, search, and inspect metadata for thousands of railway datasets and resources.
  • Service Alerts — Retrieve real-time information on accessibility issues, track incidents, or bus substitutions.
  • Static Schedules — Fetch direct download URLs for GTFS schedules and station lists for offline analysis.

How it works

  1. Subscribe to this server
  2. Enter your Renfe Data API Key
  3. Start querying Spanish railway data from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Logistics & Transport Analysts — track fleet movements and analyze network performance metrics.
  • Travel App Developers — integrate real-time Spanish train data and GTFS schedules into custom applications.
  • Data Scientists — access open government data for urban mobility research and visualization.
railwayreal-time-trackinggps-datapublic-transportlogisticsopen-data

11 tools expose this connector's capabilities to your AI agent.

ckan_datastore_search

Search for data within a resource

ckan_package_list

List all dataset names in Renfe Data

ckan_package_show

Get metadata for a specific dataset

ckan_resource_show

Get metadata for a specific resource

get_avisos

Get planned service modifications (Avisos)

get_static_datasets

List URLs for static datasets (Schedules & Stations)

rt_alerts_cercanias

Updates every 20 seconds. Get real-time service alerts for Cercanías

rt_trip_updates_cercanias

Updates every 20 seconds. Get real-time trip updates for Cercanías

rt_trip_updates_ld

Updates every 30 seconds. Get real-time trip updates for AV / LD / MD

rt_vehicle_positions_cercanias

Updates every 20 seconds. Get real-time vehicle positions for Cercanías

rt_vehicle_positions_ld

Updates every 15 minutes. Get real-time vehicle positions for AV / LD / MD

See how to talk to your AI agent using Renfe Data.

List all available dataset names in the Renfe Data portal.

I've retrieved the list of datasets. There are several available, including 'Estaciones', 'Horarios-GTFS', and 'Ocupacion-Trenes'. Which one would you like to explore further?

Show me the current real-time positions of Cercanías trains.

Fetching live GPS data... I found 42 trains currently active. For example, train C-4 is currently moving near Madrid-Atocha (Lat: 40.406, Lon: -3.692). Would you like a full list or a specific line?

Are there any trip updates or delays for Long Distance trains right now?

Checking trip updates for AV/LD/MD... I see a 10-minute delay for the AVE 03122 from Barcelona to Madrid due to a technical check. Other services are running on time. Should I check for alerts in specific regions?

It depends on the service: Cercanías positions (`rt_vehicle_positions_cercanias`) update every 20 seconds, while Long Distance trains (`rt_vehicle_positions_ld`) update every 15 minutes.

Related Connectors