# 火车时刻查询服务
## 基本信息
- Slug: `myalone-caltrain`
- Source: modelscope
- Publisher: myalone/caltrain
- Categories: search / developer-tools
- Hosted: Yes
- License: Unknown
- Source URL: https://www.modelscope.cn/mcp/servers/myalone/caltrain
## 简介
基于GTFS数据的Caltrain火车时刻查询服务，提供实时火车时刻表、站点查询和时间特定查询功能。
## 安装提示

```bash
### STREAMABLE HTTP ```json { "mcpServers": { "火车时刻查询服务": { "headers": { "XBY-APIKEY": "<YOUR_XBY_APIKEY>" }, "type": "streamable_http", "url": "https://mcp.xiaobenyang.com/1777419073070083/mcp" } } }
```

## MCP Server 详情

# 火车时刻查询服务 caltrain

基于GTFS数据的Caltrain火车时刻查询服务，提供实时火车时刻表、站点查询和时间特定查询功能。
null## 工具列表 Tool List

本MCP服务封装下列工具，可让模型通过标准化接口调用以下功能。 本MCP服务封装下列工具，可让模型通过标准化接口调用以下功能。

| 工具 Tool   | 描述 Description         |
|-------|--------------------|
| next_trains | Return the next few scheduled Caltrain departures.  Args:     origin: Station name (e.g. 'San Jose Diridon', 'Palo Alto', 'San Francisco').             Supports common abbreviations like 'SF' for San Francisco, 'SJ' for San Jose.             If station is not found, use list_stations() to see all available options.     destination: Station name (e.g. 'San Francisco', 'Mountain View', 'Tamien').                  Supports common abbreviations like 'SF' for San Francisco, 'SJ' for San Jose.                  If station is not found, use list_stations() to see all available options.     when_iso: Optional ISO-8601 datetime (local time). Default: now.  Note: If you get a "Station not found" error, try using the list_stations() tool first to see exact station names, then retry with the correct spelling.  |
| list_stations | List all available Caltrain stations.  This tool is useful when you need to find the exact station names, especially if the next_trains() tool returns a "Station not found" error. Station names are case-insensitive and support some common abbreviations like 'SF' and 'SJ'.  Returns a formatted list of all Caltrain stations that can be used as origin or destination in the next_trains() tool.  |


## 检查服务 ## Inspector

工具在线测试： [https://mcp.xiaobenyang.com/inspector/1777419073070083](https://mcp.xiaobenyang.com/inspector/1777419073070083)

Online Tool test [https://mcp.xiaobenyang.com/inspector/1777419073070083](https://mcp.xiaobenyang.com/inspector/1777419073070083)

## 服务配置 MCP Server Config


> #### 如何获取 XBY-APIKEY ？ How to get XBY-APIKEY ?
> 访问小笨羊科技网站 [https://xiaobenyang.com](https://xiaobenyang.com)，注册用户即可获得APIKEY
> Visit XiaoBenYang website [https://xiaobenyang.com](https://xiaobenyang.com), register and get the APIKEY.

### SSE
```json
{
  "mcpServers": {
    "火车时刻查询服务": {
      "headers": {
        "XBY-APIKEY": "<YOUR_XBY_APIKEY>"
      },
      "type": "sse",
      "url": "https://mcp.xiaobenyang.com/1777419073070083/sse"
    }
  }
}
```
### STREAMABLE HTTP
```json
{
  "mcpServers": {
    "火车时刻查询服务": {
      "headers": {
        "XBY-APIKEY": "<YOUR_XBY_APIKEY>"
      },
      "type": "streamable_http",
      "url": "https://mcp.xiaobenyang.com/1777419073070083/mcp"
    }
  }
}
```
### STDIO
```json
{
    "mcpServers": {
        "火车时刻查询服务": {
          "command": "npx",
          "args": [
            "-y",
            "xiaobenyang-mcp"
          ],
          "env": {
            "XBY_APIKEY": "<YOUR_XBY_APIKEY>",
            "mcpId": "1777419073070083",
          },
          "transport": "stdio"
        }
      }
}

```

