Skip to main content
Glama
bluedragonDC

MEDAS MCP

by bluedragonDC

{"type": "text"}# MEDAS MCP (В разработке!)

MCP-сервер для TÜİK MEDAS (показатели Турецкого статистического института).

Возможности

  • 92 темы — все статистические категории TÜİK

  • 400+ показателей — мгновенное кэширование, доступен резервный режим live

  • Динамическое обнаружение — 0 жестко заданных ID виджетов, адаптация к изменениям интерфейса

  • Сначала кэшlist_topics/get_indicators/download все <50 мс из кэша

  • Двоичный XLS — вывод xlwt CDFV2 Excel (тот же формат, что и MEDAS pivot.xls)

  • Умный каскад — автоматический выбор обязательных разбивок (COICOP, SITC и т. д.)

  • ZK Widget API — надежная обработка разбивки через zk.Widget.$().fire()

Related MCP server: evds-mcp-server

Установка

pip install playwright xlwt httpx
playwright install chromium

Или с помощью uv:

uv pip install -e .
playwright install chromium

Использование

Как MCP-сервер (stdio)

python server.py

Интеграция с Pi

Добавьте в ~/.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"]
    }
  }
}

Инструменты

Инструмент

Описание

Скорость

list_topics(search?)

Список 92 тем TÜİK

<50 мс (кэш)

get_indicators(topic_index)

Получить показатели + каскадные ветви

<50 мс (кэш)

download(topic_index, indicators?, format?, save_path?, live?)

Скачать отчет XLS/CSV

<50 мс кэш / ~12 с live

Пример

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.xls

Архитектура

AI Agent  ⇄  MCP (stdio)  ⇄  server.py  ⇄  medas_client.py
                                            ├─ cache (data/*.json) → instant
                                            └─ Playwright (live=true) → ZK AU protocol

Кэш и Live

Режим

Источник

Скорость

Данные

live=false (по умолчанию)

кэш data/*.json

<50 мс

Названия показателей + фиктивные значения

live=true

POST /medas/zkauGET /pivot.xls

~12 с

Реальная сводная таблица MEDAS

Файлы

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 dataset

Протокол ZK AU

  • POST /medas/zkau;jsessionid=XXX с dtid + пакетные cmd_n=onSelect/onClick

  • ID виджетов меняются при каждом сеансе — определяются динамически через DOM

  • Каскадирование: zk.Widget.$('#selectId').fire('onSelect', {items:[itemId], reference:itemId})

Лицензия

MIT

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables users to search and access Turkish public procurement data from EKAP v2 portal. Provides comprehensive tender search, detailed tender information, announcements, and authority/classification code lookups through natural language interactions.
    12
    94
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Enables querying Turkish economic data (inflation, FX rates, policy rates, etc.) from TCMB EVDS via curated tools, preventing LLM hallucination.
    6
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables querying Kosovo Agency of Statistics (ASKdata) data through PxWeb. Supports navigating subjects, exploring table metadata, and fetching data via natural language or direct tool calls.
    4
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides 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.
    16
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Macro indicators from World Bank, FRED, IMF, and OECD via unified query surface.

  • Macro data for AI agents: GDP, inflation, unemployment & trade, any country. No API keys.

  • Query 29,500+ World Bank development indicators for 200+ countries across 60+ years.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bluedragonDC/medas_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server