mcp-local-rag
mcp-本地-rag
本地运行的“原始” RAG 类 Web 搜索模型上下文协议 (MCP) 服务器。✨ 无 API ✨
%%{init: {'theme': 'base'}}%%
flowchart TD
A[User] -->|1.Submits LLM Query| B[Language Model]
B -->|2.Sends Query| C[mcp-local-rag Tool]
subgraph mcp-local-rag Processing
C -->|Search DuckDuckGo| D[Fetch 10 search results]
D -->|Fetch Embeddings| E[Embeddings from Google's MediaPipe Text Embedder]
E -->|Compute Similarity| F[Rank Entries Against Query]
F -->|Select top k results| G[Context Extraction from URL]
end
G -->|Returns Markdown from HTML content| B
B -->|3.Generated response with context| H[Final LLM Output]
H -->|5.Present result to user| A
classDef default stroke:#333,stroke-width:2px;
classDef process stroke:#333,stroke-width:2px;
classDef input stroke:#333,stroke-width:2px;
classDef output stroke:#333,stroke-width:2px;
class A input;
class B,C process;
class G output;安装
在此处找到您的 MCP 配置路径或检查您的 MCP 客户端设置。
通过uvx直接运行
这是最简单快捷的方法。您需要安装uv才能使用。请将以下内容添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"mcp-local-rag":{
"command": "uvx",
"args": [
"--python=3.10",
"--from",
"git+https://github.com/nkapila6/mcp-local-rag",
"mcp-local-rag"
]
}
}
}使用 Docker(推荐)
确保已安装Docker 。将其添加到你的 MCP 服务器配置中:
{
"mcpServers": {
"mcp-local-rag": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-e",
"DOCKER_CONTAINER=true",
"ghcr.io/nkapila6/mcp-local-rag:latest"
]
}
}
}安全审计
MseeP 对每台 MCP 服务器都进行安全审计,您可以点击此处查看该台 MCP 服务器的安全审计情况。
MCP 客户端
MCP 服务器可与任何支持工具调用的 MCP 客户端兼容。已在以下客户端上测试。
克劳德桌面
光标
鹅
其他人呢?你试试!
Claude Desktop 上的示例
当法学硕士 (如 Claude) 被问及需要最新网络信息的问题时,它将触发mcp-local-rag 。
当被要求获取/查找/搜索网络时,模型会提示您使用 MCP 服务器进行聊天。
在示例中,我询问了 Google 昨天发布的最新 Gemma 模型。这是 Claude 不知道的新信息。
结果
mcp-local-rag执行实时网络搜索,提取上下文,并将其发送回模型,为其提供新的知识:
贡献
有任何想法或想改进这个项目吗?欢迎提交问题和拉取请求!
执照
该项目已获得 MIT 许可。
Maintenance
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables LLM clients like VSCode, Copilot, and Claude Desktop to search the web using Google Programmable Search Engine API.12411Apache 2.0
- AlicenseAqualityAmaintenanceA local-first, no-API-key MCP server that enables LLMs to search the web, fetch pages, and read documents using multiple engines and smart fallbacks.1048MIT
- AlicenseAqualityAmaintenanceA Model Context Protocol server for web scraping and searching, with automatic fallback from Tavily to Firecrawl for fetching web content.2MIT
- AlicenseAqualityFmaintenanceA Model Context Protocol server that exposes Google Search as a tool via scraping, requiring no API key.1MIT
Related MCP Connectors
Scrape, crawl, map & search the web. Open-source, self-hostable Rust crawler & search for AI agents.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Jina AI Reader/Search MCP — turn any URL into clean LLM-ready markdown, plus web search.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nkapila6/mcp-local-rag'
If you have feedback or need assistance with the MCP directory API, please join our Discord server