Caltrain MCP
C

Caltrain MCP

A Caltrain train time query MCP server based on GTFS data, providing functions such as real-time train times and station queries, and can be integrated with MCP clients such as Claude Desktop.
2.5 points
7.5K

What is the Caltrain MCP Server?

The Caltrain MCP server is a system based on the Model Context Protocol (MCP) that can query the real-time train schedules of the California commuter rail (Caltrain). It uses official GTFS data to provide information on train departure and arrival times.

How to Use the Caltrain MCP Server?

The server integrates with AI assistants (such as Claude Desktop) through the MCP protocol. Users only need to ask questions in the conversation, for example, 'When is the next train from San Jose to San Francisco?', to obtain train schedule information.

Applicable Scenarios

Suitable for users who need to plan their commutes, know train times, or study public transportation systems. Particularly suitable for passengers who often take the Caltrain.

Main Features

Real-time Train Schedules
Provides information on train departure and arrival times from one station to another, based on official GTFS data.
Station Search
Supports searching for stations by full name, abbreviation, acronym, or partial match, making it convenient for users to quickly find the desired stations.
Time-specific Query
Allows users to specify a specific date and time to query train times, helping to plan travel schedules.
Intelligent Search
Supports searching for stations by shorthand or partial keywords, enhancing the user experience.
GTFS Data Source
Uses GTFS data provided by the official Caltrain, ensuring the accuracy and reliability of the information.
Advantages
Provides accurate train schedule information to help users better plan their trips.
Supports multiple ways of entering station names, making it convenient for users to use.
Can be seamlessly integrated with AI assistants to enhance the interaction experience.
Based on official data sources, ensuring the authority and reliability of the information.
Limitations
Actual train times may change due to various reasons, and complete accuracy cannot be guaranteed.
Limited to Caltrain lines and not applicable to other transportation systems.
Requires a network connection to obtain the latest data.
Some advanced features may require additional configuration or settings.

How to Use

Install Dependencies
First, install the uv tool, and then use uv to synchronize project dependencies.
Get GTFS Data
Run the script to download the Caltrain GTFS data file.
Start the Server
Use the uvx command to start the Caltrain MCP server.
Integrate with AI Assistant
Configure the server as an MCP server to integrate with AI assistants such as Claude Desktop.

Usage Examples

Query the Next Train
The user asks about the time of the next train from San Jose to San Francisco.
Find All Stations
The user requests to list the names of all Caltrain stations.
Query Trains at a Specific Time
The user asks about the train times at a specific time on a certain day.

Frequently Asked Questions

Why might the train times be inaccurate?
How to find the station names?
Does it support other transportation systems?
How to update the GTFS data?
How to integrate with an AI assistant?

Related Resources

Caltrain Official Website
View official information and schedules of Caltrain.
GTFS Data Repository
Obtain the GTFS data file of Caltrain.
GitHub Project Page
View the source code and documentation of the project.
Model Context Protocol (MCP) Documentation
Understand the detailed information and usage methods of the MCP protocol.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "caltrain": {
      "command": "uvx",
      "args": ["caltrain-mcp"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
9.2K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
8.9K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
10.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
12.5K
4 points
B
Baidu Map
Certified
Baidu Maps MCP Server is the first domestic map service compatible with the MCP protocol, offering 10 standardized API interfaces such as geocoding and route planning, supporting quick access via Python and Typescript, and enabling agents to implement map - related functions.
Python
25.2K
4.5 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
65.4K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.4K
4.5 points
P
Perplexity MCP
Certified
An MCP server based on the Perplexity AI API, providing web search functionality for the Claude desktop client.
Python
15.7K
4.1 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.6K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
44.0K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
19.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
44.5K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
14.8K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
30.3K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase