Back to Home
Pond500 icon

rag-mcp-server

by Pond500

Overview

This server implements a Multi-Knowledge Base RAG system, allowing AI agents to upload, manage, and semantically search documents across multiple knowledge bases through a FastAPI-based MCP (Model Context Protocol) API.

Installation

Run Command
python -B -m uvicorn mcp_server_multi_kb:app --host 0.0.0.0 --port 8000

Environment Variables

  • LLM_API_BASE
  • LLM_API_KEY
  • LLM_MODEL_NAME

Security Notes

CRITICAL: The `LLM_API_KEY` in `app/config.py` has a hardcoded default value, which is a severe security vulnerability as it can lead to API key leakage if the `.env` file is not properly configured or if the server is run in an exposed environment. The `OCR_API_ENDPOINT` is hardcoded to an external IP, creating a single point of failure and potential data privacy concerns. The server is configured to listen on `0.0.0.0`, making it accessible from any network interface without any explicit authentication or authorization layer at the API level, relying solely on the integrating AI agent (e.g., Dify) for access control. This makes it highly vulnerable if exposed directly to the internet.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassHigh
Avg Tokens10000
Stars0
Forks0
Last Update2025-11-27

Tags

RAGMulti-KBSemantic SearchDocument ManagementAI AgentsFastAPIQdrant