pycontextify
Verified Safeby tbrandenburg
Overview
Provides a semantic search server with lightweight knowledge graph capabilities for diverse knowledge sources like codebases and documents, integrated via the MCP protocol for AI assistants.
Installation
uv run pycontextify --verboseEnvironment Variables
- PYCONTEXTIFY_EMBEDDING_MODEL
- PYCONTEXTIFY_EMBEDDING_PROVIDER
- PYCONTEXTIFY_INDEX_DIR
- PYCONTEXTIFY_AUTO_PERSIST
- PYCONTEXTIFY_AUTO_LOAD
- PYCONTEXTIFY_CHUNK_SIZE
- PYCONTEXTIFY_USE_HYBRID_SEARCH
- PYCONTEXTIFY_OLLAMA_BASE_URL
- PYCONTEXTIFY_OPENAI_API_KEY
Security Notes
The code generally follows good security practices, using `pathlib` for path manipulation and validating inputs. Hardcoded secrets are explicitly avoided, with `openai_api_key` being read from environment variables. The `BootstrapService` for downloading index archives is a potential supply chain risk if the archive URLs are untrusted, as it downloads and extracts remote content. However, it includes checksum verification to ensure integrity, which is a mitigating factor. `subprocess.run` calls are controlled and do not appear vulnerable to injection from user input within the server itself. No `eval` or obvious obfuscation patterns were found.
Similar Servers
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
codebase-RAG
A Retrieval-Augmented Generation (RAG) server designed to assist AI agents and developers in understanding and navigating codebases through semantic search.
semantic-code-search-mcp-server
This MCP server exposes indexed code data to AI coding agents, enabling structured interaction for codebase understanding, code discovery, symbol analysis, and file content reconstruction.
viberag
Local codebase semantic search (RAG) for AI coding assistants via MCP server.