Cover image
Try Now
2025-04-05

MCP Server donne accès au HCR RDF

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

UNHCR Population Data MCP Server

This MCP (Model Context Protocol) server provides access to UNHCR population data through a standardized interface. It allows AI agents to query UNHCR’s Refugee Population Statistics Database by country of origin, country of asylum, and year(s).

Features

  • Query total population data by country of origin, country of asylum, and year(s)
  • Get refugee/asylum seekers counts for specific country of origin and asylum
  • Access country profiles with both origin and asylum statistics
  • View global refugee statistics by year

Installation

Prerequisites

  • Python 3.8 or higher
  • pip or another Python package manager

Setup

  1. Clone this repository:

  2. Install dependencies:

    pip install -r requirements.txt
    

Usage

Running Locally

To run the server locally in development mode:

python app.py

This will start the MCP server in development mode, allowing you to interact with it using the MCP Inspector or other MCP clients.

Deploying to Smithery.ai

This server is configured for deployment on Smithery.ai, a platform for hosting MCP servers.

  1. Add your server to Smithery (or claim it if it's already listed)
  2. Click Deploy on the Smithery Deployments tab on your server page

API Endpoint

This server interacts with the UNHCR Population API:

https://api.unhcr.org/population/v1/population/

Query Parameters

  • cf_type: Always set to "ISO"
  • coo: Country of origin filter (ISO 3-letter country codes, comma-separated for multiple)
  • coa: Country of asylum filter (ISO 3-letter country codes, comma-separated for multiple)
  • year: Year filter (comma-separated for multiple years)

MCP Tools

get_population_data

Get raw population data from UNHCR with optional filtering.

Parameters:

  • coo (optional): Country of origin filter (ISO 3-letter code, comma-separated for multiple)
  • coa (optional): Country of asylum filter (ISO 3-letter code, comma-separated for multiple)
  • year (optional): Year filter (comma-separated for multiple years)

get_refugee_count

Get refugee count for a specific country of origin.

Parameters:

  • coo: Country of origin (ISO 3-letter code)
  • coa (optional): Country of asylum filter (ISO 3-letter code)
  • year (optional): Year filter

get_asylum_count

Get asylum statistics for a specific country of asylum.

Parameters:

  • coa: Country of asylum (ISO 3-letter code)
  • year (optional): Year filter

MCP Resources

unhcr://countries

Get a list of countries with their ISO codes.

unhcr://stats/{year}

Get global refugee statistics for a specific year.

Parameters:

  • year: The year to get statistics for

unhcr://country/{country_code}

Get a profile for a specific country, showing both origin and asylum statistics.

Parameters:

  • country_code: ISO 3-letter country code

License

MIT

Acknowledgments

This project uses data from the UNHCR Refugee Population Statistics Database.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • JackKuo666
  • 🔍 Permettre aux assistants d'IA de rechercher et d'accéder aux informations du package PYPI via une interface MCP simple.

  • Sysc4lls
  • Lecteur de documentation IDA (Sort-of) MCP Server

    Reviews

    1 (1)
    Avatar
    user_XPwHjGXK
    2025-04-17

    As a dedicated user of the mcp_unhcr application, I am thoroughly impressed by its functionalities. The app, authored by rvibek, is exceptionally user-friendly and provides crucial assistance for handling UNHCR-related tasks. The seamless integration and well-structured interface truly enhance productivity. Highly recommended!