cta_train_arrivals

Pack: cta · Endpoint: https://gateway.pipeworx.io/cta/mcp

Real-time Chicago CTA ‘L’ train arrivals at a station — answers “when is the next train Chicago”, next Red Line at Belmont, Blue Line to O’Hare from Clark/Lake. Returns each upcoming train’s line color, destination, arrival time and minutes_away, plus approaching / delayed / scheduled-only flags and the platform description. Station accepts a name (“Belmont”, “Clark/Lake”, “O’Hare”) or a 5-digit mapid (e.g. 41320). Example: cta_train_arrivals({ station: “Belmont”, route: “Red” })

Parameters

NameTypeRequiredDescription
stationstringyesStation name (e.g. “Belmont”, “Clark/Lake”, “O’Hare”, “Midway”) or 5-digit mapid (e.g. “41320”)
routestringnoOptional ‘L’ line filter: Red, Blue, Brown, Green, Orange, Purple, Pink, or Yellow (also disambiguates same-named stations)
maxnumbernoMax arrivals to return, 1-20 (default 8)
_apiKeystringno

Example call

Arguments

{
  "station": "Belmont",
  "route": "Red",
  "_apiKey": "your-cta-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/cta/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cta_train_arrivals","arguments":{"station":"Belmont","route":"Red","_apiKey":"your-cta-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('cta_train_arrivals', {
  "station": "Belmont",
  "route": "Red",
  "_apiKey": "your-cta-api-key"
});

More examples

{
  "station": "Clark/Lake",
  "max": 5,
  "_apiKey": "your-cta-api-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "cta": {
      "url": "https://gateway.pipeworx.io/cta/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 4, 2026