countries_by_region

Pack: countries · Endpoint: https://gateway.pipeworx.io/countries/mcp

List all countries in a region (e.g., “Africa”, “Europe”, “Asia”). Returns name, capital, population, area, and flag emoji.

Parameters

NameTypeRequiredDescription
regionstringyesRegion name — one of: africa, americas, asia, europe, oceania

Example call

Arguments

{
  "region": "europe"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('countries_by_region', {
  "region": "europe"
});

More examples

{
  "region": "asia"
}

Response shape

Always returns: region, count, countries

FieldTypeDescription
regionstringRegion name queried
countintegerTotal number of countries in region
countriesarrayCountries in the region sorted by population descending
Full JSON Schema
{
  "type": "object",
  "properties": {
    "region": {
      "type": "string",
      "description": "Region name queried"
    },
    "count": {
      "type": "integer",
      "description": "Total number of countries in region"
    },
    "countries": {
      "type": "array",
      "description": "Countries in the region sorted by population descending",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Common country name"
          },
          "capital": {
            "type": "string",
            "description": "Capital city or N/A if not available"
          },
          "population": {
            "type": "integer",
            "description": "Total population"
          },
          "flag": {
            "type": "string",
            "description": "Flag emoji or empty string"
          }
        },
        "required": [
          "name",
          "capital",
          "population",
          "flag"
        ]
      }
    }
  },
  "required": [
    "region",
    "count",
    "countries"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "countries": {
      "url": "https://gateway.pipeworx.io/countries/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026