HasData

官方

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

你可以用 HasData MCP 做什麼?

  • 抓取網頁 — 讓您的 AI 助理使用 hasdata MCP 伺服器的網頁抓取工具,從任何 URL 取得並擷取內容。
  • 執行 Google 搜尋 — 讓您的助理透過 https://mcp.hasdata.com/mcp 端點執行 Google SERP 查詢,並回傳結構化結果。
  • 從 57+ 個 API 取得結構化資料 — 不需撰寫 API 整合程式碼,即可向 Amazon、Google Maps、YouTube 或 Yelp 等供應商請求資料。
  • 依供應商篩選公開工具 — 使用 apis 參數設定 MCP 連線,將可用工具限制為特定供應商,例如 amazon 或 shopify。
  • 透過 OAuth 或 API 金鑰驗證 — 使用您的 HasData 帳戶登入進行連線,或傳送 x-api-key 標頭以供無人值守代理程式使用。

文件

MCP 伺服器

透過模型上下文協定,將 LLM 用戶端與 AI 代理程式連線至 HasData。

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

端點

https://mcp.hasdata.com/mcp

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

驗證

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

使用您的 HasData 帳戶登入

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

```bash Claude Code theme={null} 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 的用戶端,以及無人值守的代理程式。

```bash Claude Code theme={null} claude mcp add --transport http hasdata https://mcp.hasdata.com/mcp \ --header "x-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_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_posts, instagram_profile
redfinredfin_listing, redfin_property
shopifyshopify_collections, shopify_products
tiktoktiktok_comments, tiktok_posts, tiktok_profile, tiktok_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 額度。詳情請參閱額度與並行。