
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 分