bart_trip_planner

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

Plan a BART trip between two Bay Area stations — the next trains from origin to destination with departure and arrival times, trip duration, legs (line, transfer stations, bikes), and the fare (Clipper and discount prices). Covers trips like SF to Oakland, Embarcadero to SFO airport, Berkeley to Millbrae. Stations accept 4-letter codes or names. Example: bart_trip_planner({ from: “Embarcadero”, to: “SFIA” })

Parameters

NameTypeRequiredDescription
fromstringyesOrigin station — code or name, e.g. “EMBR” or “Embarcadero”
tostringyesDestination station — code or name, e.g. “SFIA” or “SFO airport”
tripsnumbernoHow many upcoming trips to return, 1-4 (default 4)
_apiKeystringnoOptional: your own BART API key (defaults to the BART public key)

Example call

Arguments

{
  "from": "EMBR",
  "to": "SFIA"
}

curl

curl -X POST https://gateway.pipeworx.io/bart/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bart_trip_planner","arguments":{"from":"EMBR","to":"SFIA"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('bart_trip_planner', {
  "from": "EMBR",
  "to": "SFIA"
});

More examples

{
  "from": "Downtown Berkeley",
  "to": "Powell",
  "trips": 2
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build August 29, 2026