Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

İETT Istanbul Buses

Latest version: v0.4.1

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
MCP server Transport: stdio Publisher: mohamedzeina
0 Stars
0 Forks
6 Versions
TypeScript Repo language

Scan summary

İETT Istanbul Buses was last scanned on 30 Nov 2026 at version 0.4.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published on 30 Nov 2026.
  • Findings: No rules fired in version 0.4.1.
  • MCP server: Runs over stdio.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.1 LATEST 30 Nov 2026 No rules fired
0.4.0 30 Nov 2026 No rules fired
0.3.0 30 Nov 2026 No rules fired
0.2.0 30 Nov 2026 Not shown
0.1.2 30 Nov 2026 Not shown

No rules fired in 0.4.1

Findings

Findings for v0.4.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

iett-mcp

CI

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 .asmx services. Some return a JSON string inside the XML envelope; the stop-detail service returns an XML DataSet. soap.ts builds 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_route downloads 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.ts does 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.ts matches 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.ts uses İ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.ts lowercases with Turkish rules (İ→i, I→ı) and strips accents, so every spelling matches.
  • Place names go through OpenStreetMap. geocode.ts calls 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 isError with 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 test runs about 240k cases.
  • npm run audit runs 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

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • MCP Registry io.github.mohamedzeina/iett-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229