mcps

Bucharest transit MCP server

Beta: in use, and new or still growing, or reading web pages its service may change.

Ask your assistant how to get across Bucharest and get a real answer: which metro or bus to take, when the next ones leave, where to change and how long the walk is, which exit to use at the end, and what the ticket costs. It covers the metro (Metrorex, M1 to M5) and the surface lines (STB buses, trams and trolleybuses, and the Ilfov operators), from the transport authority's official GTFS timetable, the same one map apps use. It also tells a station's exits and lifts, its first and last trains, a line's stops and frequency, and the disruptions announced right now. It only reads: nothing is bought, booked or sent.

You need nothing: no account and no key. On its first run the server downloads the timetable (about 9 MB) and keeps it on disk; after that every answer comes from that copy, and it checks for a new timetable about once a week. Only alerts goes online when you call it.

What you can ask

  • "How do I get from Pipera to Tudor Arghezi right now, and how much is the ticket?"
  • "I need to be at Universitate by 9:00 tomorrow, coming from Aeroport Băneasa. When do I leave?"
  • "Which exit at Piața Unirii has a lift?"
  • "When is the last metro from Piața Victoriei tonight?"
  • "How often does the 336 run on Saturday morning?"
  • "Is anything disrupted on M4 today?"

Install

Install in VS Code Install in Cursor Download for Claude Desktop

With Claude Code:

claude mcp add bucharest-transit -- npx -y @foreverworks/mcp-bucharest-transit

Claude Desktop (Settings, Developer, Edit Config) and most other clients read the same command as JSON:

{
  "mcpServers": {
    "bucharest-transit": {
      "command": "npx",
      "args": ["-y", "@foreverworks/mcp-bucharest-transit"]
    }
  }
}

Each runs the published package on Node 22.19 or newer. It needs no settings.

From a clone

git clone https://github.com/foreverworks/mcps.git && cd mcps
npm ci && npm run build
claude mcp add bucharest-transit -- node "$PWD/servers/bucharest-transit/dist/index.js"

In a JSON configuration, the command is node and its one argument the full path of servers/bucharest-transit/dist/index.js. To share one running copy between several clients over HTTP, see docs/deploying.md.

Configuration

Nothing is required. These change where the timetable comes from and where it is kept:

Variable Required Meaning
BUCHAREST_TRANSIT_STATE_DIR no Where the downloaded timetable is kept (feed.zip and feed.json). Default: the server's state directory, see docs/configuration.md.
BUCHAREST_TRANSIT_FEED_URL no The GTFS feed to download. Default https://gtfs.tpbi.ro/regional/BUCHAREST-REGION.zip.
BUCHAREST_TRANSIT_FEED_FILE no A GTFS ZIP on disk to read instead; the server then never downloads or refreshes it. For offline use and tests.
BUCHAREST_TRANSIT_ALERTS_URL no The GTFS-Realtime service alerts to read. Default https://gtfs.tpbi.ro/api/gtfs-rt/serviceAlerts.

First run

  1. Ask for health. The first call downloads and indexes the timetable, which takes a few seconds. A good answer names the feed's version, the days it covers and days_left.
  2. Ask for a journey between two stations you know. Names work with or without diacritics ("Piata Unirii", "Piața Unirii").

Tools

Every tool only reads.

Tool Access What it does
route read The next few journeys between two places: lines, where to change, walking, total time, exits at the end, and the fare. Leave at a time or arrive by one; metro only if you like.
find_station read Stations and stops by part of a name, diacritics optional, small misspellings forgiven; or everything near a point.
station read A station's platforms and directions, entrances with stairs, escalators and lifts, levels, amenities, and first and last departures on weekdays and weekends.
line read A line's stops in order with minutes, its variants, and how often it runs through the day.
departures read The next departures from a station or stop, every line, including trips past midnight.
alerts read The disruptions the transport authority publishes now, by line or station, in Romanian and English.
health read The timetable in use: version, the days it covers, days left, when it was last checked.

Troubleshooting

health has a warning that the timetable ends soon. The authority publishes a new timetable about every three months. The server looks for it every day in the last two weeks; if the warning stays, the authority has not published one yet, and answers after the end date are about a calendar that is over.

stale in an answer. The last check for a new timetable failed (the authority's server did not answer). The copy on disk keeps answering, and the server tries again in 15 minutes.

"matches several places far apart". Some stop names repeat across the city. The message lists each with its street and id; pass the id (stop:1234) instead of the name.

A station's platform is named for the wrong line. The feed's own names and its timetable sometimes disagree (as of December 2026, the halls of Piața Victoriei carry each other's names). The answer then carries a feed_note saying which lines actually call there; the journeys follow the timetable.

How it works

The timetable. The source is the regional GTFS feed of ADTPBI, the Bucharest-Ilfov public transport authority, produced by FlashWeb IT: about 66,000 trips and 1.5 million stop times. Reading it takes about 2.5 seconds and 45 MB of memory, and indexing it for journeys a few seconds more, so it is read once and kept in memory. The server stores the ZIP and compares it with the published one with a conditional request on its ETag; an unchanged feed costs one tiny response. A new download replaces the old one only after it has been read successfully.

Journeys. route uses RAPTOR, an algorithm that finds, round by round, the earliest arrival with one vehicle, then two, and so on, and keeps every journey that is not beaten on both time and number of changes. It scans the trips that really run on the day asked (weekday, Saturday or Sunday services), including trips that started the day before and run past midnight. Between vehicles it walks: inside a metro station between its platforms, or on the street to any stop within 500 metres.

Walking times are estimates. The feed describes the walkways, stairs, escalators and lifts inside stations, but gives no times for them, and no minimum transfer times. The server estimates a walk from the distance: 90 seconds plus the walk inside a station, and on the street a detour factor and two minutes for each metro platform reached from the street. Transfers the feed marks as impossible (between Gara de Nord 1 and 2, which have no connection inside) are made on the street.

Fares. Prices come from the feed's own fare tables (GTFS Fares v2), never from this code: which ticket each network takes, how long a ticket carries over to another ride, and the integrated ticket valid on both. Every answer names the feed version its fare comes from. The price shown is a single ride on the cheapest medium; passes are not compared.

Alerts. Read live from the authority's GTFS-Realtime service alerts, at most once a minute.

Limitations

  • Scheduled times only. The authority also publishes live trip updates and vehicle positions, which this server does not read yet.
  • Public holidays: the feed marks no exceptions, so a holiday runs the weekday timetable here unless the authority publishes one.
  • No addresses: give a station or stop, or a point as latitude and longitude. The server never calls a geocoder.
  • Walking inside stations and on the street is estimated from distance (see How it works).
  • Line M6 to the airport is not in the feed while it is under construction.

Data and licence. The timetable and alerts are published by ADTPBI (Asociația de Dezvoltare Intercomunitară pentru Transport Public București-Ilfov), with data from STB, Metrorex, STV, STCM and Regio Serv, produced by FlashWeb IT. As of December 2026 neither the feed, tpbi.ro nor the Mobility Database states a licence or terms of reuse for it. This server credits them in its answers and keeps no copy of the data in this repository; check the authority's terms before you publish what it returns.

Other servers for Bucharest transit

Searched on 2026-12-05 (the MCP Registry, npm, PyPI and GitHub): no MCP server for Bucharest's public transport was found. The closest is metro-mcp, which covers Washington DC and New York. The apps people use in Bucharest (MetroBUC, Citymapper, Google Maps, Bucharest Transit) offer no API an assistant can use.