mcpsurfr

Data and AIWeb search and scraping

Local web search with multi-engine deep research and on-device re-ranking. No API keys.

Your AI app calls the mcpsurfr MCP server, which does the data and AI and web search and scraping work and sends the result back to the chat.

About mcpsurfr

mcpsurfr is a community MCP server from nkapila6, filed in our directory under data and ai and web search and scraping. Local web search with multi-engine deep research and on-device re-ranking. No API keys.

mcpsurfr runs on your own machine: your AI app starts it with the command uvx mcpsurfr==1.2.3 and talks to it over standard input and output.

mcpsurfr is listed in the official MCP registry as io.github.nkapila6/mcpsurfr, version 1.2.3.

At a glance

Publisher
nkapila6 (community)
Runs
Locally on your machine
Install from
Python package on PyPI: mcpsurfr
Written in
Python
License
MIT
GitHub stars
151
Official MCP registry
io.github.nkapila6/mcpsurfr

How to set up mcpsurfr

  1. Install uv on the machine that runs your AI app, because mcpsurfr starts with uvx and fetches its Python package on first run.
  2. Check the mcpsurfr README for keys or settings; the registry lists none that mcpsurfr requires.
  3. Add mcpsurfr to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the mcpsurfr tools to confirm the connection.
  5. Run one read-only task with mcpsurfr first, and keep your app asking before each tool call until the results look right.

mcpsurfr compared with similar servers

  • Bloodhound by mwnickerson has fewer GitHub stars than mcpsurfr (149 against 151); both are community servers, and both run locally.
  • Matryoshka by yogthos has more GitHub stars than mcpsurfr (152 against 151); both are community servers, and both run locally.
  • Btp Sap Odata To by lemaiwo has fewer GitHub stars than mcpsurfr (145 against 151); both are community servers, and both run locally.

Before you connect mcpsurfr

  • Give mcpsurfr its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each mcpsurfr tool call until you trust what it does with them.
  • Treat text that mcpsurfr fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for mcpsurfr on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for mcpsurfr

How marketing and sales teams put mcpsurfr to work, by company size. Pick the size closest to yours and start mcpsurfr on one use case.

Small business

  • A small team can use mcpsurfr to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask mcpsurfr to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • A founder can use mcpsurfr to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • mcpsurfr runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect mcpsurfr to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use mcpsurfr to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Marketing teams can use mcpsurfr to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Start mcpsurfr on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run mcpsurfr inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use mcpsurfr in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Enterprise research and competitive intel teams can schedule mcpsurfr to monitor many sources, with results stored and cited for review.
  • mcpsurfr is a community server, so have security review the code and pin a version before mcpsurfr touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

mcpsurfr README

From nkapila6/mcpsurfr on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Local web search for your LLM over MCP. No API keys, and results are ranked on your machine.
Formerly mcp-local-rag.

flowchart LR
    Q["query + keywords"] --> S["ddgs<br>several engines, no keys"]
    S --> R["re-rank<br>on device"]
    R --> F["fetch top pages<br>main text, PDFs"]
    F -->|search| P["best passages<br>~1k tokens"]
    F -->|rag_search_ddgs<br>deep_research| W["full pages<br>shared budget"]

What's in it:

  • No API keys. Searches go through ddgs. Its auto mode 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. search returns just the paragraphs that answer the question, about a tenth of the tokens, and deep_research can do the same per search term. When nothing matches well, search can 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 as warnings. Google blocks often, so it falls back to auto on 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 research prompt, so clients pick up how to use it without setup.
Tool Use it for
search Start here: returns only the relevant passages. Pass keywords for better hits
rag_search_ddgs Full pages as text (the original mode). Takes a backend
deep_research Several search terms across backends, merged and de-duplicated. passages: true returns only the relevant passages per term
read_url One page you already have the link for. Pass a query to get only the passages that answer it

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:

{
  "mcpServers": {
    "mcpsurfr": {
      "command": "uvx",
      "args": ["mcpsurfr"]
    }
  }
}

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):

{
  "mcpServers": {
    "mcpsurfr": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "--init", "ghcr.io/nkapila6/mcpsurfr:latest"]
    }
  }
}

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:

{
  "mcpServers": {
    "mcpsurfr": {
      "command": "uvx",
      "args": ["mcpsurfr"],
      "env": {
        "MCPSURFR_MAX_CHARS": "40000",
        "MCPSURFR_DEEP_RESEARCH_MODE": "pages",
        "MCPSURFR_CACHE_TTL": "300",
        "MCPSURFR_LEGACY_TOOLS": "0"
      }
    }
  }
}
Variable Default What it does
MCPSURFR_MAX_CHARS 40000 Text budget per call when returning full pages (rag_search_ddgs, deep_research, read_url without a query), shared across pages. ~4 chars per token
MCPSURFR_DEEP_RESEARCH_MODE pages What deep_research returns when a call doesn't say: pages (full text) or passages (only what answers each term, about a tenth of the tokens)
MCPSURFR_CACHE_TTL 300 Seconds searches and fetched pages are reused. 0 turns the cache off. News searches are never cached
MCPSURFR_LEGACY_TOOLS 0 1 brings back rag_search_google, deep_research_ddgs and deep_research_google, for prompts or workflows that still call them by name

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:

{
  "mcpServers": {
    "mcpsurfr": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i", "--init",
        "-e", "MCPSURFR_MAX_CHARS=40000",
        "-e", "MCPSURFR_DEEP_RESEARCH_MODE=pages",
        "-e", "MCPSURFR_CACHE_TTL=300",
        "-e", "MCPSURFR_LEGACY_TOOLS=0",
        "ghcr.io/nkapila6/mcpsurfr:latest"
      ]
    }
  }
}

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

Questions about mcpsurfr

What is the mcpsurfr MCP server?

Local web search with multi-engine deep research and on-device re-ranking. No API keys. mcpsurfr is maintained by nkapila6 on GitHub at nkapila6/mcpsurfr, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the mcpsurfr MCP server?

Add mcpsurfr to your AI app's MCP config with the command uvx mcpsurfr==1.2.3. In Claude Code, run claude mcp add --transport stdio mcpsurfr -- uvx mcpsurfr==1.2.3. To run mcpsurfr this way you need uv installed.

Does mcpsurfr need an API key?

The registry lists no required keys for mcpsurfr. Check the mcpsurfr README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is mcpsurfr an official MCP server?

No. mcpsurfr is a community server maintained by nkapila6. Community servers can be excellent; read the code and the open issues before you give mcpsurfr access to company data.

What license is mcpsurfr under?

mcpsurfr is released under the MIT license, according to its GitHub repository. The license covers the code of mcpsurfr; the service it connects to has its own terms.