About nkapila6/mcp-local-rag
nkapila6/mcp-local-rag is an MCP server published by nkapila6 in the AI category: "primitive" RAG-like web search model context protocol (MCP) server that runs locally. ✨ no APIs ✨. Conduid read 4 tools from its source: deep_research, rag_search_ddgs, read_url and search. It is published to PyPI as mcpsurfr and runs with uvx.
The repository has 151 stars and 22 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v1.0.4 (10 Jun 2026). It follows v1.0.3 (4 Apr 2026), and the 4 most recent releases go back to v1.0.1 (28 Jan 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include rag and web-seach.
Install
uvx mcpsurfrpip install mcpsurfrgit clone https://github.com/nkapila6/mcp-local-ragTools (4)
deep_researchSeveral search terms across backends, merged and de-duplicated. `passages: true` returns only the relevant passages per term| Parameter | Type | Description |
|---|---|---|
| backends | array | Backends to use. Defaults to ["auto"]. Unknown names are skipped with a warning. |
| exclude_domains | array | Never results from these sites. Example: ["pinterest.com"] |
| include_domains | array | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] |
| include_urls | boolean | Whether to include each page's source URL. |
| max_passages | integer | Passages to return in passages mode, shared across terms. Default 12. |
| news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
| num_results_per_term | integer | Number of results to rank per search term per backend. |
| passages | boolean | True returns only the passages that answer each term, about a tenth of the text of full pages: prefer it unless whole pages are needed. False returns full pages. Left out, the server's MCPSURFR_DEEP_RESEARCH_MODE decides (pages by default). |
| recency | any | Applied to every term. Only results from the past "day", "week", "month" or "year". |
| region | string | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). |
| search_terms * | array | 2-5 specific, related search queries covering different angles. Example: ["postgres query planner", "postgres index types", "EXPLAIN ANALYZE tutorial"] |
| top_k_per_term | integer | Number of top-ranked results to keep per search term per backend. |
rag_search_ddgsFull pages as text (the original mode). Takes a `backend`| Parameter | Type | Description |
|---|---|---|
| backend | string | Search backend, same names as deep_research. Default "auto" (ddgs metasearch over several engines, skipping blocked ones). Non-auto backends that return nothing are retried with "auto". |
| exclude_domains | array | Never results from these sites. Example: ["pinterest.com"] |
| include_domains | array | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] |
| include_urls | boolean | Whether to include each page's source URL for citation. Default: True |
| news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
| num_results | integer | Number of initial search results to rank. More results provide better coverage but increase processing time. Default: 10 |
| query * | string | The search query. Use natural language questions or keywords. Example: "latest developments in quantum computing" |
| recency | any | Only results from the past "day", "week", "month" or "year". |
| region | string | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). |
| top_k | integer | Number of top-ranked pages to fetch and return. Default: 5 |
read_urlOne page you already have the link for. Pass a `query` to get only the passages that answer it| Parameter | Type | Description |
|---|---|---|
| keywords | array | Terms a good answer would contain, as for search. |
| max_passages | integer | Passages to return when there's a query. Default 8. |
| query | string | What you want from the page. Leave out to get the whole text. |
| url * | string | A public http(s) URL. Localhost and private network addresses are refused. |
searchStart here: returns only the relevant passages. Pass `keywords` for better hits| Parameter | Type | Description |
|---|---|---|
| backend | string | Search backend, same names as deep_research. Default "auto". |
| exclude_domains | array | Never results from these sites. Example: ["pinterest.com"] |
| include_domains | array | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] |
| keywords | array | Terms a good answer would contain, including synonyms and exact phrases. Example for "how do I make postgres faster": ["index", "EXPLAIN ANALYZE", "query planner", "vacuum"]. Strongly improves results. |
| max_passages | integer | Passages to return. Default 8. |
| news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
| num_results | integer | Search results to consider. Default 10. |
| query * | string | The question or topic, in natural language. |
| recency | any | Only results from the past "day", "week", "month" or "year". |
| region | string | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). |
| top_pages | integer | Pages to fetch and split. Default 5. |
Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 922 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 4 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
Releases
README
The repository's README runs to about 922 words, fetched a month ago. The original in the repository is authoritative.
Read full README