mbta_routes

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

List MBTA routes for the Boston subway T, commuter rail, bus, and ferry, route ids, names, and the destination each direction heads toward. type: 0-1 subway/light rail (Red, Orange, Blue, Green, Mattapan), 2 commuter rail, 3 bus (includes Silver Line), 4 ferry. Default returns subway + commuter rail + ferry; pass type 3 for buses. Example: mbta_routes({ type: “2” })

Parameters

NameTypeRequiredDescription
typestringnoRoute type filter, comma-separable: “0,1” subway, “2” commuter rail, “3” bus, “4” ferry (default “0,1,2,4”)
_apiKeystringnoOptional: free MBTA v3 API key from api-v3.mbta.com for higher rate limits

Example call

Arguments

{
  "type": "2"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('mbta_routes', {
  "type": "2"
});

More examples

{
  "type": "0,1"
}

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

See Getting Started for client-specific install steps.

Regenerated from source · build November 29, 2026