mcpField
S
SearchPipe

SearchPipe

远程服务
searchpipe.tech搜索与检索0今天更新

关于 SearchPipe

SearchPipe 是面向 AI Agent 开发者的网页搜索 API 和托管 MCP 服务,返回带来源链接的排序结果,并可附加 AI 生成的回答或原始页面内容。

主要功能

  1. 01排序后的网页搜索结果
  2. 02来源链接与结果评分
  3. 03可选的 AI 生成回答
  4. 04可选的完整页面内容
  5. 05通过 Streamable HTTP 远程访问

适用场景

  1. 01用当前网页结果为 Agent 回答提供依据
  2. 02获取研究所需的来源链接
  3. 03在搜索结果中附带回答

MCP 相关

通过 Streamable HTTP 远程端点向 MCP 客户端提供 `searchpipe_search` 工具。客户端可在 URL 或 Authorization 请求头中提供 API 密钥。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://searchpipe.tech/mcp/
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://searchpipe.tech/mcp/需要授权

工具

2
参数类型必填说明
querystring是
api_keyany否
max_resultsinteger否
include_answerboolean否
include_raw_contentboolean否

详细介绍

SearchPipe 集成

MCP SearchPipe

SearchPipe 的官方集成包。SearchPipe 是面向 AI Agent 开发者的网页搜索 API 和 MCP 服务。

此仓库包含:

  • 远程 MCP 端点 — 通过 Streamable HTTP 将任何 MCP 客户端连接到 SearchPipe(无需本地安装)
  • LangChain SDK — 使用 pip install langchain-searchpipe 安装,提供检索器、工具和答案组件
  • Python SDK — 使用 pip install searchpipe 安装,是 Search API 的官方轻量客户端
  • TypeScript SDK — 使用 npm install searchpipe 安装,是官方零依赖客户端(ESM + CJS)

SearchPipe 服务本身是由 searchpipe.tech 提供的托管服务。可应要求提供自托管方案。

MCP 访问(远程)

将以下内容添加到 MCP 客户端配置中(Claude Desktop、Cursor、Windsurf 等):

{
  "mcpServers": {
    "searchpipe": {
      "url": "https://searchpipe.tech/mcp/?api_key=sp-your-api-key-here"
    }
  }
}

也可以使用 Authorization 标头,而不是 URL 参数:

{
  "mcpServers": {
    "searchpipe": {
      "url": "https://searchpipe.tech/mcp/",
      "headers": {
        "Authorization": "Bearer sp-your-api-key-here"
      }
    }
  }
}

可参阅 claude_desktop_config.json.example,其中提供了可直接复制的模板。

LangChain 集成

pip install langchain-searchpipe

完整用法示例(检索器、工具和答案组件)请参阅 langchain-searchpipe/README.md。

官方 SDK

两个 SDK 都是对 POST /search 的轻量封装,使用与 REST API 相同的参数和响应结构。

Python(sdks/python/):

pip install searchpipe
from searchpipe import SearchPipe

client = SearchPipe(api_key="sp-YOUR_KEY")
resp = client.search("FastAPI tutorial", max_results=5, include_answer=True)
print(resp.answer)
for r in resp.results:
    print(r.score, r.title, r.url)

JavaScript / TypeScript(sdks/typescript/):

npm install searchpipe
import { SearchPipe } from "searchpipe";

const client = new SearchPipe({ apiKey: "sp-YOUR_KEY" });
const resp = await client.search({ query: "FastAPI tutorial", maxResults: 5, includeAnswer: true });
console.log(resp.answer);

两者默认使用 https://searchpipe.tech,并从 SEARCHPIPE_API_KEY 读取密钥。完整 API、错误类和自托管选项请参阅各 SDK 的 README。

获取 API 密钥

  1. 在 searchpipe.tech 注册
  2. 验证电子邮件
  3. 前往 Dashboard → API Keys → 复制你的 sp- 密钥
  4. 新账户会获赠免费额度,可用于试用服务

工具架构

searchpipe_search

执行网页搜索,可选择使用 AI 生成答案。

参数类型必填默认值说明
querystring✅—搜索查询
max_resultsinteger—5结果数量(1–20)
include_answerboolean—false是否包含 AI 生成的答案
include_raw_contentboolean—false是否包含完整页面内容
api_keystring——API 密钥(或使用环境变量 / URL 参数)

返回值:Tavily 风格的 SearchResponse,包含 query、answer、results[]。

链接

许可证

MIT

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。