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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RyK57/transit-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server