hu-transit-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Trips, departures, alerts and vehicles for NYC, DC and the SF Bay Area.
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-
- AlicenseAqualityDmaintenanceProvides Belgian railway travel information via the iRail API, including station search, live departures/arrivals, route planning, and network disturbances.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying nearby stations and departure boards using the RMV public transport API.1-
- FlicenseNot gradedqualityDmaintenanceEnables querying Swiss public transport (trains, buses, trams, boats) for stations, connections, and station boards via the opendata.ch API.-