How redward42/flight-mcp works
This small MCP server lets a client request flight options by route and date. The registered search tool builds SerpAPI parameters, fetches Google Flights data, formats up to five results, and returns them through the server. The source shows this flow in one file; no separate storage or other product stages are present.
Main entry points: flight.py Flight MCP server
Components 6
MCP server
- Flight MCP server
flight.py
Flight search
- Search flights tool
flight.py - SerpAPI fetch
flight.py - Flight formatter
flight.py
Other components
- MCP client
- SerpAPI
Connections 6
- MCP client → Flight MCP server: requests search
README.md - Flight MCP server → Search flights tool: registers tool
flight.py - Search flights tool → SerpAPI fetch: fetches data
flight.py - SerpAPI fetch → SerpAPI: requests flights
flight.py - Search flights tool → Flight formatter: formats results
flight.py - Flight MCP server → MCP client: returns results
flight.py