cta_bus_predictions

Pack: cta · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/cta_bus_predictions for the schema, then POST the same URL with its arguments for the data.

Chicago CTA bus tracker arrival predictions at a bus stop — route, destination, predicted minutes until arrival (“DUE” = arriving now), delay flag, and vehicle id. Pass stop_id (the 4-5 digit stop number posted on CTA bus-stop signs), optionally with route. If you only know the stop by name, pass route + find_stop (a street/intersection fragment like “clark & madison”) and the stop is looked up for you. Example: cta_bus_predictions({ route: “22”, find_stop: “addison” })

Parameters

NameTypeRequiredDescription
stop_idstringnoCTA bus stop id (stpid), the number on the bus-stop sign, e.g. “1926”. Comma-separable up to 10.
routestringnoOptional bus route number to filter, e.g. “22”, “66”, “X49”. Required when using find_stop.
find_stopstringnoStop-name fragment to look up when stop_id is unknown, e.g. “clark & madison”, “michigan & randolph”. Requires route.
directionstringnoOptional direction to narrow find_stop, e.g. “Northbound”, “south”
maxnumbernoMax predictions to return, 1-20 (default 10)
_apiKeystringno

Example call

Arguments

{
  "stop_id": "1926",
  "route": "22",
  "_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_bus_predictions","arguments":{"stop_id":"1926","route":"22","_apiKey":"your-cta-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('cta_bus_predictions', {
  "stop_id": "1926",
  "route": "22",
  "_apiKey": "your-cta-api-key"
});

More examples

{
  "route": "66",
  "find_stop": "clark & madison",
  "direction": "Northbound",
  "_apiKey": "your-cta-api-key"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the cta pack
{
  "mcpServers": {
    "cta": {
      "url": "https://gateway.pipeworx.io/cta/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 19, 2026