Back to Home
guvensoft icon

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

Run Command
npm run mcp

Environment 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

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-25

Tags

Coding AgentSemantic SearchCode AnalysisHybrid RankingDeveloper Tool