bart_trip_planner

Pack: bart · 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/bart_trip_planner for the schema, then POST the same URL with its arguments for the data.

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 — 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 bart pack
{
  "mcpServers": {
    "bart": {
      "url": "https://gateway.pipeworx.io/bart/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 14, 2026