librarian-mcp
Verified Safeby a-pogany
Overview
An enterprise-grade documentation search system that makes technical documentation accessible to LLMs and humans through an MCP (Model Context Protocol) server with advanced Retrieval Augmented Generation (RAG) capabilities.
Installation
cd backend && python main.pyEnvironment Variables
- MCP_HOST
- MCP_PORT
- LOG_LEVEL
- SEARCH_MODE
- ENABLE_EMBEDDINGS
- MCP_SSE_URL
- AGENT_PORT
- AGENT_USE_LLM
- LLM_PROVIDER
- OPENAI_API_KEY
- OPENAI_MODEL
- OPENAI_BASE_URL
- OLLAMA_BASE_URL
- OLLAMA_MODEL
Security Notes
The system generally follows good security practices by running on localhost by default and loading sensitive API keys (OpenAI) from environment variables. There is no direct evidence of 'eval' or other highly dangerous functions being used without justification. File operations are confined to a configurable 'docs_root'. Potential risks include: - The Node.js agent layer uses `app.use(cors())` without explicit origin configuration, which defaults to allowing all origins. While the server defaults to localhost, if deployed publicly without proper CORS configuration, this could expose the API to cross-site request forgery (CSRF) or data exfiltration. - If LLM query rewriting (via OpenAI/Ollama) is enabled and configured with an external provider like OpenAI, user queries may be sent to a third-party LLM service. This is an inherent privacy consideration for RAG systems, but the option to use a local Ollama server or disable rewriting mitigates this. Users should be aware of data handling policies if using external LLMs. - The system indexes files from a `docs_root` path. If this path contains highly sensitive information and the server were compromised or exposed via an unforeseen vulnerability (not evident in the provided code), it could lead to information disclosure.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
End-to-End-Agentic-Ai-Automation-Lab
This MCP Server provides an API gateway for an AutoGen multi-agent system to interact with Notion via the Model Context Protocol (MCP), enabling AI-driven automation of Notion tasks and public exposure through ngrok.
mcp-advisor
Provides LLMs and humans with structured access to the Model Context Protocol (MCP) specification and documentation for understanding and compliance evaluation.
arXiv-mcp
Provides a Model Context Protocol (MCP) server for searching and retrieving arXiv academic papers for LLMs.