Google Flights MCP
by impca201
README.md
# Google Flights MCP – Cloudflare Workers
A remote **Model Context Protocol (MCP)** server that searches Google Flights, hosted on Cloudflare Workers.
Based on [salamentic/google-flights-mcp](https://github.com/salamentic/google-flights-mcp), ported to TypeScript / Cloudflare Workers.
## Tools
| Tool | Description |
|------|-------------|
| `search_flights` | Search one-way or round-trip flights (IATA codes, dates, passengers, seat class) |
| `airport_search` | Find airport IATA codes by city, country, or name |
| `get_travel_dates` | Generate suggested departure / return dates |
| `update_airports_database` | Refresh in-memory airport list from upstream CSV |
## Deploy
```bash
npm install
npx wrangler deploy
```
## MCP endpoint
After deployment the MCP endpoint is available at:
```
https://google-flights-mcp-worker.<your-subdomain>.workers.dev/mcp
```
## Connect to Claude / Cursor / Windsurf
```json
{
"mcpServers": {
"google-flights": {
"type": "http",
"url": "https://google-flights-mcp-worker.<your-subdomain>.workers.dev/mcp"
}
}
}
```
## License
MIT