Google Flights MCP server
{
"mcpServers": {
"hasdata-google-flights": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-flights-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"mcpServers": {
"hasdata-google-flights": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-flights-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"mcpServers": {
"hasdata-google-flights": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-flights-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"servers": {
"hasdata-google-flights": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-flights-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "${input:hasdata_api_key}",
"YOUR_KEY": "${input:your_key}"
}
}
},
"inputs": [
{
"id": "hasdata_api_key",
"type": "promptString",
"description": "Hasdata api key",
"password": true
},
{
"id": "your_key",
"type": "promptString",
"description": "Your key",
"password": true
}
]
}{
"mcpServers": {
"hasdata-google-flights": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-flights-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @hasdata/google-flights-mcpversion 1.0.6
What it does
This MCP server provides access to Google Flights search functionality, returning one-way, round-trip, and multi-city itineraries with fares, flight legs, carbon emissions, and price history as JSON. It is for developers building AI applications that need flight search capabilities without requiring a Google account or managing deprecated APIs.
- Search for flights between two cities on specific dates and retrieve pricing, airline information, and available routes.
- Compare flight options by emissions data and price history to help users make informed travel decisions.
- Filter flight results by cabin class, number of stops, and other preferences to narrow down available itineraries.
Tools this server exposes
| Tool | Does |
|---|---|
| google_flights_search | Search for one-way, round-trip, or multi-city flights with fares, legs, carbon emissions, and price history. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.