BART Real-Time Transit

Real-time BART departures, trip planning, fares, stations, and advisories.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
70%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,934token 数(工具定义)
~2.6 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.51%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "bart-mcp": {
      "url": "https://bart-mcp.srivastsh.workers.dev/mcp"
    }
  }
}

远程端点

https://bart-mcp.srivastsh.workers.dev/mcpstreamable-http

它能做什么

工具清单

工具(7)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢bart_stations

List all BART stations with abbreviation codes and locations. Use this to look up station codes needed by other tools.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "stations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "county": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "name",
          "city",
          "county",
          "state",
          "address",
          "latitude",
          "longitude"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "stations"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_station_lookup(query, city, limit)

Search BART stations by name, city, address, or 4-letter station code.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "description": "Station name, city, address fragment, or code, e.g. Embarcadero, Oakland, EMBR"
    },
    "city": {
      "type": "string",
      "description": "Optional city filter"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "default": 10,
      "description": "Maximum matches to return"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "stations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "county": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "address": {
            "type": [
              "string",
              "null"
            ]
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ]
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "name",
          "city",
          "county",
          "state",
          "address",
          "latitude",
          "longitude"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "stations"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_departures(station, direction)

Get real-time departures from a BART station. Args: - station: 4-letter abbreviation (e.g. EMBR, 24TH) - direction: Optional 'n' or 's'

输入模式

{
  "type": "object",
  "properties": {
    "station": {
      "type": "string",
      "minLength": 1,
      "description": "Station code (e.g. EMBR, 24TH)"
    },
    "direction": {
      "type": "string",
      "enum": [
        "n",
        "s"
      ],
      "description": "Direction filter"
    }
  },
  "required": [
    "station"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "departures": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "station": {
            "type": "string"
          },
          "stationCode": {
            "type": "string"
          },
          "destination": {
            "type": [
              "string",
              "null"
            ]
          },
          "minutes": {
            "type": [
              "number",
              "null"
            ]
          },
          "displayMinutes": {
            "type": "string"
          },
          "direction": {
            "type": [
              "string",
              "null"
            ]
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "length": {
            "type": [
              "number",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "hexColor": {
            "type": [
              "string",
              "null"
            ]
          },
          "bikeFlag": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "station",
          "stationCode",
          "destination",
          "minutes",
          "displayMinutes",
          "direction",
          "platform",
          "length",
          "color",
          "hexColor",
          "bikeFlag"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "departures"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_trip(origin, destination, time, date)

Plan a trip between two BART stations. Returns schedule, fares, and transfer info.

输入模式

{
  "type": "object",
  "properties": {
    "origin": {
      "type": "string",
      "minLength": 1,
      "description": "Origin station code"
    },
    "destination": {
      "type": "string",
      "minLength": 1,
      "description": "Destination station code"
    },
    "time": {
      "type": "string",
      "description": "Departure time e.g. '5:30pm'"
    },
    "date": {
      "type": "string",
      "description": "Date MM/DD/YYYY"
    }
  },
  "required": [
    "origin",
    "destination"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "trips": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "option": {
            "type": "number"
          },
          "origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "destination": {
            "type": [
              "string",
              "null"
            ]
          },
          "originTime": {
            "type": [
              "string",
              "null"
            ]
          },
          "destinationTime": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationMinutes": {
            "type": [
              "number",
              "null"
            ]
          },
          "fare": {
            "type": [
              "number",
              "null"
            ]
          },
          "legs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "origin": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "destination": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "line": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trainHeadStation": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "origin",
                "destination",
                "line",
                "trainHeadStation"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "option",
          "origin",
          "destination",
          "originTime",
          "destinationTime",
          "durationMinutes",
          "fare",
          "legs"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "trips"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_advisories

Get current BART service advisories, delays, and elevator/escalator status.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "advisories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "station": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "smsText": {
            "type": [
              "string",
              "null"
            ]
          },
          "posted": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "station",
          "type",
          "description",
          "smsText",
          "posted",
          "expires"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "advisories"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_status_summary

Summarize current BART service status from advisories and real-time alert data.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "advisoryCount": {
      "type": "number"
    },
    "types": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "advisories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "station": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "smsText": {
            "type": [
              "string",
              "null"
            ]
          },
          "posted": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "station",
          "type",
          "description",
          "smsText",
          "posted",
          "expires"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "advisoryCount",
    "types",
    "advisories"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢bart_fare(origin, destination)

Get fare between two BART stations.

输入模式

{
  "type": "object",
  "properties": {
    "origin": {
      "type": "string",
      "minLength": 1,
      "description": "Origin station code"
    },
    "destination": {
      "type": "string",
      "minLength": 1,
      "description": "Destination station code"
    }
  },
  "required": [
    "origin",
    "destination"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

输出模式

{
  "type": "object",
  "properties": {
    "origin": {
      "type": "string"
    },
    "destination": {
      "type": "string"
    },
    "fare": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "amount": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "name",
            "amount"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "origin",
    "destination",
    "fare"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本7 个工具
已验证未记录版本7 个工具
已验证未记录版本7 个工具