MEDAS MCP
MEDAS MCP (noch in Entwicklung!)
MCP-Server für TÜİK MEDAS (Indikatoren des türkischen Statistikinstituts).
Funktionen
92 Themen — alle statistischen Kategorien von TÜİK
400+ Indikatoren — sofort gecacht, Live-Fallback verfügbar
Dynamische Erkennung — 0 fest verdrahtete Widget-IDs, passt sich UI-Änderungen an
Cache-first —
list_topics/get_indicators/downloadalle <50ms aus dem CacheBinäres XLS — xlwt-CDFV2-Excel-Ausgabe (gleiches Format wie MEDAS pivot.xls)
Intelligentes Cascading — wählt automatisch Pflicht-Aufschlüsselungen aus (COICOP, SITC, etc.)
ZK-Widget-API — robuste kırılım-Behandlung über
zk.Widget.$().fire()
Related MCP server: turkiye-veri-mcp
Installation
pip install playwright xlwt httpx
playwright install chromiumOder mit uv:
uv pip install -e .
playwright install chromiumVerwendung
Als MCP-Server (stdio)
python server.pyPi-Integration
Hinzufügen zu ~/.pi/config.json:
{
"extensions": {
"medas": {
"command": "python",
"args": ["/path/to/medas_mcp/server.py"],
"cwd": "/path/to/medas_mcp"
}
}
}Claude Desktop
{
"mcpServers": {
"medas": {
"command": "python",
"args": ["/path/to/medas_mcp/server.py"]
}
}
}Tools
Tool | Beschreibung | Geschwindigkeit |
| Listet 92 TÜİK-Themen | <50ms (Cache) |
| Indikatoren und Cascading-Zweige abrufen | <50ms (Cache) |
| XLS/CSV-Bericht herunterladen | <50ms Cache / ~12s live |
Beispielablauf
1. list_topics("fiyat") → [{index:78, label:"Tüketici Fiyat Endeksi"}]
2. get_indicators(78) → {count:12, indicators:[...]}
3. download(78, format="xls") → /tmp/MEDAS_Tüketici_Fiyat_Endeksi_20260820.xlsArchitektur
AI Agent ⇄ MCP (stdio) ⇄ server.py ⇄ medas_client.py
├─ cache (data/*.json) → instant
└─ Playwright (live=true) → ZK AU protocolCache vs. Live
Modus | Quelle | Geschwindigkeit | Daten |
|
| <50ms | Indikatornamen + Mock-Werte |
|
| ~12s | Echte MEDAS-Pivot-Tabelle |
Dateien
medas_mcp/
├── server.py # MCP server (3 tools)
├── medas_client.py # Hybrid client (cache + live Playwright)
├── KNOWHOW.md # ZK AU protocol traffic notes
├── AGENTS.md # AI agent instructions
├── README.md # This file
├── pyproject.toml # Package metadata
├── .gitignore
└── data/
├── topic_mapping.json # 92 topics with URLs
├── topic_gosterge.json # Indicators + cascading branches
└── medas_unified.json # Unified datasetZK-AU-Protokoll
POST /medas/zkau;jsessionid=XXXmitdtid+ gebündeltencmd_n=onSelect/onClickWidget-IDs ändern sich in jeder Sitzung — werden dynamisch über das DOM erkannt
Cascading:
zk.Widget.$('#selectId').fire('onSelect', {items:[itemId], reference:itemId})
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Macroeconomic and other official data from 170+ publishers, resolved from natural language with provenance.
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
Macro indicators from World Bank, FRED, IMF, and OECD via unified query surface.
Query 29,500+ World Bank development indicators for 200+ countries across 60+ years.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables querying Turkish economic data (inflation, FX rates, policy rates, etc.) from TCMB EVDS via curated tools, preventing LLM hallucination.6-
- AlicenseAqualityBmaintenanceProvides unified access to Turkish official data from TÜİK (statistics via SDMX) and TCMB EVDS (financial series), enabling search, query, and tidy CSV export with full frequency, aggregation, and formula support.161MIT
- AlicenseAqualityAmaintenanceMCP server that unifies official Turkish open data sources into a single interface, letting AI agents query and compare normalized indicators like population, inflation, and GDP through natural language.10MIT
- AlicenseAqualityAmaintenanceEnables 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.4493 npm1MIT