Back to Home
a-pogany icon

librarian-mcp

Verified Safe

by 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

Run Command
cd backend && python main.py

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Stars0
Forks0
Last Update2026-01-11

Tags

RAGDocumentation SearchLLM IntegrationSemantic SearchHybrid SearchEnterpriseMCPInformation RetrievalEmail Search