cta_train_positions
Pack: cta · Endpoint: https://gateway.pipeworx.io/cta/mcp
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, or use one-click install buttons:
{
"mcpServers": {
"cta": {
"url": "https://gateway.pipeworx.io/cta/mcp"
}
}
}
See Getting Started for client-specific install steps.