LEANN-MCP-Setup
Verified Safeby abhinema
Overview
A multimodal RAG system for semantic search across documents and images with incremental indexing and cross-platform deployment.
Installation
python macos/inference/leann_mcp_server.pyEnvironment Variables
- CUDA_VISIBLE_DEVICES
- PYTORCH_CUDA_ALLOC_CONF
- TRANSFORMERS_CACHE
- HF_HOME
- FORCE_FP16
- OMP_NUM_THREADS
- MKL_NUM_THREADS
- PYTORCH_ENABLE_MPS_FALLBACK
- FORCE_FLOAT32
- LEANN_USE_FAKE_EMBEDDINGS
- LEANN_INDEX_DIR
- LEANN_PLATFORM
- LEANN_MODE
Security Notes
The system utilizes subprocess calls for hardware detection and index transfer (rsync/scp/aws s3), which are controlled by the system's internal scripts and not directly exposed to untrusted user input via the API. Database interactions with SQLite (`chunk_store.py`) use parameterized queries, mitigating SQL injection. The FastAPI server (`leann_mcp_server.py`) listens on `0.0.0.0:8000` by default, which is common for development but requires network security (firewall, authentication) for production. The vision search endpoint handles file uploads, but its current implementation is a placeholder, so no actual content processing yet; future implementation will require robust validation (MIME type, size) to prevent vulnerabilities. The `config.yaml` explicitly notes the need for an API key authentication layer before production, showing awareness of security concerns.
Similar Servers
mcp
This MCP server assists developers by identifying inefficient or outdated npm packages in install commands and source files, providing migration documentation.
mcp400
A Java-based server application, likely related to game development, specifically hinted as a Minecraft server.
MCP_SERVER
Provides a Micro-Agent Control Plane (MCP) server to expose smart meter data, usage calculations, and billing information as callable tools.
How-to-create-a-AWS-MCP-Server
Provides instructions or automation for deploying a Minecraft server on Amazon Web Services (AWS).