原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

HasData Google Flights

作者:HasData版本 1.0.7i★ 5i电脑或云端
注册名称com.hasdata/google-flights

安装方法

What it does

Google Flights itineraries with fares, legs, carbon emissions and price history, as JSON.

  • Connects 电脑或云端
  • Account or key Cloud: Needs x-api-key · Local: Needs HASDATA_API_KEY
  • Category 旅行、地图与天气

安装

选择你使用的 AI 应用,然后复制设置。

通过 5/5 项检查 · 你的提问会经过开发者的服务器(mcp.hasdata.com) · ✓ 命令已检查 2026年11月13日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 5 分钟

需要 HasData Google Flights 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 注册并创建 HasData Google Flights 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 HasData Google Flights 网站 ↗

  2. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称HasData Google Flights
    Remote MCP server URL · 地址https://mcp.hasdata.com/mcp?apis=google_travel_flights

    在 Request headers 下添加这个名称和值

    Header 名称x-api-key
    值<在这里粘贴你的密钥>

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  4. 在聊天中开启

    +ConnectorsHasData Google Flights

  5. 试一试

    用 HasData Google Flights 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 HasData Google Flights,或回答中出现 HasData Google Flights 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 HasData Google Flights

HasData Google Flights 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式

你可以改用这些方式

A · 使用能连接 HasData Google Flights 的应用

  • 需要 HasData Google Flights 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加
  • 需要 HasData Google Flights 的密钥(在开发者网站创建)
  • 需要 HasData Google Flights 的密钥(在开发者网站创建)
  • 需要 HasData Google Flights 的密钥(在开发者网站创建)

B · 旅行、地图与天气 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code · 约 5 分钟

需要 HasData Google Flights 的密钥(在开发者网站创建)

  1. 注册并创建 HasData Google Flights 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 HasData Google Flights 网站 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user google-flights 'https://mcp.hasdata.com/mcp?apis=google_travel_flights' --header 'x-api-key: your-value'

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Claude Code 中输入 /mcp

    应能看到 HasData Google Flights 在列表中并显示已连接

  5. 试一试

    用 HasData Google Flights 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 HasData Google Flights,或回答中出现 HasData Google Flights 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 5 分钟

需要 HasData Google Flights 的密钥(在开发者网站创建)

  1. 注册并创建 HasData Google Flights 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 HasData Google Flights 网站 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 HasData Google Flights 的设置中,x-api-key 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Cursor 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 HasData Google Flights 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 HasData Google Flights,或回答中出现 HasData Google Flights 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 5 分钟

需要 HasData Google Flights 的密钥(在开发者网站创建)

  1. 注册并创建 HasData Google Flights 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 HasData Google Flights 网站 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 HasData Google Flights 的设置中,x-api-key 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 VS Code 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 HasData Google Flights 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 HasData Google Flights,或回答中出现 HasData Google Flights 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://mcp.hasdata.com/mcp?apis=google_travel_flights

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 HasData Google Flights 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user google-flights 'https://mcp.hasdata.com/mcp?apis=google_travel_flights' --header 'x-api-key: your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "google-flights": {
      "url": "https://mcp.hasdata.com/mcp?apis=google_travel_flights",
      "headers": {
        "x-api-key": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "google-flights": {
      "type": "http",
      "url": "https://mcp.hasdata.com/mcp?apis=google_travel_flights",
      "headers": {
        "x-api-key": "your-value"
      }
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user google-flights --env HASDATA_API_KEY=your-value -- npx -y @hasdata/google-flights-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "google-flights": {
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/google-flights-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "google-flights": {
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/google-flights-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "google-flights": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hasdata/google-flights-mcp"
      ],
      "env": {
        "HASDATA_API_KEY": "your-value"
      }
    }
  }
}

需要你填写的值

  • HASDATA_API_KEY 机密 必填 env
    HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card.
  • x-api-key 机密 必填 HTTP header
    HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
107/周
已验证域名
✓ hasdata.com
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
1.0.7
发布到注册中心i
2026年9月24日
代码最后更新i
2026年10月29日
作者
HasData
软件包
npm: @hasdata/google-flights-mcp
pypi: hasdata-google-flights-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月12日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • hasdata_google_travel_flights_getGoogleFlights

    Get Google Flights Results Searches Google Flights for one-way, round-trip, or multi-city itineraries with passenger mix (adults, children, infants in-seat/on-lap), travel class, bags, max price, sort order (price, duration, emissions, departure/arrival time), stops, include/excl

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月13日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 hasdata.com 验证(注册中心会核实域名所有权)

  • ✓ 通过

    仍在维护

    代码最后更新于15天前

  • ✓ 通过

    有许可证

    使用 MIT

  • ✓ 通过

    端点有响应

    在 54 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 1 个工具描述,未发现针对 AI 的隐藏指令

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“旅行、地图与天气”中的其他服务器比较i

  • 星标数多于此分类中其他 1870 个服务器的 96%
  • 发布到注册中心的时间比此分类中其他 1870 个服务器的 36% 更新
  • 基础检查结果等于或优于此分类中其他 1870 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

