Server data from the Official MCP Registry
Istanbul İETT buses: stops, lines, timetables, live bus positions and place lookup.
About
Istanbul İETT buses: stops, lines, timetables, live bus positions and place lookup.
Security Report
Valid MCP server (3 strong, 2 medium validity signals). 1 known CVE in dependencies Package registry verified. Imported from the Official MCP Registry.
4 files analyzed · 2 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"iett-mcp": {
"command": "npx",
"args": [
"-y",
"iett-mcp@0.4.1"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
iett-mcp
An MCP server for Istanbul public transport. It lets AI assistants like Claude Code, Claude Desktop or Cursor answer questions about İETT bus stops and lines using live data from İETT's official web services.
You: I'm at İstanbul Lounge 2 Sitesi. When is the next bus to Halkalı Marmaray? Claude: (calls
find_route) Take the MR40 from Lale Şehir, about 300 m away, on the side marked "Bakırköy". The nearest bus is 3 stops away near Olympiakent, and its position was updated 15 seconds ago. The next one is 8 stops away.
No API key needed. İETT's data is public.
Tools
| Tool | What it does |
|---|---|
search_stops | Find bus stops by name, optionally within a district. Ignores Turkish accents and case, so kadikoy finds KADIKÖY. Returns stop code, direction, coordinates and accessibility. |
find_stops_near | Stops near a latitude/longitude, nearest first, with distance and a rough walking time. Lets users ask about a place ("near Taksim Square") instead of a stop name. |
find_place | Look up a place by name or address (a residential site, street, landmark) and get its coordinates from OpenStreetMap, limited to Istanbul. If the exact name finds nothing, it retries without generic words like "sitesi" or "evleri". Feeds find_stops_near, so users can say "I'm at İstanbul Lounge 2 Sitesi". |
find_route | Direct buses from one place to another: which line, where to board and get off, the walk at each end, how far the nearest live bus is, and estimated minutes for the walk, the ride and the bus's arrival. Each end can be a place name, a stop name, a stop code or coordinates. Only buses heading the right way count. When no line goes directly, or one change is clearly faster, it adds routes with one change of bus, at the same stop or one a short walk away; lines riding the same stops are merged ("125 or 500A"). Nothing slower than walking is suggested. |
get_line_info | Look up a line by code (500T, 25G) or find lines by the places in their route name (Sarıyer Taksim). Returns the route ends, length, typical trip time and fare type. |
get_line_stops | List a line's stops in travel order, for each direction. Optional toward returns only the direction heading to a place. Codes match loosely, so 78s finds 78Ş. |
get_live_buses | Where a line's buses are right now, placed on the route by their nearest stop. With stop_code, lists only the buses still heading to that stop and how many stops away each one is. |
get_disruptions | Current İETT announcements: cancelled trips ("the 17:50 from Bostancı won't run") and notices such as detours and road closures. Filter by line, by a place or street named in the notice, or by kind. |
get_timetable | Scheduled departures from each direction's first stop: today's next buses with the wait, first and last bus, or a whole day grouped by hour, for weekdays, Saturdays or Sundays. Departures İETT has announced as cancelled today are marked, and the next buses listed are ones that run. |
All tools are read-only.
Setup
Needs Node.js 18.18 or newer. npx downloads and runs the server, so there's nothing to install.
Claude Code:
claude mcp add iett -- npx -y iett-mcp
Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json):
{
"mcpServers": {
"iett": {
"command": "npx",
"args": ["-y", "iett-mcp"]
}
}
}
From source:
git clone https://github.com/mohamedzeina/iett-mcp.git && cd iett-mcp
npm install
npm run build
claude mcp add iett -- node /absolute/path/to/iett-mcp/dist/index.js
If you open Claude Code inside the cloned folder, it picks up the server from .mcp.json automatically. That version runs from source, so you don't need to build first.
How it works
AI assistant ──MCP (stdio)──► server.ts ──► search.ts (local, accent-insensitive search)
│
└──► iett/client.ts (12h in-memory cache)
└──► iett/soap.ts ──SOAP/XML──► api.ibb.gov.tr/iett
- The upstream API is SOAP. İETT exposes ASP.NET
.asmxservices. Some return a JSON string inside the XML envelope; the stop-detail service returns an XML DataSet.soap.tsbuilds the envelope (with input escaped), parses both response styles, turns SOAP faults into readable errors, and retries network errors and 5xx responses. - Download once, search locally. İETT can't search by name, so the full lists (~15k stops, ~800 lines, about 3.7 MB) are fetched on the first call and cached for 12 hours. Each line's stop list is cached the same way. A failed download is never cached.
- Routes are found locally.
find_routedownloads every line's ordered stops in one request (~82k rows, ~14 s), cached like the stop list, then checks which lines pass a stop near the start and, later in the same direction, a stop near the end.route.tsdoes that in one pass per line direction; with no direct line, a forward and a backward pass find every stop reachable from each end, and those are joined at shared or nearby stops for one change of bus. Property tests check both against brute-force searches. Ride times come from distance along the route and each line's typical round-trip time. Both ends are resolved while the download runs, so bad input fails fast. - Live data has a quota. İETT's fleet service allows about 100 requests per hour. Live positions are cached for 30 seconds per line, every call goes through a 90-per-hour sliding-window budget (
rateLimit.ts), and failed calls aren't retried. When the budget runs out, the tool says when live data will be back. - Positions mean more on the route. A raw GPS point says little.
live.tsmatches each bus's nearest stop against the line's stop list, so the tool can say "5 stops away" and flag reports older than 5 minutes. - Service days run past midnight. A line's day can run from 05:40 to 00:20, and night lines run 23:40 to 05:20.
schedule.tsuses İETT's listing order, where a jump back of more than 12 hours marks midnight, so "next bus" stays right after midnight. It also checks the previous day's late departures. A "largest gap" rule would fail for lines that only run mornings and evenings. - Turkish-aware matching. İETT's data mixes spellings ("Kadiköy", "Sisli", "ŞİŞLİ"), and users type without Turkish characters.
text.tslowercases with Turkish rules (İ→i, I→ı) and strips accents, so every spelling matches. - Place names go through OpenStreetMap.
geocode.tscalls Nominatim within Istanbul's bounds. Its usage policy allows 1 request per second, so requests are queued about 1.1 s apart and results are cached for 24 hours. Small residential sites may be missing from OSM; the tool then suggests trying the neighbourhood or asking for coordinates. - Errors the model can act on. When İETT is down, tools return
isErrorwith a message the assistant can explain, instead of crashing.
Development
npm run dev # run the server from source
npm test # unit, property, MCP protocol and stdio tests (İETT is faked from fixtures)
npm run smoke # quick live check against the real İETT service
npm run audit # live sweep: every tool against a random sample of real lines
npm run inspect # open the MCP Inspector to call tools by hand
The tests are layered:
- Unit tests use small, real İETT responses as fixtures.
- Protocol tests connect a real MCP client to the server, covering tool registration, input validation and response format.
- Robustness tests inject bad conditions: İETT outages and recovery, truncated/HTML/binary responses, 30 concurrent calls on a cold cache, and wrongly typed arguments on every tool.
- Stdio tests launch the real process and check that stdout carries only JSON-RPC and survives garbage input.
- Property tests (fast-check) check rules that must always hold, using generated inputs.
FC_NUM_RUNS=20000 npm testruns about 240k cases. npm run auditruns every tool against real lines and checks that the answers are consistent. For example, every bus on a route must count as heading to its final stop.
Releasing
npm version patch # or minor / major: bumps package.json and server.json, commits, tags
git push --follow-tags # the tag runs .github/workflows/release.yml
The release workflow checks the tag matches both files, runs the tests, publishes to npm with trusted publishing (no token stored; the package gets a provenance attestation), then updates the MCP registry using GitHub's OIDC login.
Data
Data comes from İETT via the İBB Open Data Portal. Place lookups use Nominatim; place data © OpenStreetMap contributors, ODbL. This project is not affiliated with İETT, İBB or OpenStreetMap.
License
MIT
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
