hu-transit-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hu-transit-mcp When does the next M2 leave Deák Ferenc tér?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hu-transit-mcp
MCP server for Budapest and Hungarian public transport: BKK metro, tram, bus, trolleybus and HÉV, MÁV trains nationwide (including IC, EC and railjet to Wien and München) and Volánbusz. It uses the official BKK FUTÁR API and is read-only.
Ask Claude (or any MCP client) things like:
"When does the next M2 leave Deák Ferenc tér?"
"How do I get from Széll Kálmán tér to Nyugati tomorrow at 8:00?"
"Is anything wrong on the M3 today?"
"Trains from Keleti to Wien in the next 2 hours?"
"All trains from Miskolc to Budapest tomorrow, and back?"
Tools
Tool | What it returns |
| Stops and stations by name, with lines and coordinates. Stations come first |
| Departure board: planned and live time, delay, cancellations, operator. Optional |
| Trip options between two stop names or |
| All direct MÁV trains between two stations for a whole day, like a printed timetable. Works nationwide (Miskolc, Debrecen, Szeged, Pécs, Győr…). |
| Current disruptions and diversions (BKK and MÁV) in English or Hungarian, optional |
Related MCP server: irail-mcp
Setup
Get a free API key at opendata.bkk.hu.
Add the server to your MCP client (requires uv).
Claude Code
git clone https://github.com/kukshaus/hu-transit-mcp.git
claude mcp add hu-transit -s user -e BKK_API_KEY=your-key \
-- uv --directory /path/to/hu-transit-mcp run hu-transit-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"hu-transit": {
"command": "uv",
"args": ["--directory", "/path/to/hu-transit-mcp", "run", "hu-transit-mcp"],
"env": { "BKK_API_KEY": "your-key" }
}
}
}On macOS you can keep the key out of config files and store it in the Keychain. The server reads it when BKK_API_KEY is not set:
security add-generic-password -s bkk-api-key -a "$USER" -w 'your-key'Example
departures("Budapest-Keleti", minutes=120)
09:20 S60 → Sülysáp
09:25 IC → Budapest-Nyugati
09:30 rjx → München Hbf
09:35 S80 → GödöllőLimits
Live predictions exist for buses, trams and trolleybuses. Metro and MÁV trains mostly show the timetable (
realtime: false).train_connectionslists direct trains only. For journeys with a change, useplan_trip.No ticket prices or sales. The API has none.
Development
uv sync
uv run pytestMagyarul
MCP-szerver a budapesti és magyarországi közösségi közlekedéshez: BKK metró, villamos, busz, troli és HÉV, MÁV-vonatok országosan (IC, EC és railjet Bécsbe és Münchenbe is), valamint Volánbusz. A hivatalos BKK FUTÁR API-t használja, csak olvas.
Kérdezd Claude-ot (vagy bármely MCP-klienst) például így:
„Mikor indul a következő M2 a Deák Ferenc térről?”
„Hogyan jutok el holnap 8-kor a Széll Kálmán térről a Nyugatihoz?”
„Van ma fennakadás az M3-on?”
„Milyen vonatok mennek a Keletiből Bécsbe a következő 2 órában?”
„Milyen vonatok mennek holnap Miskolcról Budapestre és vissza?”
Eszközök
Eszköz | Mit ad vissza |
| Megállók és állomások név szerint, járatokkal és koordinátákkal. Az állomások elöl |
| Indulási tábla: menetrend szerinti és valós idejű indulás, késés, kimaradás, üzemeltető. Szűrhető járatra ( |
| Útvonaltervezés két megállónév vagy |
| Két állomás közötti összes közvetlen MÁV-vonat egy teljes napra, mint egy menetrend. Országosan működik (Miskolc, Debrecen, Szeged, Pécs, Győr…). A |
| Aktuális forgalmi változások és zavarok (BKK és MÁV) angolul vagy magyarul, járatra szűrhető |
Telepítés
Igényelj ingyenes API-kulcsot az opendata.bkk.hu oldalon.
Add hozzá a szervert az MCP-kliensedhez (a fenti parancsok szerint, uv szükséges).
A kulcs a BKK_API_KEY környezeti változóból jön. macOS-en a Kulcskarikában is tárolhatod (security add-generic-password -s bkk-api-key -a "$USER" -w 'kulcs'), ekkor egyik konfigurációs fájlba sem kell beírni.
Korlátok
Valós idejű előrejelzés a buszokra, villamosokra és trolikra van. A metró és a MÁV-vonatok többnyire menetrend szerinti időt mutatnak (
realtime: false).A
train_connectionscsak közvetlen vonatokat listáz. Átszállásos utazáshoz aplan_tripvaló.Jegyár és jegyvásárlás nincs, az API ezt nem kínálja.
License
MIT. Not affiliated with BKK Zrt. or MÁV. Data © BKK Zrt. via BKK FUTÁR / opendata.bkk.hu.
Available Tools
5 toolsdeparturesDeparturesBRead-only
Departure board with live predictions, delays and cancellations.
Inputs: stop (required), line, limit, start, +1 more. Returns: object
find_stopFind StopBRead-only
Search stops and stations. Stations (which group several platforms) come first.
Inputs: query (required), limit. Returns: result
plan_tripPlan TripARead-only
Plan a public transport trip with walking, transfers and live delays.
Inputs: origin (required), destination (required), time, arrive_by, +1 more. Returns: object
service_alertsService AlertsBRead-only
Current disruptions, closures and diversions (BKK and MÁV).
Inputs: line, limit, language, include_future. Returns: object
train_connectionsTrain ConnectionsARead-only
All direct MÁV trains between two stations for a whole day, like a timetable. Use this for 'which trains go from A to B tomorrow'; use plan_trip for door-to-door routes with transfers.
Inputs: origin (required), destination (required), date, from_time, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct capability: stop lookup, departure board, door-to-door routing, intercity timetable, and disruption feed. The descriptions explicitly resolve the one plausible overlap (plan_trip vs train_connections) by stating when to use each, leaving no real ambiguity.
Two tools use verb_noun (find_stop, plan_trip) while three are bare noun phrases (departures, train_connections, service_alerts). The names are readable and conventional, but the convention is mixed rather than uniform.
Five tools is a tight, well-scoped surface for a transit query server. Every tool covers a genuinely different rider question and none feels redundant or filler.
The core lifecycle is covered: find a stop, see live departures, plan a route, look up intercity timetables, and check disruptions. Minor gaps exist (no arrivals board, no stop-detail/route listing for a station, no ticket or fare info), but agents can work around them.
Maintenance
Related MCP Connectors
Live Hungarian train positions, delays, rolling stock, and service search. No sign-in.
Read-only public transit departures, stop search, and city coverage for bus and train users.
Plan San Francisco and Bay Area transit trips and check upcoming stop departures. Free, no API keys.
Norwegian trains, buses and ferries: live trips and departures (Entur). Free, no key.
Related MCP Servers
- FlicenseDqualityDmaintenanceProvides access to Berlin's public transport data through the VBB API, enabling users to search stops, get departures, and plan journeys across Berlin-Brandenburg.36-
- AlicenseAqualityCmaintenanceProvides Belgian railway travel information via the iRail API, including station search, live departures/arrivals, route planning, and network disturbances.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying Swiss public transport (trains, buses, trams, boats) for stations, connections, and station boards via the opendata.ch API.-
- AlicenseNot gradedqualityCmaintenanceEnables read-only public-transport station lookup, journey routing with realtime annotations and generated Deutsche Bahn search links, plus current IRIS departure boards by EVA.MIT