Back to Home
Kaiohz icon

mcp-raganything

Verified Safe

by Kaiohz

Overview

A FastAPI application providing a REST API and MCP server for Retrieval Augmented Generation (RAG) using the RAG-Anything library, integrated with Claude Desktop.

Installation

Run Command
uv run --directory /absolute/path/to/mcp-raganything python -m src.main

Environment Variables

  • OPEN_ROUTER_API_KEY
  • RAG_STORAGE_TYPE
  • COSINE_THRESHOLD
  • MCP_TRANSPORT
  • LIGHTRAG_API_URL
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_DATABASE
  • POSTGRES_HOST
  • POSTGRES_PORT

Security Notes

The application correctly uses environment variables for sensitive configurations like API keys, which is good practice. CORS `allow_origins` defaults to `["*"]`, which is overly permissive for production and should be restricted. File uploads via `/api/v1/file/index` save to a temporary directory; while generally safe, the processing by underlying libraries like `Docling` or `RAGAnything` should be sandboxed to prevent execution of malicious content, and `file.filename` should be robustly sanitized against directory traversal. Request forwarding to the LightRAG server carries `Authorization` headers, relying on LightRAG's security for handling these credentials. No direct `eval` or obvious command injection vulnerabilities were found in the provided code.

Similar Servers

Stats

Interest Score48
Security Score7
Cost ClassHigh
Avg Tokens2500
Stars3
Forks0
Last Update2025-12-13

Tags

RAGMulti-modalKnowledge GraphFastAPIMCP Server