# SF Bay Area Transit MCP

> SF Bay Area Transit MCP is a free MCP server for maps and travel. Plan Bay Area bus, train and ferry trips and see next stop departures from an agent. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, CLI
- **Website:** https://mcp.riv.lc/sf-transit
- **Repository:** https://github.com/czekaj/sf-transit-mcp
- **MCP Registry name:** io.github.czekaj/sf-transit-mcp
- **Categories:** maps and travel
- **Listing updated:** 2026-11-14

## About

Routing data comes from Transitous, which covers BART, Muni, Caltrain, AC Transit, VTA, SamTrans, Golden Gate Transit, Golden Gate Ferry and SF Bay Ferry. A request gives a start and destination plus an optional leave-by or arrive-by time; without a time the trip leaves now. A trip can be compared against cycling and capped at a set number of transfers.

Results list departure and arrival times, total travel time, walking time and number of transfers, with step-by-step directions for each route. A separate departure board shows service, destination and time for a stop, and marks whether a time is a live estimate or only scheduled. In apps that support MCP Apps these appear as interactive views; other apps get the same information as text.

The four tools are enabled in the client, and there are no keys or sign-in. The hosted service runs on Cloudflare Workers Free, and the README says the default data provider is meant for light, noncommercial, open-source use with no availability guarantee. Place searches, trip coordinates and stop IDs go to Transitous, whose privacy policy says request URLs are logged for up to two days.

## Features

- **Trip planning:** Plan trips by bus, train or ferry with a leave-by or arrive-by time.
- **Mode comparison:** Compare transit with cycling and limit the number of transfers.
- **Next departures:** Show a stop's upcoming departures by service and destination.
- **Live versus scheduled:** Marks whether a time is a live estimate or only timetable data.
- **Interactive views:** MCP Apps clients get route and departure widgets; others get text.
- **Local or hosted:** Use the hosted URL or run it over stdio with Node.js 22.12 or newer.

## Good for

- Ask how to get from the Ferry Building to Baker Beach right now
- Check the next Muni N departures at a given stop
- Plan an airport trip that must arrive by a set time
- Compare a transit route against cycling with at most one transfer

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http sf-transit-mcp https://mcp.riv.lc/sf-transit/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.riv.lc/sf-transit/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sf-transit-mcp": {
      "url": "https://mcp.riv.lc/sf-transit/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sf-transit-mcp": {
      "type": "http",
      "url": "https://mcp.riv.lc/sf-transit/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "sf-transit-mcp": {
      "serverUrl": "https://mcp.riv.lc/sf-transit/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sf-transit-mcp": {
      "type": "http",
      "url": "https://mcp.riv.lc/sf-transit/mcp"
    }
  }
}
```

## FAQ

### Do I need an API key?

No. It is free and needs no keys or authentication; choose no authentication if the client asks.

### Where does the routing data come from?

Transitous, which covers the Bay Area agencies listed on the service page.

### Is a live time guaranteed?

No. A scheduled time means no live estimate was supplied, and it does not confirm that a vehicle is on time.

### Can I run it locally?

Yes, with Node.js 22.12 or newer, either straight from the GitHub repository with npx or from a clone built with npm.

### Is SF Bay Area Transit MCP free?

Yes. SF Bay Area Transit MCP is free to use.

### How do I add SF Bay Area Transit MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http sf-transit-mcp https://mcp.riv.lc/sf-transit/mcp

### What are the best alternatives to SF Bay Area Transit MCP?

The closest alternatives to SF Bay Area Transit MCP are Tutu eSIM, Shanghai Streets Travel Guide, Fifty Asks, Gangway AIS and Tickets: tours and event tickets in South America.

## Alternatives

- [Tutu eSIM](https://ai-powered.com/mcp/tutu-esim): Tutu eSIM is a paid MCP server for maps and travel.
- [Shanghai Streets Travel Guide](https://ai-powered.com/mcp/shanghai-streets-travel-guide): Shanghai Streets Travel Guide is a free MCP server for maps and travel.
- [Fifty Asks](https://ai-powered.com/mcp/fifty-asks): Fifty Asks is a free MCP server for maps and travel.
- [Gangway AIS](https://ai-powered.com/mcp/gangway-ais): Gangway AIS is a freemium MCP server for freight and logistics.
- [Tickets: tours and event tickets in South America](https://ai-powered.com/mcp/tickets-tours-and-event-tickets-in-south-america): Tickets: tours and event tickets in South America is a free MCP server for maps and travel.
- [Goyondo](https://ai-powered.com/mcp/goyondo-2): Goyondo is a freemium MCP server for maps and travel.
- [DalVivo](https://ai-powered.com/mcp/dalvivo): DalVivo is a free MCP server for maps and travel.
- [Big Data Insights for Regional Inflow in Korea](https://ai-powered.com/mcp/big-data-insights-for-regional-inflow-in-korea): Big Data Insights for Regional Inflow in Korea is a free MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/sf-bay-area-transit-mcp
