
Searchapi Mcp Server
io.github.Ahmednsh由 GitHub 帳號 Ahmednsh 發布v1.0.2更新於 Oct 24, 2026
Google Search, Shopping, Jobs, and YouTube tools backed by SearchApi.io
發布方自己的服務:Searchapi
概覽
一個本機 MCP 伺服器,透過 SearchApi.io 讓助理取得 Google 搜尋、購物、職缺和 YouTube 搜尋結果,並以適合大型語言模型脈絡的精簡文字回傳。
- 可以做什麼
- 執行 Google 網頁搜尋,可指定國家和語言,並在有結果時把答案方塊、知識圖譜和 AI 概覽排在自然結果之前。查詢 Google 購物商品,回傳價格、賣家、評分和退貨政策。依關鍵字和地點尋找 Google 職缺,職缺描述已移除 HTML。搜尋 YouTube 影片,回傳頻道、觀看次數、長度和發布時間。
- 適用情境
- 當助理需要來自 Google 的即時網頁、商品、職缺或影片結果,且希望輸出已整理成適合模型脈絡的格式而非原始 JSON 時使用。適合研究、比價、求職和影片查找等任務。
- 執行需求
- 以 stdio 方式在本機執行,通常透過 npm 套件以 npx 啟動,因此需要 Node.js。需要 SearchApi.io 帳號,並透過環境變數 SEARCHAPI_API_KEY 提供 API 金鑰。需要連線至 SearchApi.io 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Searchapi Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
searchapi-mcp-server
MCP server exposing SearchApi.io as four tools: Google Search, Google Shopping, Google Jobs, and YouTube Search. Results come back as compact structured text built for an LLM context — direct answers first, no raw JSON.
Community project — not affiliated with or endorsed by SearchApi.io. "SearchApi" is a trademark of its respective owner.
Claude Desktop setup
Get an API key at searchapi.io, then add the server to claude_desktop_config.json (%AppData%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS):
Restart Claude Desktop. The four tools appear under the "searchapi" server.
Tools
google_search
q (required), num (1–20, default 10), gl (country code, e.g. sa), hl (language code, e.g. ar).
Direct-answer features (answer box, knowledge graph, AI overview) are placed before the organic results whenever Google returns them:
google_shopping
q (required), gl (country code), include_links (boolean, default false).
google_jobs
q (required), location (e.g. "Riyadh, Saudi Arabia").
youtube_search
q (required).
For developers
- Error semantics: tool execution failures (missing/invalid key, HTTP 429/4xx/5xx, network errors) return a readable message with
isError: true, so clients and models can distinguish a failed call from search content. "No results" is deliberately not an error — an empty search succeeded, and the message tells the model to change keywords instead of retrying. include_linksongoogle_shoppingis off by default because Google Shopping product links are ~500-character tracking URLs pointing back at Google, not at the merchant; the seller name is shown instead. Setinclude_links: trueif you need them.- Output caps: at most 10 results per call (the header says
showing 10 of Nwhen truncated); job descriptions are stripped of HTML and cut at 250 characters. - Layout:
src/index.tsregisters the tools and talks to SearchApi;src/format.tsholds the pure response-to-text formatters, unit-tested insrc/format.test.ts(npm test).
Development
License
MIT
來源:README.md,提交 6625a1d
工具
0版本歷史
1- v1.0.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
