list_countries

Pack: unhcr · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/list_countries for the schema, then POST the same URL with its arguments for the data.

Reference list of countries/territories UNHCR tracks. Use this to map a country name to the code you pass as coo/coa in the other tools. Each item has: code (UNHCR 3-letter, USE THIS for filtering), iso (true ISO3), iso2, name, region, majorArea. Paginated — large list, raise limit or page through (response.maxPages).

Parameters

NameTypeRequiredDescription
limitintegernoRows per page (default 25; raise to fetch more at once).
pageintegerno1-based page; see response.maxPages.

Example call

Arguments

{
  "limit": 50
}

curl

curl -X POST https://gateway.pipeworx.io/unhcr/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_countries","arguments":{"limit":50}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('list_countries', {
  "limit": 50
});

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the unhcr pack
{
  "mcpServers": {
    "unhcr": {
      "url": "https://gateway.pipeworx.io/unhcr/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 15, 2026