UNHCR Open Data Gateway MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
UNHCR Open Data Gateway MCP
A FastMCP-based gateway that aggregates and normalizes data from UNHCR's domain-specific MCP servers.
π― Purpose
The UNHCR Open Data Gateway MCP provides a unified interface for accessing UNHCR's open data across three independent MCP servers:
Statistics MCP: Authoritative source for population and displacement data
RDF MCP: Authoritative source for socio-economic indicators and contextual datasets
IATI MCP: Authoritative source for budget, contributions, and financial transparency data
Related MCP server: dataset-search-mcp
ποΈ Architecture
The gateway follows a Federated Gateway Pattern:
AI Client
|
v
+----------------------+
| Open Data Gateway |
| FastMCP |
+----------------------+
/ | \
/ | \
v v v
+---------+ +---------+ +---------+
| Stat | | RDF | | IATI |
| MCP | | MCP | | MCP |
+---------+ +---------+ +---------+
^
|
|
Reference Layer
(Canonical Entities)Core Principles
Domain MCP Ownership: Each domain MCP owns its data
Gateway Owns Experience: Gateway handles aggregation, composition, discovery, analytics
Domain MCP Independence: Domain MCPs never call each other directly
Canonical Reference Layer: Prevents duplication of country/operation definitions
π Quick Start
Installation
# 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.txtConfiguration
Create a .env file:
STAT_MCP_ENDPOINT=http://localhost:8001
RDF_MCP_ENDPOINT=http://localhost:8002
IATI_MCP_ENDPOINT=http://localhost:8003
LOG_LEVEL=INFORunning the Server
# Run in STDIO mode
python -m src.unhcr_opendata_gateway.appπ οΈ Usage
Available Tools
Tool | Description | Parameters |
| Comprehensive snapshot for a country |
|
| Comprehensive snapshot for an operation |
|
| Calculate funding gap and per-refugee metrics |
|
| Calculate funding metrics per refugee |
|
| Compare two countries across all domains |
|
| Search datasets across all MCPs |
|
| List all available datasets | - |
| Generate a comprehensive briefing note |
|
Example Queries
# 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)π Features
Country Normalization: Handles ISO3, ISO2, names, aliases, "Republic of X" variants
Cross-Domain Analytics: Funding gap per refugee, budget per refugee, etc.
Graceful Degradation: Returns partial data when some MCPs are unavailable
Caching: TTL-based caching with configurable expiration
Observability: Structured logging, metrics, OpenTelemetry tracing
π License
Apache License 2.0
π Support
For issues or questions, please contact the UNHCR Data team.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Query UNHCR refugee, IDP, and stateless populations, asylum decisions, returns, and resettlement.
Search and preview datasets publicly. Account-required full data via MCP.
Search, sample and query open reproducible datasets published as immutable Parquet with schemas.
Related MCP Servers
- FlicenseAqualityBmaintenanceMCP server for querying Huwise/Opendatasoft data portals. Enables dataset search, metadata retrieval, record filtering with ODSQL, and data export.53-
- AlicenseNot gradedqualityDmaintenanceUnified MCP server for discovering open datasets across Hugging Face, Zenodo, and Kaggle, with ranked search results and one-click Colab starter code generation.1MIT
- AlicenseAqualityBmaintenanceEnables querying and analyzing humanitarian data, such as refugee statistics, through semantic tools like country comparisons, trend analysis, and report generation, using the UNHCR API.2125 npm1MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to query UNDP's open data on projects, funding, donors, SDG alignment, and focus areas without an API key.15MIT