网状管道
 
本地“搜索->获取->提取”管道,作为MCP stdio服务器公开。
- 默认情况下缓存先取
- 对字节/字符/结果的明确限制
- 稳定的、模式版本化的JSON输出
- 需要零个API密钥 --默认工具曲面可以开箱即用
光标MCP设置
将此添加到您的 ~/.cursor/mcp.json:
{
"mcpServers": {
"webpipe": {
"command": "cargo",
"args": ["run", "--release", "--bin", "webpipe", "--features", "stdio", "--", "mcp-stdio"],
"cwd": "/path/to/webpipe"
}
}
}默认刀具表面(需要零键)
| 工具 | 目的 |
|---|---|
webpipe_meta | 服务器配置、功能和运行时统计数据 |
search_evidence | 主要工具:搜索→ 获取→ 提取→ 排名靠前的块 |
web_extract | 从已有的URL中提取可读文本 |
arxiv | arXiv论文:按主题搜索(query)或获取一篇论文的元数据(id_or_url) |
paper_search | 通过Semantic Scholar/OpenAlex搜索论文 |
需要API密钥的工具(仅在配置时显示):
| 工具 | 需要密钥 |
|---|---|
web_perplexity | WEBPIPE_PERPLEXITY_API_KEY |
web_fetch,arxiv_search,以及arxiv_enrich仍然可以作为别名调用,但不再出现在默认表面中。
工具烹饪书
search_evidence (主要证据工具)
URL模式(无需搜索关键字):
{
"urls": ["https://example.com/docs/install"],
"query": "installation steps",
"max_urls": 2,
"top_chunks": 4
}搜索模式(需要Brave、Tavily或SearXNG键):
{
"query": "tool-using LLM agents",
"provider": "auto",
"max_results": 5,
"max_urls": 3,
"top_chunks": 5
}紧凑型,适用于紧密的试剂循环:
{ "urls": ["https://example.com"], "query": "...", "max_urls": 1, "top_chunks": 3, "minimal_output": true }web_extract (单个URL)
{ "url": "https://example.com/docs", "include_text": true, "max_chars": 20000 }arxiv (搜索或丰富)
按主题搜索:
{ "query": "tool-using agents", "categories": ["cs.AI", "cs.CL"], "per_page": 10 }获取特定论文的元数据:
{ "id_or_url": "2401.12345", "include_discussions": true }web_perplexity (配置密钥时)
{ "query": "trade-offs between RAG and long context", "model": "sonar" }安装
# From crates.io:
cargo install webpipe
# From repo root:
cargo install --path crates/webpipe-mcp --bin webpipe --features stdio --force
# Run as MCP stdio server:
webpipe mcp-stdio快速测试
cargo test -p webpipe --features stdio -- --skip live_如果另一个cargo进程持有构建目录锁:
CARGO_TARGET_DIR=/tmp/webpipe-test-target cargo test -p webpipe --features stdio -- --skip live_隐私模式
集 WEBPIPE_PRIVACY_MODE 致:
normal(默认):允许网络offline:无网络出口(仅使用缓存)anonymous:仅通过显式代理网络(WEBPIPE_ANON_PROXY)
可选环境变量
| Var | 目的 |
|---|---|
WEBPIPE_BRAVE_API_KEY | 勇敢的搜索 |
WEBPIPE_TAVILY_API_KEY | 塔维利搜索 |
WEBPIPE_SEARXNG_ENDPOINT | 自托管SearXNG |
WEBPIPE_FIRECRAWL_API_KEY | Firecrawl远程获取 |
WEBPIPE_PERPLEXITY_API_KEY | 困惑合成 |
WEBPIPE_ANON_PROXY | 匿名模式的代理(例如。 socks5h://127.0.0.1:9050) |
CLI(不需要游标)
# List tools as an MCP client sees them:
webpipe mcp-list-tools
# Call a tool and print Markdown:
webpipe mcp-call --tool search_evidence --args-json '{"query":"example","urls":["https://example.com"],"max_urls":1}'工作区布局
crates/webpipe-core:后端不可知类型+特征crates/webpipe-local:本地实现(reqwest+缓存+提取器)crates/webpipe-mcp:CLI+MCP stdio服务器(bin webpipe)
许可证
麻省理工学院或阿帕奇-2.0
