mcp-turkiye is an open-source project that aims to provide Turkey's public data to AI assistants in a unified way through an MCP (Model Context Protocol) server. It supports MCP-compatible clients such as Claude Desktop, Cursor, VS Code, and Cline, allowing users to query various types of real-time data in natural language.
Main capabilities include:
- Financial data: Central Bank of the Republic of Turkey (TCMB) exchange rates, EVDS statistical service (more than 40,000 series such as inflation and interest rates), Istanbul Stock Exchange daily share prices, and cryptocurrency lira prices.
- Disasters and meteorology: AFAD and Kandilli earthquake catalogs, and Turkish State Meteorological Service (MGM) weather observations, forecasts, and warnings.
- Everyday services: fuel prices, Istanbul real-time traffic index, on-duty pharmacies (Istanbul, Izmir), İSPARK parking lot occupancy rates, Istanbul air quality, Istanbul metro lines/stations/announcements, and Izmir ESHOT real-time buses and wholesale food prices.
- Open data and legislation: open data portals of Istanbul, Izmir, Konya, and Gaziantep (search, datasets, DataStore rows), the Official Gazette daily index and full article text, and mevzuat.gov.tr legislation search and article-level text.
- Other information: public holidays, ÖSYM exam calendar, official parameters (minimum wage, SGK base/ceiling), population/area/license plate information for 81 provinces and 973 districts, and AA and TRT news headlines.
- Validation tools: TCKN, VKN, and IBAN format validation (only computes check digits and does not query any institution).
Usage:
- Local installation: requires Node.js 20+, run via npx. Add the mcpServers configuration in claude_desktop_config.json for Claude Desktop or in .cursor/mcp.json or .vscode/mcp.json for Cursor/VS Code. Cline can be installed by following the instructions in llms-install.md.
- Remote server (Docker): the image is published at ghcr.io/berkantacun/mcp-turkiye, with a built-in Streamable HTTP endpoint (dist/http.js), provided at the /mcp pathSame tools. Stateless, can run multiple replicas. Can also run without Docker: npm run build && HOST=127.0.0.1 PORT=8080 node dist/http.js. GET /health returns 200 without a key. Request bodies over 1 MB return 413. On SIGTERM, stops accepting new connections and completes existing requests within at most 10 seconds.
- Connecting claude.ai / Claude Desktop remote server: you must deploy your own HTTPS publicly accessible server at https://<domain>/mcp, with Streamable HTTP transport. Anthropic egress IP range 160.79.104.0/21 must be allowed. Free/Pro/Max users add via Customize → Connectors → Add custom connector; Team/Enterprise owners add via Organization settings → Connectors → Add → Custom → Web. If an API key is required (MCP_TURKIYE_API_KEY), set x-api-key in the request header (beta feature, available to some organizations); otherwise Claude cannot send X-API-Key, and a server with a key will return 401. Authentication settings cannot be changed after being added.
- EVDS key: visit https://evds3.tcmb.gov.tr to register (email verification), after logging in click "Profilim" under the username, and at the bottom of the page click "API Key Kopyala", then configure the key as an environment variable. The key is used only for the key header of EVDS requests and does not appear in responses, logs, or URLs. EVDS returns at most 150 observations per request.
Design features:
- Every response includes an envelope indicating the data source institution and full URL, as well as the retrieval time (alindi). If the source does not respond, the tool returns an error and does not generate estimates.
- Data is fetched in real time, with only a small amount of short-term caching (traffic 1 minute, earthquakes 1 minute, exchange rates 5 minutes, weather 10 minutes, fuel 30 minutes).
- No key or registration required (except EVDS).
- Friendly to public servers: requests have timeouts, 5xx is retried once, 4xx is not retried, and identical URLs are briefly cached.
- Contract tests run weekly against real endpoints (npm run test:live), and CI fails when formats change.
- Does not process personal data and does not include sources requiring login or personal data (such as NVI identity verification, e-Nabız, e-Devlet).
Use cases: querying real-time public information such as Turkish exchange rates, inflation, earthquakes, weather, traffic, regulations, holidays, exam schedules, stock prices, etc., suitable for developers, researchers, and AI assistant users who need Turkish data.
Limitations:
- The project is independent and is not an official service of any government agency.
- The code is MIT licensed, and data sources each have their own terms of use (see SOURCES.md); use is subject to the acceptable use policy.
- Validation tools only verify format and do not guarantee that a number actually exists.
- The Konya open data portal rejects IPs outside Turkey; on overseas cloud servers, acikveri_* tools will error for Konya, while other sources work normally.
- When deployed remotely, if run without a key, the server becomes an open proxy; it is recommended to at least restrict the firewall to allow only Anthropic IP ranges.
- Rate limits are in-memory and independent per replica; with multiple replicas, the total limit is multiplied by the number of replicas.
- In claude.ai and Desktop, a single tool call lasts at most 240 seconds, with a result limit of about 150,000 characters.
- Servers listening only on 127.0.0.1 or localhost cannot connect to claude.ai (Anthropic servers cannot reach them), but Claude Code can connect from the local machine.
- Future additions may include İETT, dam water levels, TFF standings, EPDK electricity prices, GİB tax calendar, etc.; Diyanet prayer times are on hold because they require an official API key.