Back to Home
aruc-dev icon

doc-rag-mcp-server

Verified Safe

by aruc-dev

Overview

A Retrieval Augmented Generation (RAG) system for ingesting documents and performing AI-powered semantic search.

Installation

Run Command
python rag_mcp_server.py

Environment Variables

  • LLM_PROVIDER
  • GOOGLE_GEMINI_API_KEY
  • OLLAMA_BASE_URL
  • OLLAMA_MODEL
  • OLLAMA_EMBEDDING_MODEL

Security Notes

The system uses environment variables for API keys and adheres to good practices by excluding `.env` from version control. The core MCP server communicates via stdio, limiting direct network exposure. However, the `ingest_document` tool directly accepts a `file_path: str`. If the server were deployed in an environment accessible to untrusted users, this could be exploited for Local File Inclusion (LFI) to read arbitrary files from the server's filesystem, or for Denial of Service (DoS) by ingesting extremely large files. For a local, trusted user setup, this risk is mitigated.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens870
Stars0
Forks0
Last Update2025-11-28

Tags

RAGMCPAIDocument ProcessingSemantic Search