Back to Home
tbrandenburg icon

pycontextify

Verified Safe

by 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

Run Command
uv run pycontextify --verbose

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens20
Stars0
Forks0
Last Update2025-11-20

Tags

semantic searchknowledge graphcode analysisdocument processingMCP server