PTV Transit MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_stopsA | Search for public transport stops/stations by name. Args: query: Partial or full stop name to search for, e.g. "Flinders" or "Oakleigh". limit: Maximum number of results to return. |
| list_routesA | List public transport routes, optionally filtered by mode. Args: mode: One of "metro_train", "metro_tram", "metro_bus", "regional_train", "regional_bus", "regional_coach", "skybus", "night_bus". Omit to list across all modes. limit: Maximum number of results to return. |
| get_next_departuresA | Get upcoming scheduled departures for a given stop, across all routes serving it. Note: this reads the static GTFS schedule (not live GPS positions), so results reflect the timetable, not real-time delays. Args: stop_name: Name (or partial name) of the stop/station to look up. limit: Maximum number of departures to return. |
| run_sql_queryA | Run a read-only SQL SELECT query against the GTFS database directly, for questions the other tools don't cover. Only SELECT statements are permitted. Available tables: routes, stops, trips, stop_times, calendar (each has a gtfs_mode column identifying the transport mode). Use the ptv://schema resource to see column details. Args: query: A single SQL SELECT statement. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| trip_planner | A reusable prompt template for planning a trip between two stops. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_schema | Returns the column names and types for every table in the database, so the model can write informed run_sql_query calls without guessing at column names. |
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/MananshuMandaliya/ptv-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server