Data Processing
Look up ISO country codes, ccTLD, calling, IOC, M49, FIPS and ISO 3166-2 subdivision data
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/iso-3166-country-code-tld-and-subdivision-mapper' \
-H 'Content-Type: application/json' \
-d '{"query":"USA","searchBy":"auto","includeSubdivisions":false,"limit":20}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/iso-3166-country-code-tld-and-subdivision-mapper| Name | Type | Required | Description |
|---|---|---|---|
| query | text | Yes | — |
| searchBy | select | No | — |
| includeSubdivisions | checkbox | No | — |
| limit | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-iso-3166-country-code-tld-and-subdivision-mapper": {
"name": "iso-3166-country-code-tld-and-subdivision-mapper",
"description": "Look up ISO country codes, ccTLD, calling, IOC, M49, FIPS and ISO 3166-2 subdivision data",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=iso-3166-country-code-tld-and-subdivision-mapper",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "iso-3166-country-code-tld-and-subdivision-mapper",
"arguments": {
"query": "USA",
"searchBy": "auto",
"includeSubdivisions": false,
"limit": 20
}
}
}Questions or issues? Contact [email protected]