What is Context Lens?
Context Lens is a self-contained MCP server with built-in serverless vector storage (LanceDB) that transforms any content—codebases, documentation, contracts, or text files—into a searchable knowledge base for AI assistants. It enables semantic understanding over keyword matching, allowing the AI to answer questions about contextually relevant information even when the exact terms are absent.
How to use Context Lens?
Add Context Lens to your MCP client configuration (Kiro IDE, Cursor, Claude Desktop, Continue.dev) using uvx context-lens. For programmatic use, invoke the server with StdioServerParameters(command="uvx", args=["context-lens"]) and interact via the Python SDK. After setup, add content by asking the AI (e.g., "Add all Python files from ./src") and query naturally (e.g., "How does the authentication system work?").
Key features of Context Lens
- Semantic search that understands meaning, not just keywords
- Zero setup: no installation, configuration, or API keys required
- Serverless vector storage with LanceDB (file-based, no cloud)
- 100% local and private: all data stays on your machine
- Index local files or public GitHub repositories
- Smart parsing: language-aware chunking for code and documents
Use cases of Context Lens
- Query a codebase: ask how authentication works, find database models, or compare frameworks without manual browsing
- Learn from open source: index a GitHub repository and ask in-depth technical questions about its internals
- Analyze documents: scan contracts for termination clauses, payment terms, or specific obligations
- Fetch files from URLs: instantly add a remote file (e.g., a README) and ask questions about its content
コメント