Skip to main content
Glama

mcp-flight-search

Búsqueda de vuelos MCP

Un servicio de búsqueda de vuelos desarrollado con el Protocolo de Contexto de Modelo (MCP). Este servicio demuestra cómo implementar herramientas MCP para la búsqueda de vuelos.

¿Qué es el Protocolo de Contexto Modelo?

El Protocolo de Contexto de Modelo (MCP) es un estándar desarrollado por Anthropic que permite a los modelos de IA usar herramientas mediante la definición de un formato estructurado para sus descripciones, llamadas y respuestas. Este proyecto implementa herramientas MCP que pueden ser utilizadas por Claude y otros modelos compatibles con MCP.

Instalación

# Install from PyPI pip install mcp-flight-search # Or install from the project directory (development mode) pip install -e .

Uso

Inicie el servidor MCP:

# Using the command-line entry point mcp-flight-search --connection_type http # Or run directly python main.py --connection_type http

También puede especificar un puerto personalizado:

python main.py --connection_type http --port 5000

Variables de entorno

Establezca la clave SerpAPI como una variable de entorno:

export SERP_API_KEY="your-api-key-here"

Características

  • Herramientas compatibles con MCP para la función de búsqueda de vuelos
  • Integración con SerpAPI Google Flights
  • Soporte para vuelos de ida y vuelta
  • Registro enriquecido con salida estructurada
  • Estructura de código modular y mantenible

Herramientas MCP

Este paquete proporciona las siguientes herramientas de Protocolo de Contexto de Modelo:

  • search_flights_tool : Busca vuelos entre aeropuertos con los siguientes parámetros:
    • origin : Código del aeropuerto de salida (p. ej., ATL, JFK)
    • destination : Código del aeropuerto de llegada (por ejemplo, LAX, ORD)
    • outbound_date : Fecha de salida (AAAA-MM-DD)
    • return_date : Fecha de regreso opcional para viajes de ida y vuelta (AAAA-MM-DD)
  • server_status : Comprueba si el servidor MCP se está ejecutando

Estructura del proyecto

mcp-flight-search/ ├── mcp_flight_search/ │ ├── __init__.py # Package initialization and exports │ ├── config.py # Configuration variables (API keys) │ ├── models/ │ │ ├── __init__.py # Models package init │ │ └── schemas.py # Pydantic models (FlightInfo) │ ├── services/ │ │ ├── __init__.py # Services package init │ │ ├── search_service.py # Main flight search logic │ │ └── serpapi_client.py # SerpAPI client wrapper │ ├── utils/ │ │ ├── __init__.py # Utils package init │ │ └── logging.py # Logging configuration │ └── server.py # MCP server setup and tool registration ├── main.py # Main entry point ├── pyproject.toml # Python packaging configuration ├── LICENSE # MIT License └── README.md # Project documentation

Autor

Para más artículos sobre IA/ML e IA generativa, sígueme en Medium: https://medium.com/@arjun-prabhulal

Licencia

Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Un servidor de protocolo de contexto modelo busca detalles de vuelos en tiempo real con múltiples aerolíneas, precios, escalas y duración para cualquier fecha determinada mediante un mensaje simple.

  1. ¿Qué es el Protocolo de Contexto Modelo?
    1. Instalación
      1. Uso
        1. Variables de entorno
          1. Características
            1. Herramientas MCP
              1. Estructura del proyecto
                1. Autor
                  1. Licencia

                    Related MCP Servers

                    • A
                      security
                      A
                      license
                      A
                      quality
                      A Model Context Protocol server enabling product searches across e-commerce platforms, price history tracking, and product specification-based searches using natural language prompts.
                      Last updated -
                      8
                      10
                      Python
                      MIT License
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A Model Context Protocol server that integrates with Brave Search API to provide real-time search capabilities through Server-Sent Events (SSE).
                      Last updated -
                      TypeScript
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A Model Context Protocol (MCP) server that provides real-time flight tracking and status information using the AviationStack API.
                      Last updated -
                      3
                      0
                      2
                      JavaScript
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Model Context Protocol server that provides real-time access to Hong Kong's KMB and Long Win Bus route information and arrival times, enabling Language Models to answer user questions about bus routes, stops, and ETAs.
                      Last updated -
                      3
                      Python
                      Apache 2.0
                      • Linux
                      • Apple

                    View all related MCP servers

                    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/arjunprabhulal/mcp-flight-search'

                    If you have feedback or need assistance with the MCP directory API, please join our Discord server