Installation¶
Requirements¶
- Python 3.10 or later
- pip or uv package manager
Basic Installation¶
Install the core library:
Or with uv:
Optional Features¶
MCP Server¶
For integration with Claude Code, Cursor, or other MCP clients:
Semantic Search¶
There are two options for semantic search:
Lightweight (API-based)¶
Use Ollama or OpenAI for embeddings. Smaller install, no torch required:
Requires either:
- Ollama: Running Ollama server (configure with
OLLAMA_HOSTenv var) - OpenAI: Set
OPENAI_API_KEYenvironment variable
Heavyweight (Local)¶
Use sentence-transformers for fully local embeddings. Larger install (includes PyTorch):
All Features¶
For Docker or production deployments (MCP + lightweight embeddings):
For full local development with sentence-transformers:
Development Installation¶
For contributing to the project:
git clone https://github.com/pvliesdonk/if-craft-corpus.git
cd if-craft-corpus
pip install -e ".[dev]"