
mcpsurfr
io.github.nkapila6由 GitHub 账号 nkapila6 发布v1.2.3更新于 Oct 30, 2026
Local web search with multi-engine deep research and on-device re-ranking. No API keys.
概览
无需 API 密钥的本地网页搜索 MCP 服务器,可同时查询多个搜索引擎,在本机重排结果,只返回相关段落或整页正文。
- 可以做什么
- 跨多个搜索引擎检索网页,只返回能回答问题的段落,并附带标题与日期
- 抓取整页并转为干净正文,支持 PDF 和提供 markdown 副本的文档站,受统一文本预算限制
- 对多个检索词和多个后端做深度研究,合并去重,可返回整页或仅段落
- 读取已有链接的单个页面,可只返回与查询匹配的段落
- 按时间范围、地区、包含或排除域名筛选,并支持带日期的新闻结果
- 列出被跳过的页面及原因,并标注截断与警告信息
- 适用场景
- 适合助手需要最新网页信息但不想申请搜索 API 密钥的场景,也适合希望在本机把网页精简为有用内容、而非交给托管抽取服务的情况。可用于研究性问题、查文档和看新闻。
- 运行要求
- 以 stdio 方式在本机运行,可通过 uvx 从 PyPI 启动,或使用 Docker 镜像(amd64 与 arm64)。无需 API 密钥或账号。搜索与抓取页面需要网络访问。可选设置如 MCPSURFR_MAX_CHARS、MCPSURFR_DEEP_RESEARCH_MODE、MCPSURFR_CACHE_TTL 和 MCPSURFR_LEGACY_TOOLS 通过环境变量传入,Docker 下用 -e 参数。
安装
在 SourceWeft 中
- 打开 控制台中的 mcpsurfr,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Local web search for your LLM over MCP. No API keys, and results are ranked on your machine.
Formerly mcp-local-rag.
[PyPI] [Python versions] [Docker image] [MIT license] [Ask DeepWiki]
[Add to LM Studio] [Add to Cursor] [Install in VS Code]
What's in it:
- No API keys. Searches go through ddgs. Its
automode asks several engines at once and skips blocked ones. - Ranked locally. A small MobileBERT model on plain numpy re-ranks results, so only the best pages get fetched.
- Clean text. Pages are fetched with browser impersonation, and only the main content is kept: no menus, cookie banners or footers. Code blocks and tables keep their lines. PDFs are read too (text layer, first 50 pages), and docs sites that publish markdown copies of their pages (llms.txt) are read from those. The same page under two URLs comes back once.
- Passages instead of pages.
searchreturns just the paragraphs that answer the question, about a tenth of the tokens, anddeep_researchcan do the same per search term. When nothing matches well,searchcan ask you whether you want the full pages instead. - Reads the sites that block scrapers. Stack Overflow and the other Stack Exchange sites, Wikipedia, GitHub, Hacker News, PyPI, npm and crates.io go through their free APIs: questions with the accepted answer first, articles by section, READMEs and raw files, HN threads with their comments, and packages with their latest version, release date and README.
- Titles and dates. Every page and passage carries its title, and its publish date when the page or news result has one.
- Says what it left out. Results list skipped pages with a reason (blocked, JavaScript-only, duplicate...) and the search snippet for each, so a Reddit thread or an msn.com article still says something. Cut pages are marked
truncated, and fallbacks and engine failures show up aswarnings. Google blocks often, so it falls back toautoon its own. - Quick on repeats. Searches and pages are kept for five minutes, so a follow-up call on the same pages doesn't fetch them again.
- Brings its own guide. It serves a skill and a
researchprompt, so clients pick up how to use it without setup.
The search tools also take recency (day, week, month, year), region (uk-en, de-de...), include_domains / exclude_domains, and news: true for dated news articles.
The old rag_search_google, deep_research_ddgs and deep_research_google presets are hidden by default. Options says why and how to turn them back on.
Backends: auto (default), brave, duckduckgo, google, grokipedia, mojeek, startpage, wikipedia, yahoo. auto and brave are the dependable ones. With news: true: auto, bing, duckduckgo, yahoo.
How it compares
Other keyless MCP servers (mcp-searxng, duckduckgo-mcp-server, open-webSearch, the official fetch server) hand the model snippets or whole pages. Hosted APIs like Tavily, Exa and Brave do cut pages down to the useful parts, but they need a key and do it on their servers. mcpsurfr does that part on your machine:
- picks passages with BM25 on the query plus keywords the model supplies, and an on-device embedder for ties and paraphrases
- drops near-duplicate pages and shares one text budget across the rest
- tells the model what it skipped and why, and can ask you before falling back to full pages
What it doesn't do: JavaScript-only pages, OCR for scanned PDFs, image search.
Install
From PyPI with uv:
uvx keeps using the version it cached first. Use "mcpsurfr@latest" to pick up new releases on every start (about a second slower), or "mcpsurfr@<version>" to pin one. uv tool install mcpsurfr works too, with "command": "mcpsurfr".
Or with Docker (amd64 and arm64):
Options
All settings are optional. These configs set each one to its default, so change only what you need. With uvx they go in env:
Why the legacy tools are off: they're just rag_search_ddgs and deep_research with a fixed backend, which the search tools now take themselves. Each tool's name, description and parameters get sent to the model in every chat whether it's used or not, so three duplicates cost context for nothing and give the model more ways to pick the wrong one.
With Docker, env only reaches the docker command, not the container, so the settings go in args with -e, before the image name. The same defaults:
Not sure where your config lives? See the MCP quickstart. Tested with Claude Desktop, Claude Code, Cursor and Goose.
Coming from mcp-local-rag? Your old config keeps working, since the old URL redirects and the mcp-local-rag command still exists. Switching to the config above gets you the new name and drops the --python=3.10 pin (3.10 is end of life as of October 2026). If your prompts call rag_search_google or deep_research_google by name, set MCPSURFR_LEGACY_TOOLS to 1 (see Options).
Skill and prompt
The mcpsurfr-search skill tells the model which tool and backend to pick and how to cite. The server serves it as skill://mcpsurfr-search/SKILL.md, so most clients need nothing extra. To add it to Claude Desktop by hand: Settings → Skills → Add from folder, then pick src/mcpsurfr/skills/mcpsurfr-search/.
The research(topic) prompt plans a few search terms, runs deep_research and writes a cited summary.
Example
Asking Claude Desktop about something newer than its training data:
[图片] [图片]Security audit by MseeP · Issues and PRs welcome · MIT licensed · Buy me a coffee if it helps you
来源:README.md,提交 ecad09c
工具
0版本历史
2- v1.2.3最新Oct 29, 2026
- v1.1.1Oct 23, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分