by nkapila6
Web search MCP server that does search result reranking locally on your machine, formerly known as mcp-local-rag. ✨ no API keys ✨
# Add to your Claude Code skills
git clone https://github.com/nkapila6/mcpsurfrmcpsurfr is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by nkapila6. Web search MCP server that does search result reranking locally on your machine, formerly known as mcp-local-rag. ✨ no API keys ✨. It has 151 GitHub stars.
mcpsurfr's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/nkapila6/mcpsurfr" and add it to your Claude Code skills directory (see the Installation section above).
mcpsurfr is primarily written in Python. It is open-source under nkapila6 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcpsurfr against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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:
auto mode asks several engines at once and skips blocked ones.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.truncated, and fallbacks and engine failures show up as warnings. Google blocks often, so it falls back to auto on its own.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.
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:
What it doesn't do: JavaScript-only pages, OCR for scanned PDFs, image search.
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"]
}
}
}
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).
The [mcpsurfr-search](https://github.com/nkapila6/mcpsurfr/blob/main/src/mcpsurfr/skills/mcpsurfr-search/SKILL.md