izmirmcp
Supplies OpenStreetMap-derived reference points and geospatial context used for place resolution and nearby searches across İzmir transit and city-service tools.
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.
izmirmcp
A read-only Model Context Protocol server that gives AI agents trustworthy access to İzmir's open city data.
Language: English · Türkçe
Contents
Related MCP server: Calgary Open Data MCP Server
English
This README is the primary English document; a full Turkish version is in README.tr.md.
Why izmirmcp
36 tools across transit, city services, water, environment and the open-data catalog.
One envelope for every answer:
ok,summary,data,freshness,sources,limits,warnings,next_queries,error,result_info(contract).Honest failures: an unavailable upstream is a typed error (
source_unavailable,source_timeout,source_rate_limited), never silently empty data.Hardened HTTP surface: body caps, rate limits, API keys, Origin allowlist, structured logs.
Stable contract: tool names and schemas only change additively (policy).
Quick start
uvx (PyPI, from v0.1.0):
uvx izmir-mcp stdioDocker / GHCR:
docker run --rm -i ghcr.io/zexy2/izmir-mcp python -m app.stdio # stdio
docker run -p 8000:8000 -v izmir-data:/data ghcr.io/zexy2/izmir-mcp # HTTP on /mcp/From source:
python3.11 -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m app.stdio # or: python -m app.main (Streamable HTTP, http://127.0.0.1:8000/mcp/)Generic stdio config (most clients use this mcpServers shape):
{
"mcpServers": {
"izmir": { "command": "uvx", "args": ["izmir-mcp", "stdio"] }
}
}Client | Config location | Guide |
OpenAI Codex CLI |
| |
Claude Code |
| |
Claude Desktop |
| |
Cursor |
| |
VS Code / Copilot |
| |
Zed |
| |
Gemini CLI |
| |
Cline |
|
More options: install guide, client setup guides (TR).
Tools
Full input/output contracts: tool reference.
Transit
Tool | Purpose |
| Metro, İZBAN, İZDENİZ stations and piers |
| Published metro/İZBAN/İZDENİZ timetables |
| Tram lines |
| Tram stations and headways for a line |
| Search ESHOT stops by name or location |
| Buses approaching a stop (live) |
| Approaching buses of one line at a stop |
| Live bus positions on a line |
| Scheduled GTFS departures (not live ETA) |
| ESHOT route summary and stop sequences |
| Local GTFS store status and calendar window |
| ESHOT, Metro and İZDENİZ notices |
| İZBAN fare between two stations |
| Direct public-transport options between two places |
| All transport options near a point |
| Arterial speed/duration history (not live) |
| Traffic camera locations (no stream) |
| İZELMAN parking tariffs |
City services
Tool | Purpose |
| Parking, on-duty pharmacies, stations, stops, taxis, chargers nearby |
| WiFi, İzmirim Kart top-up points, libraries |
| All pharmacies, not only on-duty |
| District market calendar |
| Wholesale market prices |
| Culture and arts events |
| Neighbourhood population and buildings |
| Allowlisted İBB GIS layers |
Water
Tool | Purpose |
| İZSU dam levels and outage feed status |
| Dam status by date and dam name |
| İZSU water production snapshot |
Environment
Tool | Purpose |
| Air-quality measurements by date and station |
Data & server
Tool | Purpose |
| Local readiness and published limits |
| Search the İzmir Open Data (CKAN) catalog |
| Dataset metadata and resources |
| DataStore resource columns |
| Filtered DataStore records (no SQL) |
| One safe SELECT over a local copy |
Prompts and resources
Workflow prompts:
gunun_ozeti,veri_kesfi,toplu_ulasim,otobus,pazar_ve_duyurular,sehir_hizmetleri,nobetci_eczane,rota_karsilastir,bugun_ne_yapsam,su_durumu_raporu,eczane_ve_ulasim,sehir_simdi.Resources:
izmir://coverage,izmir://sources,izmir://schema/catalog,izmir://reference/fares,izmir://reference/lines.
See MCP interface.
Example conversations
"Konak to Karşıyaka: ferry, metro + İZBAN or bus — which is faster and cheaper?"
"Is there a market in Bornova today, and how are air quality and transport notices?"
"Any water outage in Buca, and how full are the dams?" (the İZSU outage API sometimes returns 500; the agent sees a typed error)
"On-duty pharmacy in Karşıyaka and buses arriving at the nearest stop?"
"What is the state of İzmir right now for transport, air and water?"
Architecture
flowchart LR
C[MCP client] -->|stdio / Streamable HTTP| S[izmirmcp server]
S --> G[HTTP guards: auth, rate limit, Origin]
S --> T[36 tools + resources + prompts]
T --> V[services: envelope, freshness, typed errors]
V --> K[connectors + cache]
V --> L[(local SQLite: GTFS, DataStore copies)]
K --> U[İzmir open data: CKAN, openapi.izmir.bel.tr, ESHOT, İZSU, İZDENİZ]Configuration
All settings are IZMIR_MCP_* environment variables. Before exposing HTTP publicly, set
IZMIR_MCP_API_KEYS, IZMIR_MCP_REQUIRE_AUTH=true and IZMIR_MCP_ALLOWED_HOSTS.
See configuration and deployment.
Health endpoints: /healthz, /readyz (never checks upstream), /status (monitoring).
Data sources and disclaimer
Data comes from İzmir Büyükşehir Belediyesi open data (CKAN and openapi.izmir.bel.tr), ESHOT,
İZSU, İZBAN, İZDENİZ and İzmir Metro; reference points are © OpenStreetMap contributors (ODbL 1.0).
Status per source: sources, reachability.
Known gaps (no live traffic index, no İZBAN notice feed, GTFS calendar expiry): limits.
This is an unofficial project. Data may be stale or incomplete; verify critical information (e.g. pharmacies by phone) with the publishing institution. Public access does not imply a data licence.
Security
Report vulnerabilities privately: SECURITY.md. Threat model: docs/security.md; scan results: docs/development/reports/security-report.md.
Contributing
See CONTRIBUTING.md and the Code of Conduct. Tests run offline:
.venv/bin/python -m pytest -q (development).
Documentation
Response contract · Tool reference · MCP interface · Deployment · Configuration · Data sources · Source reachability · Monitoring · Privacy · Security / threat model · Security report · API access · Browser and CORS · Local SQL · Place resolution · GTFS schedule · Registry · Tool migration policy · Development · Limits · Install (EN) · Install (TR) · Launch drafts
License and acknowledgements
Code is released under the MIT License.
The architecture, the response envelope and several resilience components are adapted from istanbulmcp by Kerim Batuhan Baran (MIT). Some endpoint references follow IzmirMCP and izmir-open-data-py (Apache-2.0). Full notices, including the list of adapted files: NOTICE. City data licences belong to the publishing institutions.
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
Turkey data API for AI agents: 40 tools + search/call for 230+ endpoints. Addresses (provinces, districts, postal codes, boundaries), validation (IBAN, tax ID/VKN, TCKN, phone, barcode), tax and salary calculators, Official Gazette, exchange rates, gold, crypto, economic indicators, prayer times, holidays and business days, weather, air quality, earthquakes, dam levels, fuel prices, EV charging, power outages, tolls, pharmacies on duty, football standings. Turkish JSON, free plan.
Read-only Istanbul open city data: transport, parking, water, nearby services and datasets.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Public Data Ukraine Mcp connects AI agents to real public APIs via MCP. Tools include
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to İzmir's public transportation data, including bus locations, schedules, and route information for ESHOT, İZBAN, Metro, and Tram services. It enables AI assistants to perform transit queries, calculate fares, and locate nearby stations using the Model Context Protocol.30 npm1ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, explore, and query Calgary's open data portal using SoQL, with tools for dataset discovery, metadata inspection, and data querying.MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI agents with live, structured access to Singapore government open data including weather, transport, property, and company registry via 35 well-described tools.1-
- AlicenseAqualityBmaintenanceEnables AI assistants to query Turkey's public data, including central-bank FX rates, earthquake catalog, weather forecasts, public holidays, and offline validation of Turkish ID, tax, and IBAN numbers, with sourced and timestamped responses.4488 npm1MIT