• LIVE
  • TRACK
  • FILTER
  • HUMAN

How to track live train locations with your AI

Connect Renfe Data to your agent to access live GPS feeds. Once connected, you can ask for the exact position of any train on the network.

Ask AI about this page

Short answer

How can I track live train locations with my AI?

Your AI uses real-time GPS feeds to pinpoint the exact movement of Cercanías and long-distance trains. You'll get direct location updates by asking about specific lines or train IDs. This breakdown shows how the data works.

Where the data goes.

Real-time location outcomes.

The AI turns raw GPS feeds into clear location updates.

LIVE

Current positions

The AI pulls the latest coordinates from the feeds. You get the exact spot of any active train.

TRACK

Movement monitoring

Your agent follows the path of specific vehicles. You can see where a train is heading in real time.

FILTER

Specific line data

The AI separates Cercanías from long-distance feeds. You get only the data for the trains you care about.

HUMAN

Manual station checks

The AI only provides GPS data. You still need to check station boards for platform changes or physical announcements.

The workflow

What your AI does when the data arrives.

The AI acts as the interface between Renfe's GPS feeds and your chat.

  1. Access Cercanías feeds

    The AI pulls live position data for the commuter rail network.

    rt_vehicle_positions_cercanias
  2. Access long-distance feeds

    The AI retrieves GPS coordinates for long-distance trains.

    rt_vehicle_positions_ld
  3. Identify specific trains

    The AI scans the incoming feeds to find the exact vehicle you asked for.

    rt_vehicle_positions_cercaniasrt_vehicle_positions_ld
  4. Report location

    The AI translates the raw GPS data into a simple location update.

    rt_vehicle_positions_ld

Try it

Copy these to start.

Use these prompts to begin tracking immediately.

Starting points

These are opening lines. Swap the train numbers or line names for the ones you actually need.

Renfe Data Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_NiuRRhYPhoWzRmGjhNgpW4F2wk5xnXdpz0kBo7fB/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Renfe Data capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "renfe-data-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_NiuRRhYPhoWzRmGjhNgpW4F2wk5xnXdpz0kBo7fB/mcp"
    }
  }
}
Copy into chat04
  • Where is the Cercanías train on line C-3 right now?

  • Give me the live GPS location for long-distance train MD 25432.

  • Track the movement of all Cercanías trains near Madrid Atocha.

  • Is the long-distance train heading to Barcelona currently moving?

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Renfe Data once, then ask.

One link connects the MCP to your agent. Your login stays encrypted on our side, and you can start asking questions immediately.

Connect Renfe Data to your AI

FAQ

How this task behaves.

  • 01

    Can the AI change the train's arrival time?

    No. The AI only reads live GPS data. It cannot interact with Renfe's scheduling systems.

  • 02

    Does the AI track every single train in Spain?

    No. It only tracks the trains available in the Cercanías and long-distance feeds.

  • 03

    Can the AI book a ticket for me?

    No. This connector is only for monitoring live vehicle positions.

  • 04

    How often does the location update?

    The AI pulls from real-time feeds, so the data is as current as the GPS pings sent by the vehicles.

  • 05

    Can the AI tell me if a train is delayed?

    The AI can see if a train is moving based on its position, but it cannot access official delay announcements.

  • More questions about Renfe Data? The Connector page answers them. See everything the Renfe Data Connector can do

Connect Renfe Data to Claude, Cursor, ChatGPT & more