
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:例の件名/場所/時間クエリ管理ポリシー。 - Discovery policy.example.json: ストップワードとトピック・トゥ・フローのヒントの発見ランキングポリシー。 - スクリプト/mcp fidelity sweep.py: 排気 MCP-vs-API の比較。 LLMは証明しません;管は忠実です。 - scripts/make area list.py: レジストリのコードリストからエリアの allowlist をビルドし、パターンが総計(M49)から国を分離しないregistries を構成します.
概要(AI 翻訳)
FastMCP で構築された SDMX レジストリ用の汎用 MCP サーバー。 SDMX REST API に [SDMX_BASE_URL] を設定し、含まれている例からレジストリ固有のポリシーを設定します。
このプロジェクトでは、LLM クライアントがフル ガイドされたデータ ジャーニーを実行できます。
- 代理店を選ぶ
- 被験者、場所、または時間によって発見
- ガイド付きインディケータファーストプランニングでデータフローを選択
- 寸法とコードリストの検査
- ランク候補指標
- SDMX
/dataのペイロードのためのCSVの輸送を用いる照会データ
このレポが含まれているもの
- [
server.py:MCPツールとSDMX統合ロジック。 - [
query_dimension_policy.example.json:例の件名/場所/時間クエリ寸法方針。 - [
discovery_policy.example.json:ストップワードとトピックにフローヒントの発見ランキングポリシー。 - [
scripts/mcp_fidelity_sweep.py: 排気MCP-vs-APIの比較。 LLMは証明しません;管は忠実です。 - [
scripts/make_area_list.py:パターンが総計(M49)から国を分離しないレジストリのコードリストからエリアの許可リストを構築します。 - [
scripts/sdmx_eval_build_cases_from_sweep.py:スイープの検証された地上の真理から引き寄せられた stratified Agent-eval ケース。 - `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"]
}
}
}