KnowledgeMCP
Verified Safeby maxzrff
Overview
An MCP server that enables AI coding assistants and agentic tools to leverage local knowledge through semantic search.
Installation
python -m src.mcp.serverEnvironment 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
rmcp
Perform sophisticated statistical analysis, econometrics, machine learning, and time series tasks using natural language conversations with AI assistants, demonstrating capabilities through a web interface.
ls-mcp
Command-line tool for discovering, analyzing, and reporting on Model Context Protocol (MCP) server configurations in a local development environment.
nanobanana-mcp-server
Provides AI-powered image generation and editing capabilities through Google's Gemini models with intelligent model selection.
karma
A modern, dark-themed chat interface demonstrating the Karma Memory system for AI agents, enabling context-aware conversations and dynamic switching of memory retrieval and caching strategies.