BART Real-Time Transit
Real-time BART departures, trip planning, fares, stations, and advisories.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"bart-mcp": {
"url": "https://bart-mcp.srivastsh.workers.dev/mcp"
}
}
}Remote-Endpunkte
https://bart-mcp.srivastsh.workers.dev/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (7)
🟢bart_stations
List all BART stations with abbreviation codes and locations. Use this to look up station codes needed by other tools.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Ausgabe-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.
Eingabe-Schema
{
"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#"
}Ausgabe-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'
Eingabe-Schema
{
"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#"
}Ausgabe-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.
Eingabe-Schema
{
"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#"
}Ausgabe-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.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Ausgabe-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.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Ausgabe-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.
Eingabe-Schema
{
"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#"
}Ausgabe-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#"
}Community
Nachweis