BART Real-Time Transit
Real-time BART departures, trip planning, fares, stations, and advisories.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`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#"
}커뮤니티
증거