
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 分
