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
Transforms codebases into searchable knowledge bases for AI assistants using semantic search and regex search, with deep research capabilities for code and files.
Context-Engine
A Retrieval-Augmented Generation (RAG) stack for codebases, enabling context-aware AI agents for developers and IDEs through unified code indexing, hybrid search, and local LLM integration.
codegraph-rust
CodeGraph transforms your codebase into a semantically searchable knowledge graph to augment AI coding assistants with deep understanding and advanced reasoning capabilities beyond simple file searching.
codeweaver
CodeWeaver is an AI-first MCP server designed to provide 'exquisite context' for AI agents by offering semantic code search and code analysis capabilities.