
unicef-drp/sdmx-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
sDMX 등록을위한 MCP
개요
FastMCP로 내장된 SDMX 레지스트리용 MCP 서버. SDMX BASE URL을 SDMX REST API로 설정하고 포함 된 예에서 레지스트리 특정 정책을 구성합니다. 이 프로젝트는 LLM 클라이언트가 전체 가이드 데이터 여행을 할 수 있도록합니다. - 선택 기관 - 주제, 위치, 또는 시간에 의해 발견 - 가이드 된 지표 - 첫 번째 계획을 통해 데이터 흐름을 선택 - 차원 및 코드 목록을 검사 - 순위 후보 지표 - SDMX / 데이터 페이로드에 대한 CSV 운송과 쿼리 데이터 - server.py: MCP 도구 및 SDMX 통합 논리. - query dimension policy.example.json: 예제 제목/위치/시간 쿼리-dimension 정책. - discovery policy.example.json: example stopwords 및 화제-to-flow hints에 대한 순위 정책 발견. - scripts/mcp fidelity sweep.py: 배기 MCP-vs-API 비교. LLM 없음; 관은 충실합니다. - scripts/make area list.py: 레지스트리 코드 목록에서 영역 허용 목록을 구축, 패턴이 집계 국가에서 분리되지 않는 레지스트리 (M49).
개요(AI 번역)
FastMCP로 내장된 SDMX 레지스트리용 MCP 서버. SDMX REST API에 SDMX_BASE_URL을 설정하고 포함 된 예에서 레지스트리 특정 정책을 구성합니다.
이 프로젝트는 LLM 클라이언트가 전체 가이드 데이터 여행을 할 수 있도록:
- 선택 기관
- 주제, 위치, 또는 시간의 발견
- guided Indicator-first 계획을 통해 dataflow를 선택하십시오.
- 치수 및 코드 목록 검사
- 순위표
- SDMX에 대한 CSV 전송과 쿼리 데이터
/data페이로드
이 Repo 포함
server.py: MCP 도구 및 SDMX 통합 논리.query_dimension_policy.example.json: example subject/location/time query-dimension policy.discovery_policy.example.json: example discovery ranking policy for stopwords and topic-to-flow hints.scripts/mcp_fidelity_sweep.py: 배기 MCP-vs-API 비교. LLM 없음; 관은 충실합니다.scripts/make_area_list.py: 레지스트리 코드 목록의 영역 수당을 구축, 패턴이 집계 국가에서 분리되지 않는 레지스트리 (M49).scripts/sdmx_eval_build_cases_from_sweep.py: 청소의 검증된 지상 진실에서 그려진 stratified 대리인 타원형 케이스.- `scripts/agent test rig입니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
SDMX MCP
Generic MCP server for SDMX registries built with FastMCP. Set SDMX_BASE_URL to your SDMX REST API and configure registry-specific policies from the included examples.
This project lets an LLM client do a full guided data journey:
- pick agency
- discover by subject, location, or time
- select a dataflow through guided indicator-first planning
- inspect dimensions and codelists
- rank candidate indicators
- query data with CSV transport for SDMX
/datapayloads
What This Repo Contains
server.py: MCP tools and SDMX integration logic.query_dimension_policy.example.json: example subject/location/time query-dimension policy.discovery_policy.example.json: example discovery ranking policy for stopwords and topic-to-flow hints.scripts/mcp_fidelity_sweep.py: exhaustive MCP-vs-API comparison. No LLM; proves the pipe is faithful.scripts/make_area_list.py: builds an area allowlist from a registry codelist, for registries where no pattern separates countries from aggregates (M49).scripts/sdmx_eval_build_cases_from_sweep.py: stratified agent-eval cases drawn from the sweep’s verified ground truth.scripts/agent_test_rig.py: direct tool-call harness that simulates an agent workflow.scripts/sdmx_eval_runner.py: generic SDMX eval harness for case generation, provider execution, and grading.scripts/sdmx_eval_model_sweep.py: runs one manifest across many models and tabulates accuracy against measured cost, per stratum. Resumable.scripts/sdmx_eval_refresh_ground_truth.py: re-reads expected values from the live registry. Run it immediately before grading, every time.scripts/sdmx_eval_normalise_claims.py: applies claim recovery to response files already collected, so a harness fix can be applied retroactively.scripts/sdmx_eval_consolidate.py: gathers runs from several directories into one, refusing to pair grades with responses from a different run.scripts/sdmx_eval_stats.py: per-model accuracy, Wilson intervals, measured cost, token profile and tool-error classification.scripts/sdmx_eval_pooled.py: per-stratum pass rates and the spread across models — the difficulty gradient.scripts/sdmx_eval_variance.py: how far a figure moves across identical repeat runs, and which serving host answered.scripts/sdmx_eval_config.example.json: example config for deterministic case generation and provider runs.scripts/sdmx_eval_provider_anthropic.py: Anthropic Messages API adapter using Anthropic’s MCP connector.scripts/sdmx_eval_provider_template.py: stdin/stdout adapter template for wiring any LLM+MCP stack into the eval harness.scripts/list_theme_prefixes.py: helper to inspect dataflow ID prefixes.theme_prefixes_domain.csv: optional example prefix-to-domain mapping for grouping. SetSDMX_THEME_PREFIX_CSVto use it.paper/: source for the written report and the deck, built from one markdown file so the two cannot disagree. Seepaper/README.md.
설치
npx -y mcp-remote https://<your-app>.fly.dev/mcp설정
{
"mcpServers": {
"sdmx": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://<your-app>.fly.dev/mcp"]
}
}
}