lametro_routes
Pack: la-metro · Endpoint: https://gateway.pipeworx.io/la-metro/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/lametro_routes for the schema, then POST the same URL with its arguments for the data.
Every LA Metro bus or rail route, with its route code, short and long name, direction description and map colour. AUTHORITATIVE for “what routes does LA Metro run” — sourced from LACMTA’s own API, not a third-party scrape. Use the returned route_code as input to lametro_route_stops.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agency | string | no | ’LACMTA’ for bus (default, ~124 routes) or ‘LACMTA_Rail’ for the rail and busway lines (A/B/C/D/E/K, ~6). |
search | string | no | Optional case-insensitive filter over route name and description (e.g. “Wilshire”, “Rapid”). |
Example call
Arguments
{
"agency": "LACMTA",
"search": "Wilshire"
}
curl
curl -X POST https://gateway.pipeworx.io/la-metro/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lametro_routes","arguments":{"agency":"LACMTA","search":"Wilshire"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('lametro_routes', {
"agency": "LACMTA",
"search": "Wilshire"
});
More examples
{
"agency": "LACMTA_Rail"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"la-metro": {
"url": "https://gateway.pipeworx.io/la-metro/mcp"
}
}
}
See Getting Started for client-specific install steps.