# Flight Search

Search Google Flights through SerpApi using IATA airport codes. Compare fares, travel times and stops for one-way or return trips.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 43
- Author: arjunprabhulal
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/arjunprabhulal/mcp-flight-search
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/flight-search

## What it does

This server gives an AI agent access to Google Flights search through SerpApi. Its `search_flights_tool` takes origin and destination airport codes plus a departure date; add a return date for a round trip. Results include the airline, USD fare, duration, stops, departure and arrival times, and cabin class.

You need Python 3.10 or later or `uv`, along with a SerpApi key in `SERP_API_KEY`. Search will not run without the key. The server uses stdio by default and also supports Streamable HTTP with a port set at launch. A separate `server_status` tool checks whether the server is running and reports its version.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `SERP_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-flight-search -e SERP_API_KEY=<SERP_API_KEY> -- uvx mcp-flight-search
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-flight-search <command>

### Codex

**Platform CLI**
```bash
codex mcp add flight-search --env SERP_API_KEY=<SERP_API_KEY> -- uvx mcp-flight-search
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-flight-search <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "flight-search": {
            "command": "uvx",
            "args": [
                "mcp-flight-search"
            ],
            "env": {
                "SERP_API_KEY": "<SERP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-flight-search <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "flight-search": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "mcp-flight-search"
            ],
            "env": {
                "SERP_API_KEY": "<SERP_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-flight-search <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e SERP_API_KEY=<SERP_API_KEY> flight-search uvx mcp-flight-search
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from mcp-flight-search <command>

## When to use it
- find flights between airports using IATA codes
- compare fares and flight durations for a chosen date
- check how many stops a route has
- search for return flights using travel dates

## Example prompts
- Find flights from `ATL` to `LAX` on `2025-06-12` and compare fares and durations.
- Search for a trip from `LAX` to `ATL`, leaving `2025-06-12` and returning `2025-06-19`.
- Check whether the flight search server is running and report its version.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
