mcp_server4j
Verified Safeby jeremylem
Overview
Provides a local Java-based knowledge base for Retrieval-Augmented Generation (RAG), supporting hybrid keyword and vector search over multi-format documents via the Model Context Protocol (MCP).
Installation
sh start_mcp.shEnvironment Variables
- CHROMA_HOST
- CHROMA_PORT
- CHROMA_COLLECTION
- SERVER_PORT
- RETRIEVAL_BM25_WEIGHT
- RETRIEVAL_VECTOR_WEIGHT
- RETRIEVAL_CANDIDATE_POOL_SIZE
- SPRING_PROFILES_ACTIVE
Security Notes
The code uses Lucene's QueryParser.escape() to sanitize search queries, mitigating potential query injection vulnerabilities. Network and collection configurations are externalized via environment variables with sensible defaults, avoiding hardcoded secrets. No dynamic code execution (e.g., eval equivalent) or obvious malicious patterns were identified. A basic health endpoint is provided for service monitoring.
Similar Servers
qdrant-loader
A Model Context Protocol (MCP) server that provides advanced Retrieval-Augmented Generation (RAG) capabilities to AI development tools by bridging a QDrant knowledge base for intelligent, context-aware search.
viberag
Local codebase semantic search (RAG) for AI coding assistants via MCP server.
concept-rag
This MCP server provides conceptual search, document analysis, and library exploration capabilities over a knowledge base using LanceDB and LLM-based concept extraction.
the-pensieve
The Pensieve server acts as a RAG-based knowledge management system, allowing users to store, query, and analyze their knowledge using natural language and LLM-powered insights.