Skip to main content
Glama
Edouard-Legoupil

UNHCR Open Data Gateway MCP

UNHCR Open Data Gateway MCP

一个基于 FastMCP 的网关,用于聚合和规范化来自 UNHCR 领域特定 MCP 服务器的数据。

🎯 目的

UNHCR Open Data Gateway MCP 提供了一个统一接口,用于访问 UNHCR 在三个独立 MCP 服务器上的开放数据:

  • Statistics MCP:人口和流离失所数据的权威来源

  • RDF MCP:社会经济指标和背景数据集的权威来源

  • IATI MCP:预算、捐款和财务透明度数据的权威来源

Related MCP server: data-bs-mcp

🏗️ 架构

该网关遵循联邦网关模式

                    AI Client
                         |
                         v

            +----------------------+
            |  Open Data Gateway   |
            |       FastMCP        |
            +----------------------+

                 /      |      \

                /       |       \

               v        v        v

        +---------+ +---------+ +---------+
        | Stat    | | RDF     | | IATI    |
        | MCP     | | MCP     | | MCP     |
        +---------+ +---------+ +---------+

                   ^
                   |
                   |
          Reference Layer
          (Canonical Entities)

核心原则

  1. 领域 MCP 所有权:每个领域 MCP 拥有其数据

  2. 网关拥有体验:网关处理聚合、组合、发现和分析

  3. 领域 MCP 独立性:领域 MCP 从不直接相互调用

  4. 规范参考层:防止国家/行动定义重复

🚀 快速开始

安装

# Clone the repository
git clone <repository-url>
cd unhcr-opendata-gateway-mcp

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

配置

创建一个 .env 文件:

STAT_MCP_ENDPOINT=http://localhost:8001
RDF_MCP_ENDPOINT=http://localhost:8002
IATI_MCP_ENDPOINT=http://localhost:8003
LOG_LEVEL=INFO

运行服务器

# Run in STDIO mode
python -m src.unhcr_opendata_gateway.app

🛠️ 使用

可用工具

工具

描述

参数

country_snapshot

国家的综合快照

country, year

operation_snapshot

行动的综合快照

operation, year

funding_gap_analysis

计算资金缺口和每难民指标

country, year

funding_per_refugee

计算每难民资金指标

country, year

compare_countries

比较两个国家在所有领域的情况

country_a, country_b, year

search_datasets

在所有 MCP 中搜索数据集

query, country, region, topic, dataset

list_all_datasets

列出所有可用数据集

-

generate_country_brief

生成综合简报

country, year

示例查询

# Get a country snapshot
result = await country_snapshot(country="Uganda", year=2023)

# Calculate funding gap
result = await funding_gap_analysis(country="Chad", year=2023)

# Compare two countries
result = await compare_countries(country_a="Uganda", country_b="Kenya", year=2023)

# Generate a briefing note
result = await generate_country_brief(country="Sudan", year=2023)

📊 功能

  • 国家规范化:处理 ISO3、ISO2、名称、别名、“X 共和国”变体

  • 跨领域分析:每难民资金缺口、每难民预算等

  • 优雅降级:当某些 MCP 不可用时返回部分数据

  • 缓存:基于 TTL 的缓存,可配置过期时间

  • 可观测性:结构化日志、指标、OpenTelemetry 追踪

📄 许可证

Apache License 2.0

🙏 支持

如有问题或疑问,请联系 UNHCR 数据团队。

A
license - permissive license
Not graded
quality - not tested
B
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

  • F
    license
    A
    quality
    C
    maintenance
    MCP server for querying Huwise/Opendatasoft data portals. Enables dataset search, metadata retrieval, record filtering with ODSQL, and data export.
    5
    2
  • A
    license
    Not graded
    quality
    D
    maintenance
    Unified MCP server for discovering open datasets across Hugging Face, Zenodo, and Kaggle, with ranked search results and one-click Colab starter code generation.
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Unifies 24 Dutch public-sector data sources into a single MCP interface, enabling AI assistants to search, combine, and retrieve structured data with provenance and cross-source linking.
    64
    11
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • This MCP server provides seamless access to Malaysia's government open data, including datasets, w…

  • Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.

  • HealthData.gov MCP — wraps HealthData.gov CKAN API (free, no auth)

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/Edouard-Legoupil/unhcr-opendata-gateway-mcp'

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