MCPMCP Tools/Reference Data/list_countries

list_countries

Readreference:read

List the countries a location can belong to (all ISO 3166-1 countries). Global reference data — no clientId. Returns each country's two-letter code (what create_location's countryIso takes), name, dial code, whether it has states/regions, and whether a postal address there uses a state at all. Optionally filter by `search` (code, name or alias, e.g. "usa") or `hasRegions`.

Parameters
searchstringoptional
Match country code, name or alias (accent-insensitive)
hasRegionsbooleanoptional
Only countries that have (true) or have no (false) states/regions
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_countries",
    "arguments": {}
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.