mcp-rag-server
Verified Safeby Daniel-Barta
Overview
Provides a local Retrieval-Augmented Generation (RAG) server for any code repository, integrating with clients that speak the Model Context Protocol (MCP) like GitHub Copilot Agent.
Installation
npm startEnvironment Variables
- REPO_ROOT
Security Notes
The server implements strong security measures. It includes explicit path traversal prevention using `Indexer.ensureWithinRoot` to constrain all file operations to `REPO_ROOT`. For the HTTP transport, it offers DNS rebinding protection and configurable host allow-lists by default. No `eval` or direct command injection points were identified. Configuration uses environment variables, avoiding hardcoded secrets.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
Context-Engine
A Retrieval-Augmented Generation (RAG) stack for codebases, enabling context-aware AI agents for developers and IDEs through unified code indexing, hybrid search, and local LLM integration.
mcp-local-rag
Provides a local RAG-like web search capability for LLMs through the Model Context Protocol without external APIs.
sourcegraph-mcp
Provides AI-enhanced code search and content fetching capabilities from Sourcegraph instances to LLM agents.