transit
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP transport bind host | 127.0.0.1 |
| PORT | No | HTTP transport bind port | 3000 |
| TRANSPORT | No | stdio or http | stdio |
| ALLOWED_ORIGINS | No | Comma-separated origin allowlist | localhost and claude.ai |
| MCP_PATH_SECRET | No | Serves the endpoint at /mcp/<secret>. Required when HOST is not loopback | |
| TRANSIT_511_API_KEY | Yes | Token from https://511.org/open-data/token | |
| TRANSIT_511_BASE_URL | No | Override the API host | https://api.511.org |
| TRANSIT_511_REQUEST_TIMEOUT_MS | No | Per-request timeout | 30000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| transit_list_operatorsA | List Bay Area transit agencies and their operator codes. Start here. Every other tool needs an operator code, and this is what produces them — BART is 'BA', Muni is 'SF', AC Transit is 'AC', Caltrain is 'CT'. The Monitored flag matters: agencies reporting real-time data support live departures and vehicle positions, while schedule-only agencies do not. Args:
Returns: { "count": number, "total": number, "truncated": boolean, "operators": [ { "Id": string, "Name": string, "Monitored": boolean, "PrimaryMode": string, "TimeZone": string } ] } Examples:
Error Handling:
|
| transit_list_linesA | List an agency's routes. Use this to resolve a line name a user mentions into the id the real-time tools filter on, or to answer "what routes does this agency run". Args:
Returns: { "count": number, "total": number, "truncated": boolean, "lines": [ { "Id": string, "Name": string, "PublicCode": string, "TransportMode": string, "Monitored": boolean } ] } Examples:
Error Handling:
|
| transit_find_stopsA | Find an agency's stops by name, and get the stop codes the real-time tools need. This is the bridge between "Downtown Berkeley" and the code transit_next_departures wants. Pass a query: a large agency has thousands of stops, and 511 returns all of them in one unpaginated response. Args:
Returns: { "count": number, "total": number, "truncated": boolean, "stops": [ { "id": string, "Name": string, "Location": { "Latitude": string, "Longitude": string } } ] } Examples:
Error Handling:
|
| transit_next_departuresA | Live arrival predictions for the next vehicles at a stop. This is the tool for "when is my next train/bus". It returns real-time predictions, not the printed timetable, and reports minutes-from-now alongside Pacific clock time. Args:
Returns: { "count": number, "total": number, "truncated": boolean, "operator": string, "stop_code": string, "stop_name": string, "retrieved_at": string, "departures": [ { "line": string, "destination": string, "expected": string, "aimed": string, "minutes": number, "vehicle": string | null, "at_stop": boolean } ] } Examples:
Error Handling:
|
| transit_list_vehiclesA | Live positions of an agency's vehicles currently in service. Answers "where are the trains right now" and "how many buses are running on this line". For "when does one get to me", use transit_next_departures instead. Args:
Returns: { "count": number, "total": number, "truncated": boolean, "vehicles": [ { "line": string, "vehicle": string, "destination": string, "latitude": number | null, "longitude": number | null, "bearing": number | null, "recorded_at": string } ] } Examples:
Error Handling:
|
| transit_list_service_alertsA | Service alerts — delays, outages, detours and planned disruptions. Answers "is BART running normally", "why is my line delayed" and "anything I should know before I leave". Omit operator_id to sweep every Bay Area agency in a single request, which is also the kinder option against the hourly quota. Args:
Returns: { "count": number, "total": number, "truncated": boolean, "alerts": [ { "id": string, "header": string, "description": string, "effect": string, "cause": string, "routes": [string], "start": number, "end": number } ] // epoch SECONDS } Examples:
Error Handling:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct resource: operators, lines, stops, departures, vehicles, and alerts. Descriptions explicitly cross-reference when to use which (e.g., 'Don't use when' sections), eliminating ambiguity. No two tools overlap in purpose.
All tools share the 'transit_' prefix and follow a consistent verb-object pattern: list_operators, list_lines, find_stops, next_departures, list_vehicles, list_service_alerts. Minor variation between 'list', 'find', and 'next' but the style is uniform and predictable.
Six tools are well-scoped for a transit information server, covering discovery (operators, lines, stops), real-time queries (departures, vehicles), and alerts. No tool is redundant, and the count feels neither sparse nor bloated.
The tool surface covers the full workflow of querying transit info: discover agencies, lines, stops, then get live departures, vehicle positions, and alerts. A minor gap is the lack of a dedicated scheduled timetable tool, though the departures endpoint includes aimed times. Overall, the domain is well covered.