MCP Flight Search
A flight search service built with Model Context Protocol (MCP). This service demonstrates how to implement MCP tools for flight search capabilities.
What is Model Context Protocol?
The Model Context Protocol (MCP) is a standard developed by Anthropic that enables AI models to use tools by defining a structured format for tool descriptions, calls, and responses. This project implements MCP tools that can be used by Claude and other MCP-compatible models.
Installation
Usage
Start the MCP server:
You can also specify a custom port:
Environment Variables
Set the SerpAPI key as an environment variable:
Features
- MCP-compliant tools for flight search functionality
- Integration with SerpAPI Google Flights
- Support for one-way and round-trip flights
- Rich logging with structured output
- Modular, maintainable code structure
MCP Tools
This package provides the following Model Context Protocol tools:
search_flights_tool
: Search for flights between airports with parameters:origin
: Departure airport code (e.g., ATL, JFK)destination
: Arrival airport code (e.g., LAX, ORD)outbound_date
: Departure date (YYYY-MM-DD)return_date
: Optional return date for round trips (YYYY-MM-DD)
server_status
: Check if the MCP server is running
Project Structure
Author
For more articles on AI/ML and Generative AI, follow me on Medium: https://medium.com/@arjun-prabhulal
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
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.
모델 컨텍스트 프로토콜 서버는 간단한 프롬프트를 사용하여 주어진 날짜에 대한 여러 항공사, 가격, 경유지, 소요 시간 등의 실시간 항공편 세부 정보를 검색합니다.
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -214PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides real-time flight tracking and status information using the AviationStack API.Last updated -32,4016JavaScriptMIT License
Variflight MCP Serverofficial
AsecurityFlicenseAqualityA Model Context Protocol server implementation that provides tools for querying flight information, weather data, and flight comfort metrics through Variflight services.Last updated -871912- AsecurityAlicenseAqualityA discovery and recommendation service that helps AI assistants find Model Context Protocol servers based on natural language queries.Last updated -67659TypeScriptMIT License