HasData Google Flights 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:x-api-key, HASDATA_API_KEY

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于15天前,最新版本(1.0.7)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:LetsFG — Flights & Hotels, Google Maps MCP Server, Mu

同类别的其他选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

LetsFG — Flights & Hotels

Search and book flights and hotels: hundreds of airlines, plus bookable hotel rates.

作者:LetsFG广泛使用↓ 204/周★ 22672个月前更新

电脑或云端

Google Maps MCP Server

18 Google Maps tools for AI agents — geocode, search, directions, weather, and more.

作者:cablate正在增长↓ 1257/周★ 4962个月前更新

在你的电脑上运行

Mu

News, web search, mail, markets, weather, places, files, calendar, contacts. 67 tools, one endpoint.

作者:micro正在增长★ 4393个月前更新

在云端运行✓ micro.mu

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Google Flights MCP Server

A hosted Google Flights MCP server that gives Claude, Cursor, Windsurf and any other MCP client one Google Flights tool. Search one-way, round-trip and multi-city itineraries with fares, flight legs, carbon emissions and price history, all as structured JSON, with no Google account and no retired travel API to work around.

1,000 free credits every month, no card required, which is about 66 flight searches.

https://mcp.hasdata.com/mcp?apis=google_travel_flights
  • Prompts and resources

Contents

  • What you need
  • Quick start
  • Example prompts
  • Tools
  • Errors and failure paths
  • Pricing, free tier and limits
  • Tool selection
  • How it compares
  • FAQ
  • HasData links
  • Development
  • Contributing
  • License

What you need

An MCP client and a HasData API key from the dashboard, free to create with no card, and the free tier covers about 66 calls a month at the 15-credit rate. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run and no Google account anywhere in the flow. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/google-flights-mcp on npm and hasdata-google-flights-mcp on PyPI, shown below.

Quick start

The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.

FieldValue
URLhttps://mcp.hasdata.com/mcp?apis=google_travel_flights
TransportHTTP, streamable
Auth headerx-api-key: HASDATA_API_KEY

Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.

Claude Code

claude mcp add --transport http google-flights "https://mcp.hasdata.com/mcp?apis=google_travel_flights" \

--header "x-api-key: HASDATA_API_KEY"

Claude Desktop

Settings, then Connectors, then Add custom connector, then paste https://mcp.hasdata.com/mcp?apis=google_travel_flights and sign in.

For the config-file route, Claude Desktop loads only local (stdio) servers, so it reaches a remote server through a stdio launcher. The @hasdata/google-flights-mcp package is that launcher, and it reads the key from the environment. Add this to claude_desktop_config.json:

{

"mcpServers": { "google-flights": { "command": "npx", "args": ["-y", "@hasdata/google-flights-mcp"], "env": { "HASDATA_API_KEY": "YOUR_KEY" } } } }

For Python instead of Node, swap the launcher for the PyPI package, which uvx runs without a manual install:

{

"mcpServers": { "google-flights": { "command": "uvx", "args": ["hasdata-google-flights-mcp"], "env": { "HASDATA_API_KEY": "YOUR_KEY" } } } }

Cursor

~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:

