caltrain-mcp

davidyen1124/caltrain-mcp

3.3

If you are the rightful owner of caltrain-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Caltrain MCP Server provides real-time train schedules using GTFS data, allowing users to access Caltrain schedules through MCP-compatible clients.

The Caltrain MCP Server is a Model Context Protocol (MCP) server designed to provide real-time train schedules for Caltrain, a commuter rail line in the San Francisco Bay Area. By leveraging General Transit Feed Specification (GTFS) data, the server offers users accurate train departure times between any two stations on the Caltrain line. The server is intended for use with MCP clients, such as Claude Desktop, enabling seamless integration into conversations and applications. While the server aims to provide precise scheduling information, it humorously acknowledges the common delays associated with public transit. The server supports various station name inputs, including full names, abbreviations, and partial matches, making it user-friendly and accessible. Additionally, the server is built with modern Python tooling, ensuring code quality and maintainability through automated testing and continuous integration.

Features

  • Real-time train schedules using GTFS data
  • Station lookup for all 31 Caltrain stations
  • Time-specific queries for precise commute planning
  • Smart search with support for abbreviations and partial matches
  • Integration with MCP clients for seamless access

Usages

usage with claude desktop

{
  "mcpServers": {
    "caltrain": {
      "command": "uvx",
      "args": ["caltrain-mcp"]
    }
  }
}

usage with other mcp clients

bash
uvx caltrain-mcp

Tools

  1. next_trains

    Get upcoming departures between stations.

  2. list_stations

    Browse all available Caltrain stations.