rail_predictions

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

Fetch real-time next-train arrival predictions for one or more WMATA stations by comma-separated station_codes (or “All”). Returns line, destination, car count, and minutes until arrival.

Parameters

NameTypeRequiredDescription
station_codesstringyes

Example call

Arguments

{
  "station_codes": "A01"
}

curl

curl -X POST https://gateway.pipeworx.io/wmata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rail_predictions","arguments":{"station_codes":"A01"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('rail_predictions', {
  "station_codes": "A01"
});

More examples

{
  "station_codes": "A01,C05"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Response from WMATA rail predictions API"
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026