{

"mcpServers": { "google-flights": { "url": "https://mcp.hasdata.com/mcp?apis=google_travel_flights", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }

Windsurf

~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:

{

"mcpServers": { "google-flights": { "serverUrl": "https://mcp.hasdata.com/mcp?apis=google_travel_flights", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }

VS Code

.vscode/mcp.json in the workspace:

{

"servers": { "google-flights": { "type": "http", "url": "https://mcp.hasdata.com/mcp?apis=google_travel_flights", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }

Example prompts

Prompts, not code. Paste one in and the agent picks the tool itself. Each is annotated with the calls it takes, because every successful call costs 15 credits.

Find one-way flights from JFK to London Heathrow on September 15, sorted by price, and give me the three cheapest with airline and carbon estimate.

*One call, 15 credits. Fares, legs and emissions all come back together.*

Same route but non-stop only, in business class, and tell me which option has the lowest emissions.

*One call, 15 credits. Cabin and stops are filters on the one request.*

Is $295 a good price for JFK to LHR right now, given the price history?

*One call, 15 credits. The response carries priceInsights with a typical range and a price level.*

Round trip JFK to LHR, out September 15 back September 22, cheapest fare.

*Two calls, 30 credits. Google returns outbound options first, then the return leg is a second call keyed by the option you pick.*

A round trip is two calls by design. The first returns outbound itineraries each with a departureToken, and you pass that token back to get the matching return flights. One-way and the price check are a single call each.

Tools

ToolWhat it returns
hasdata_google_travel_flights_getGoogleFlightsPer-itinerary price, currency, total duration, stops, flight legs with airline, flight number, aircraft, departure/arrival airports and times, CO2 emissions, plus…. 15 credits a call

One tool, read-only. The sample below is trimmed from a real call, and fares move constantly. Read it as a shape. The tool name links to its endpoint reference, which carries the full parameter list.

The sample is the payload, not the whole response. A tools/call result carries one text block, and that text is itself JSON holding url, status, text and json, with the scraped data under json. From a raw JSON-RPC response the path is result.content[0].text, parsed, then .json. A chat client unwraps that for you and code talking to the endpoint directly does not.

Get Google Flights results

hasdata_google_travel_flights_getGoogleFlights

Itineraries for a route and date, with fares, legs, emissions and price history.

ParameterTypeRequiredNotes
departureIdstringyesIATA code such as JFK, or a location kgmid like /m/02_286. Comma-separate several airports
arrivalIdstringyesSame format as departureId
outboundDatestringyesYYYY-MM-DD
typestringroundTrip by default, oneWay, or multiCity with multiCityJson
returnDatestringRequired when type is roundTrip
travelClassstringeconomy, premiumEconomy, business or first
stopsstringnonStop, oneStopOrFewer or twoStopsOrFewer
sortBystringtopFlights default, plus price, duration, emissions, departureTime, arrivalTime
adults / children / infantsInSeat / infantsOnLapnumberPassenger mix
maxPrice / maxDuration / bagsnumberCeilings and carry-on count
includeAirlines / excludeAirlinesstringComma-separated IATA airline codes, one or the other, not both
departureTokenstringSelect an outbound option and fetch its return or next leg
bookingTokenstringFetch booking options for a chosen itinerary
currency / gl / hlstringCurrency and the country and language of the search
deepSearchbooleanMatch what Google shows in a browser, slower to return

The reference also documents includeConnections, excludeConnections, layoverDuration, outboundTimes, returnTimes, showHidden, lessEmissions and multiCityJson.

Results split into bestFlights and otherFlights. Each itinerary carries price, type, totalDuration in minutes, a flights array of legs, a carbonEmissions object, and a bookingToken. Each leg holds the departureAirport and arrivalAirport (each with id, name and local time), duration, airline, flightNumber, airplane, legroom, travelClass, an extensions array, and oftenDelayedByOver30Min on legs Google flags. A non-stop itinerary has one leg, a connection has several.

carbonEmissions is in grams, not kilograms. thisFlight: 433000 is 433 kg. differencePercent compares it to typicalForThisRoute, so a negative number is a greener-than-average flight.

{

"price": 295, "type": "One way", "totalDuration": 415, "flights": [ { "departureAirport": { "id": "JFK", "name": "John F. Kennedy International Airport", "time": "2026-09-15 8:15" }, "arrivalAirport": { "id": "LHR", "name": "Heathrow Airport", "time": "2026-09-15 20:10" }, "duration": 415, "airline": "Virgin Atlantic", "flightNumber": "VS 26", "airplane": "Boeing 787", "travelClass": "Economy" } ], "carbonEmissions": { "thisFlight": 367000, "typicalForThisRoute": 419000, "differencePercent": -12 }, "bookingToken": "W1t7..." }

priceInsights sits alongside the itineraries with lowestPrice, a typicalPriceRange, a priceLevel such as typical, and a priceHistory of [timestamp, price] points. airports echoes the resolved departure and arrival airports with city and country.

Prompts and resources

The server ships one prompt, a ready-made workflow a client can offer instead of making the user compose a tool call.

PromptWhat it does
google_flightsCompare flight options between two airports.

Alongside them the server exposes 7 resources, one per parameter whose accepted values are a fixed list. Reading one is cheaper than learning the vocabulary from a rejected call, and it costs no credits. Each URI is hasdata://google_travel_flights/ .

ParameterValuesWhat it selects
type3Specifies the type of flight. Options: - roundTrip (default) - oneWay - multiCity (requires multiCityJson for flight details) For round trips, retrieve return flight details with a separate request using departureToken.
gl245The two-letter country code for the country you want to limit the search to.
hl159The two-letter language code for the language you want to use for the search.

| currency

只显示了开头部分;其余内容请在仓库中阅读