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
Serves as an AI assistant backend to perform comprehensive statistical analysis, econometric modeling, machine learning, time series analysis, and data science tasks using R through natural language conversations.
ls-mcp
A command-line tool for discovering, analyzing, and reporting on Model Context Protocol (MCP) server configurations in a local development environment, including their status, versioning, and potential credential exposures.
nanobanana-mcp-server
AI-powered image generation and editing using Google Gemini models (Flash and Pro) with intelligent model selection via Model Context Protocol.
karma
Provides a plug-and-play Knowledge Graph service via the Model Context Protocol (MCP), allowing AI agents to store, retrieve, and manage structured and unstructured knowledge (entities, relations, observations).