Back to Home
maxzrff icon

KnowledgeMCP

Verified Safe

by maxzrff

Overview

An MCP server that enables AI coding assistants and agentic tools to leverage local knowledge through semantic search.

Installation

Run Command
python -m src.mcp.server

Environment Variables

  • KNOWLEDGE_STORAGE__DOCUMENTS_PATH
  • KNOWLEDGE_STORAGE__VECTOR_DB_PATH
  • KNOWLEDGE_STORAGE__MODEL_CACHE_PATH
  • KNOWLEDGE_EMBEDDING__MODEL_NAME
  • KNOWLEDGE_EMBEDDING__BATCH_SIZE
  • KNOWLEDGE_EMBEDDING__DEVICE
  • KNOWLEDGE_CHUNKING__CHUNK_SIZE
  • KNOWLEDGE_CHUNKING__CHUNK_OVERLAP
  • KNOWLEDGE_CHUNKING__STRATEGY
  • KNOWLEDGE_PROCESSING__MAX_CONCURRENT_TASKS
  • KNOWLEDGE_PROCESSING__OCR_CONFIDENCE_THRESHOLD
  • KNOWLEDGE_PROCESSING__MAX_FILE_SIZE_MB
  • KNOWLEDGE_OCR__ENABLED
  • KNOWLEDGE_OCR__LANGUAGE
  • KNOWLEDGE_OCR__FORCE_OCR
  • KNOWLEDGE_OCR__CONFIDENCE_THRESHOLD
  • KNOWLEDGE_MCP__HOST
  • KNOWLEDGE_MCP__PORT
  • KNOWLEDGE_MCP__TRANSPORT

Security Notes

The server is designed for local and private use, defaulting its HTTP listener to 127.0.0.1 and validating 'Origin' headers for local hosts. It lacks explicit user authentication/authorization mechanisms on its MCP HTTP endpoints, making it suitable for its intended local integration but potentially risky if exposed broadly without external security layers. Input validation is present for file paths, sizes, and formats. The 'knowledge-clear' tool performs a destructive operation (full database reset) with a boolean confirmation parameter which could be strengthened (e.g., with a confirmation phrase). No obvious hardcoded secrets or malicious patterns were found.

Similar Servers

Stats

Interest Score35
Security Score7
Cost ClassLow
Stars4
Forks1
Last Update2025-11-22

Tags

semantic searchAI integrationknowledge basedocument processingMCP servervector database