Skip to main content
Glama
GTFS Realtime MCP Server

GTFS Realtime MCP Server

by bribroder

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
gtfs_tu_urlYesThe URL of the GTFS Realtime trip updates feed.
gtfs_vp_urlYesThe URL of the GTFS Realtime vehicle positions feed.
gtfs_api_keyYesYour GTFS provider API key.
gtfs_api_urlYesThe base GTFS API URL for your transit provider.
gtfs_alerts_urlYesThe URL of the GTFS Realtime alerts feed.
gtfs_static_urlYesThe URL of the GTFS static zip feed.

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

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_stations_by_lineA

List all station names for a given rail line (e.g. 'Red', 'Blue', 'Silver', 'Green', 'Yellow', 'Orange').

get_next_trainB

Find out when the next train bound for a destination will arrive at the origin station. You can provide either station names OR gps coordinates (lat/lon) for origin and destination.

plan_tripA

Plan a transit trip in the future using the scheduled GTFS timetable.

  • origin_station_name: e.g. "Metro Center"

  • dest_station_name: e.g. "Shady Grove"

  • date_time_str: Human-readable date and time (e.g. "tomorrow at 8am", "2024-05-15 10:00")

  • query_type: 'depart_at' (leave after this time) or 'arrive_by' (reach destination before this time)

check_service_alertsB

Check if a service alert could affect the journey. You can specify a rail line name (e.g. 'Red') or a station name.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation4/5

The four tools have mostly distinct purposes: station listing, real-time next-train lookup, future trip planning, and service-alert checking. get_next_train and plan_trip could be confused at first, but the descriptions clearly separate real-time versus scheduled future planning.

Naming Consistency5/5

All tool names use consistent snake_case verb_noun-style naming: list_stations_by_line, get_next_train, plan_trip, and check_service_alerts. The pattern is predictable and readable throughout.

Tool Count4/5

Four tools is a focused, reasonable set for a GTFS realtime transit server. It is slightly thin but not inappropriate, since each tool maps to a clear rider-facing capability.

Completeness4/5

The surface covers core transit workflows: discovering stations by line, checking next trains, planning future trips, and checking service alerts. Minor gaps remain, such as station search/autocomplete or richer alert details, but agents can work around them.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues