MCP Flight Search

by arjunprabhulal

42 500 downloads Not rated yet MIT

About

MCP Server implementation for the Model Context Protocol (MCP) enabling AI tool usage - Realtime Flight Search

Details

License
MIT

Explore

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Flight Search
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


pip install mcp-flight-search

pip install -e .

Set the SerpAPI key as an environment variable:

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

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

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

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp flight search": {
            "mcp-flight-search": {
                "command": "python",
                "args": [
                    "main.py",
                    "--connection_type",
                    "http"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-flight-search": {
        "command": "python",
        "args": [
            "main.py",
            "--connection_type",
            "http"
        ]
    }
}
<a href="https://glama.ai/mcp/servers/@arjunprabhulal/mcp-flight-search"> </a>

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

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.