cta_train_positions
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_train_positions for the schema, then POST the same URL with its arguments for the data.
Live Chicago CTA ‘L’ train positions on one or more lines — where every Red Line, Blue Line, Brown, Green, Orange, Purple, Pink, or Yellow train is right now: lat/lon, heading, next station with ETA, destination, approaching and delayed flags. Answers “where are the Blue Line trains” for the Chicago L. Example: cta_train_positions({ routes: “Red,Blue” })
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
routes | string | yes | Comma-separated ‘L’ lines, full color names accepted: “Red”, “Red,Blue”, “Brown,Purple” |
_apiKey | string | no |
Example call
Arguments
{
"routes": "Red,Blue",
"_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_positions","arguments":{"routes":"Red,Blue","_apiKey":"your-cta-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cta_train_positions', {
"routes": "Red,Blue",
"_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.