m
mcp-local-rag
community
search
"primitive" RAG-like web search model context protocol (MCP) server that runs locally using Google's MediaPipe Text Embedder and DuckDuckGo Search. ✨ no APIs required ✨.
<img src='images/rag.jpeg' width='200' height='200'>
mcp-local-rag
"primitive" RAG-like web search model context protocol (MCP) server that runs locally. ✨ no APIs ✨
<img src='images/flowchart.png' width='1000' height='500'>
Installation instructions
- You would need to install
: https://docs.astral.sh/uv/uv
If you do not want to clone in Step 2.
Just paste this directly into Claude config. You can find the configuration paths here: https://modelcontextprotocol.io/quickstart/user
{ "mcpServers": { "mcp-local-rag":{ "command": "uvx", "args": [ "--python=3.10", "--from", "git+https://github.com/nkapila6/mcp-local-rag", "mcp-local-rag" ] } } }
Otherwise:
- Clone this GitHub repository (OPTIONAL, can be skipped with above config)
git clone https://github.com/nkapila6/mcp-local-rag
- Add the following to your Claude config. You can find the configuration paths here: https://modelcontextprotocol.io/quickstart/user
{ "mcpServers": { "mcp-local-rag": { "command": "uv", "args": [ "--directory", "<path where this folder is located>/mcp-local-rag/", "run", "src/mcp_local_rag/main.py" ] } } }
Example use
On prompt
When asked to fetch/lookup/search the web, the model prompts you to use MCP server for the chat.
In the example, have asked it about Google's latest Gemma models released yesterday. This is new info that Claude is not aware about.
<img src='images/mcp_prompted.png'>
Result
The result from the local
rag_search
helps the model answer with new info.
<img src='images/mcp_result.png'>Related Servers
Aiven
official
Navigate your [Aiven projects](https://go.aiven.io/mcp-server) and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services
View DetailsApify
official
[Actors MCP Server](https://apify.com/apify/actors-mcp-server): Use 3,000+ pre-built cloud tools to extract data from websites, e-commerce, social media, search engines, maps, and more
View Details