HasData

官方

即時網路資料,專為代理程式結構化整理

你可以用 HasData MCP 做什麼?

  • 抓取網頁 — 請你的助理透過 hasdata 連線抓取頁面並回傳其內容。
  • 執行 Google 搜尋 — 讓模型執行 Google SERP 查詢並取得結構化搜尋結果。
  • 取得市集資料 — 從 Amazon、Walmart 和 Shopify 等供應商擷取產品、評論和搜尋資料。
  • 限制暴露的 API — 在端點中加入 apis 參數,這樣只會將你需要的供應商載入為工具。
  • 使用 OAuth 或 API 金鑰連線 — 透過 HasData 登入進行驗證,或為無人值守的代理程式傳送 x-api-key 標頭。

文件

MCP 伺服器

透過 Model Context Protocol 將 LLM 用戶端與 AI 代理連線至 HasData。

HasData MCP 伺服器 將 HasData 的擷取與搜尋能力開放給任何支援 Model Context Protocol 的用戶端。將支援 MCP 的用戶端(Claude、Codex、Cursor、VS Code、Windsurf、自訂代理等)指向 HasData 端點,你的模型即可擷取網頁、執行 Google 搜尋並取得結構化資料,無需撰寫 API 整合程式碼。

端點

https://mcp.hasdata.com/mcp

此伺服器使用可串流 HTTP 傳輸。

驗證

有兩種連線方式:使用你的 HasData 帳戶登入,或傳送 API 金鑰。

使用你的 HasData 帳戶登入

支援 OAuth 的用戶端無需你自行處理金鑰即可連線:新增端點並依照登入提示操作。每個連線都會取得專屬的 API 金鑰,並以用戶端名稱命名——在 API 金鑰頁面 刪除該金鑰即可中斷連線。

claude mcp add --transport http hasdata https://mcp.hasdata.com/mcp
# then run /mcp and authenticate
codex mcp add hasdata --url https://mcp.hasdata.com/mcp
codex mcp login hasdata
code --add-mcp '{"name":"hasdata","type":"http","url":"https://mcp.hasdata.com/mcp"}'
Settings → Connectors → Add custom connector → https://mcp.hasdata.com/mcp
Settings → MCP → Add custom MCP → https://mcp.hasdata.com/mcp

API 金鑰

從 儀表板 取得金鑰,並在 x-api-key 標頭中傳送。適用於不支援 OAuth 的用戶端,以及無人值守的代理。

claude mcp add --transport http hasdata https://mcp.hasdata.com/mcp \
  --header "x-api-key: <your-api-key>"
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "hasdata": {
      "url": "https://mcp.hasdata.com/mcp",
      "headers": { "x-api-key": "<your-api-key>" }
    }
  }
}
// ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "hasdata": {
      "serverUrl": "https://mcp.hasdata.com/mcp",
      "headers": { "x-api-key": "<your-api-key>" }
    }
  }
}
// cline_mcp_settings.json
{
  "mcpServers": {
    "hasdata": {
      "type": "streamableHttp",
      "url": "https://mcp.hasdata.com/mcp",
      "headers": { "x-api-key": "<your-api-key>" }
    }
  }
}
# ~/.codex/config.toml
[mcp_servers.hasdata]
url = "https://mcp.hasdata.com/mcp"
env_http_headers = { "x-api-key" = "HASDATA_API_KEY" }

任何其他支援可串流 HTTP 傳輸的用戶端也以相同方式運作:將其指向端點並傳送 x-api-key。沒有有效憑證的請求會以 401 Unauthorized 遭到拒絕。

選擇要公開的 API

預設情況下,伺服器會將全部 57 個 HasData API 公開為工具,而你的模型在每次呼叫時都會重新讀取全部 57 個工具定義。新增 apis 參數即可只公開你需要的 API:

https://mcp.hasdata.com/api/mcp?apis=amazon,shopify

該連線會有 7 個工具,而非 57 個。驗證、計費與工具行為皆維持不變。

指定供應商名稱可取得其所有 API,或指定單一 API——?apis=google_maps_search,web_scraping 會提供兩個工具。

供應商個別 API
airbnbairbnb_listing, airbnb_property
amazonamazon_product, amazon_reviews, amazon_search, amazon_seller, amazon_seller_products
bingbing_serp
bookingbooking_place, booking_search
chatgptchatgpt_chat
duckduckgoduckduckgo_serp
facebookfacebook_profile
glassdoorglassdoor_job, glassdoor_listing
google_financegoogle_finance_finance
google_imagesgoogle_images_images
google_mapsgoogle_maps_contributor_reviews, google_maps_photos, google_maps_place, google_maps_posts, google_maps_reviews, google_maps_search
google_scholargoogle_scholar_case_law, google_scholar_cite, google_scholar_scholar
google_serpgoogle_serp_ai_mode, google_serp_ai_overview, google_serp_events, google_serp_immersive_product, google_serp_news, google_serp_product, google_serp_serp, google_serp_serp_light, google_serp_shopping, google_serp_short_videos
google_travelgoogle_travel_flights, google_travel_flights_deals, google_travel_hotels
google_trendsgoogle_trends_search
indeedindeed_job, indeed_listing
instagraminstagram_comments, instagram_posts, instagram_profile
perplexityperplexity_chat
redfinredfin_listing, redfin_property
shopifyshopify_collections, shopify_products
tiktoktiktok_comments, tiktok_posts, tiktok_profile, tiktok_search
tripadvisortripadvisor_place, tripadvisor_reviews, tripadvisor_search
walmartwalmart_product, walmart_reviews, walmart_search
web_scrapingweb_scraping_web_scraping
yellowpagesyellowpages_place, yellowpages_search
yelpyelp_place, yelp_reviews, yelp_search
youtubeyoutube_channel, youtube_search, youtube_transcript, youtube_video
zillowzillow_listing, zillow_property

拼寫錯誤的名稱會被忽略,其餘名稱仍會載入。若所有名稱都拼錯,請求會以 400 失敗,並列出有效的供應商。

計費

每次工具呼叫都會以與直接 API 請求相同的方式消耗 HasData 點數,並從連線所屬的工作區扣除。詳情請參閱 點數與並行。

本文件建置並託管於 Mintlify,一個開發者文件平台。