cities
Pack: aviationstack · Endpoint: https://gateway.pipeworx.io/aviationstack/mcp
City + primary-airport database.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
search | string | no | |
iata_code | string | no | City IATA code (e.g. “NYC” for all NYC airports) |
country_iso2 | string | no | |
limit | number | no |
Example call
curl -X POST https://gateway.pipeworx.io/aviationstack/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cities","arguments":{}}}'
Response shape
| Field | Type | Description |
|---|---|---|
data | array | Array of city objects |
pagination | object | Pagination metadata |
Full JSON Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of city objects",
"items": {
"type": "object",
"properties": {
"city_name": {
"type": "string",
"description": "City name"
},
"iata_code": {
"type": "string",
"description": "City IATA code"
},
"country_iso2": {
"type": "string",
"description": "Country ISO code"
},
"country_name": {
"type": "string",
"description": "Country name"
},
"timezone": {
"type": "string",
"description": "IANA timezone"
},
"gmt": {
"type": "string",
"description": "GMT offset"
},
"gmt_offset_seconds": {
"type": "number",
"description": "GMT offset in seconds"
},
"latitude": {
"type": "number",
"description": "Latitude coordinate"
},
"longitude": {
"type": "number",
"description": "Longitude coordinate"
}
}
}
},
"pagination": {
"type": "object",
"description": "Pagination metadata",
"properties": {
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"count": {
"type": "number"
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"aviationstack": {
"url": "https://gateway.pipeworx.io/aviationstack/mcp"
}
}
}
See Getting Started for client-specific install steps.