Mbta logo

Mbta

Query MBTA routes, stops, arrivals, and active service alerts through MCP or direct HTTP.

Install Mbta

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mbta": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-mbta"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @pipeworx/mcp-mbta

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked Today.

Overview

The Mbta MCP server connects AI agents to Boston transit data through the MBTA v3 API. Its tools return departures, routes, stops, and active alerts for subway, light rail, commuter rail, bus, and ferry services. Use it for live trip questions, route inspection, station lookup, or disruption checks. It is available as a hosted MCP endpoint, a local stdio package, or direct HTTP tool calls.

Use cases

  • Check the next Red Line train at South Station
  • List stops on the Worcester commuter rail route
  • Inspect active alerts for a specific MBTA route
  • Find MBTA routes by service type
  • Look up bus or ferry departures

Key features

  • Real-time station departure predictions
  • MBTA route and destination listings
  • Ordered route stop data
  • Active service alerts with route filtering
  • Published schedule fallback
  • Hosted MCP and local stdio access

Tools4

What Mbta lets your agent do. Expand a tool for its parameters.

Self-reported~294 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

7/7 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @pipeworx/mcp-mbta (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads479Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Mbta works

What Mbta does

The Mbta MCP server exposes Boston-area transit information from the MBTA v3 API through four focused tools. It covers the subway T, light rail, Mattapan Line, commuter rail, buses including the Silver Line, and ferries.

mbta_departures returns arrival and departure predictions for a named station or a place ID. A route filter can narrow results, such as checking Red Line trains at South Station. When live predictions are unavailable, the tool can use the published schedule instead, which is relevant for some commuter rail periods.

mbta_routes lists available MBTA routes, including route IDs, names, and the destination associated with each direction. mbta_stops returns the stops along a selected route in route order, with stop IDs, names, municipalities, and wheelchair accessibility information. mbta_alerts reports active service notices such as delays, shuttle substitutions, track changes, detours, and elevator outages, with optional route filtering.

How it works

The hosted connection uses the Pipeworx gateway at https://gateway.pipeworx.io/mbta/mcp. A client can call the MBTA tools through MCP, while the gateway endpoint also exposes shared Pipeworx tools. The gateway’s initialize response defines the exact tools available for a connection; the listed MBTA tools are the pack-specific capability set.

The same gateway also provides a full endpoint at https://gateway.pipeworx.io/mcp. Either endpoint can reach the broader Pipeworx catalog through ask_pipeworx, but the pack endpoint lists the MBTA tools directly. For applications that do not use an MCP client, individual tools can be called through the gateway’s HTTP API.

The local package speaks MCP over standard input and output. In that mode, it serves only the MBTA pack tools and does not include the gateway’s shared meta-tools or cross-catalog routing.

Setup and configuration

For a hosted connection, add the pack endpoint as an MCP server in a compatible client:

config.json
{
  "mcpServers": {
    "mbta": {
      "url": "https://gateway.pipeworx.io/mbta/mcp"
    }
  }
}

For local stdio use, configure the package through npx:

config.json
{
  "mcpServers": {
    "mbta": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-mbta"]
    }
  }
}

The package can also be started directly with npx -y @pipeworx/mcp-mbta. The documentation states that initial hosted calls do not require an account. Direct HTTP callers can post JSON to an endpoint such as /v1/tools/mbta_departures.

Tools and capabilities

The Mbta MCP server provides:

  • mbta_departures for live predictions and schedule fallback at a station.
  • mbta_routes for subway, light rail, commuter rail, bus, and ferry route metadata.
  • mbta_stops for ordered stop lists and accessibility fields.
  • mbta_alerts for current disruptions and route-specific service notices.

Route type filters distinguish subway or light rail, commuter rail, bus, and ferry services. Examples include Red, CR-Worcester, and place ID place-sstat.

Limitations and notes

The hosted pack endpoint includes shared Pipeworx meta-tools in addition to the MBTA tools, so its reported tool count is larger than the four-tool list. The local stdio package does not include those shared tools. Live departure data may be empty in some situations, particularly off-peak commuter rail service; the departures tool then falls back to the published schedule. Results depend on the MBTA v3 API’s available data and current service notices.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mbta

Mbta is an MCP server that connects AI agents to the MBTA v3 API for Boston transit data. Its main tools provide station departures, route listings, route stops, and active service alerts across subway, light rail, commuter rail, bus, and ferry services. It can run through Pipeworx or locally over stdio.

Install it as a local stdio server with `npx -y @pipeworx/mcp-mbta`, or add that command and package argument to your MCP client configuration. You can also connect directly to the hosted endpoint at `https://gateway.pipeworx.io/mbta/mcp`.

Yes, Mbta works with Cursor through the hosted MCP endpoint. Add `https://gateway.pipeworx.io/mbta/mcp` as an MCP server in Cursor. The README also names Claude Desktop and Windsurf as supported client examples.

Call `mbta_departures` with a station name or place ID, optionally including a route. For example, use `{"stop":"South Station","route":"Red"}` to request Red Line predictions at South Station. The tool may use the published schedule when live predictions are empty.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMbta AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mbta?style=directory)](https://allmcps.com/mcp/mbta)
HTML Embed
<a href="https://allmcps.com/mcp/mbta"><img src="https://allmcps.com/api/badge/mbta?style=directory" alt="Mbta on AllMCPs" /></a>