Back to Home
alejandro-ao icon

simple-mcp-rag

Verified Safe

by alejandro-ao

Overview

An MCP server for Retrieval Augmented Generation (RAG) that ingests documents into a vector database and retrieves relevant information based on queries.

Installation

Run Command
python rag_server.py

Environment Variables

  • LLAMA_CLOUD_API_KEY
  • LLAMA_RAG_DATA_DIR
  • LLAMA_RAG_DB_DIR

Security Notes

The server performs extensive file system operations, including reading from a data directory (`SimpleDirectoryReader`) and managing a database directory (`shutil.rmtree` for resets). While these are core to its RAG functionality, a misconfigured `LLAMA_RAG_DATA_DIR` or `LLAMA_RAG_DB_DIR` environment variable could lead to reading sensitive files or deleting unintended directories. There are no obvious `eval` or arbitrary code execution vulnerabilities in the provided code snippets. External API calls are made to `LlamaParse`, which requires `LLAMA_CLOUD_API_KEY` (handled via environment variables). The primary risk is with environment variable configuration and the contents of the data directory if the server is exposed to untrusted inputs or runs in an untrusted environment.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens50000
Stars0
Forks0
Last Update2025-11-20

Tags

RAGVector DatabaseDocument ManagementSemantic SearchMCP