from typing import List
from ._generated_enum import Airport
def search_airport(query: str) -> List[Airport]:
"""Search for airports.
Args:
query (str): The query.
Returns:
list[Airport]: A list of airports (enum `Airports`).
"""
return [
ref
for aname, ref in Airport.__members__.items()
if query.lower() in aname.lower()
]
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/opspawn/Google-Flights-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server