mcp-rag-server
by guvensoft
Overview
Provides a local Model Context Protocol (MCP) server that analyzes codebases and offers context-aware search and development tools to AI agents.
Installation
npm run mcpEnvironment Variables
- DATA_DIR
- ENGINE_HOST
- ENGINE_PORT
- INDEX_ROOT
- MCP_INDEX_ROOT
- SQLITE_DB
- REDIS_URL
- EMBEDDING_MODEL
- ANN_PROVIDER
- ANN_URL
- ANN_API_KEY
- MCP_HTTP_PORT
Security Notes
The server includes tools like `run_tests` and `run_task` that execute arbitrary shell commands or npm scripts based on agent input. While the project documentation mentions sandbox modes and approval policies for clients, the server itself allows direct execution of these commands. This represents a significant security risk if the server is exposed to untrusted inputs or not operated within a robustly sandboxed environment. File access is somewhat restricted by a policy layer (blocking sensitive file types and large files, limiting to specified roots), and network services bind to localhost by default, mitigating external attack surface.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
codegraph-rust
Transforms codebases into a semantically searchable knowledge graph, enabling AI agents to reason about code relationships, architecture, and impact rather than just performing text-based searches.
context-engine
Provides an agent-agnostic local context engine via Model Context Protocol (MCP) for coding agents, enabling semantic search, planning, code review, and prompt enhancement with AI integration.
codeweaver
A code intelligence platform that provides semantically rich, context-aware code search for AI agents, aimed at reducing cognitive load and token costs for coding tasks.