mcp-rag-server
Verified Safeby Daniel-Barta
Overview
Provides a local, zero-network Retrieval-Augmented Generation server for any code repository, enabling semantic search and file access through the Model Context Protocol (MCP) for AI clients like GitHub Copilot Agent.
Installation
export REPO_ROOT="/path/to/your-repo"; npm startEnvironment Variables
- REPO_ROOT
Security Notes
The server demonstrates strong security practices for a local RAG solution. It explicitly enables DNS rebinding protection by default in HTTP mode and restricts allowed hosts to localhost. Crucially, path handling functions like `Indexer.ensureWithinRoot` are used to prevent directory traversal attacks, ensuring that file operations are confined to the specified `REPO_ROOT`. No hardcoded sensitive secrets or malicious patterns were identified. File system operations are either confined to the repository root or managed cache locations, or validated against traversal attempts.
Similar Servers
context-portal
Manages structured project context for AI assistants and developer tools, enabling Retrieval Augmented Generation (RAG) and prompt caching within IDEs.
Context-Engine
Self-improving code search and context engine for IDEs and AI agents, providing hybrid semantic/lexical search, symbol graph navigation, and persistent memory.
mcp-local-rag
Provides a local, RAG-like web search tool for Large Language Models to retrieve current information and context.
End-to-End-Agentic-Ai-Automation-Lab
This MCP Server provides an API gateway for an AutoGen multi-agent system to interact with Notion via the Model Context Protocol (MCP), enabling AI-driven automation of Notion tasks and public exposure through ngrok.