About Context Lens
Context Lens is an MCP server published by cornelcroi in the AI category: semantic search knowledge base for MCP-enabled AI assistants. Index local files or GitHub repos, query with natural language. Built on LanceDB vector storage. Works with Claude Desktop, Cursor, and other MCP clients. Conduid read 6 tools from its source: add_document, clear_knowledge_base, get_document_info, list_documents, remove_document and search_documents. It is published to PyPI as context-lens and runs with uvx.
The repository has 24 stars and 2 forks, is licensed MIT, and its last commit was on 20 Nov 2025. The latest release is v0.1.8 (15 Nov 2025): Changes in this release Installation pip install context-lens==0.1.8 Or use with uvx: uvx context-lens. It follows v0.1.7 (12 Nov 2025), and the 5 most recent releases go back to v0.1.4 (12 Nov 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include kiro, embedding, anthropic-claude and fastmcp.
Install
uvx context-lenspip install context-lensgit clone https://github.com/cornelcroi/context-lensTools (6)
add_documentAdds a document or GitHub repository to the knowledge base.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path to document file, GitHub URL, or direct file URL |
clear_knowledge_baseRemoves all documents from the knowledge base.get_document_infoGets metadata and statistics about a document in the knowledge base.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path of the document |
list_documentsLists all documents in the knowledge base with pagination support.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of documents to return. Default is 100 |
| offset | integer | Number of documents to skip for pagination. Default is 0 |
remove_documentRemoves a document from the knowledge base.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Path of the document to remove |
search_documentsSearches documents using semantic vector similarity to find relevant content.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of results to return (1-100). Default is 10 |
| query * | string | Natural language search query (1-10,000 characters) Examples: "How does authentication work?", "database connection patterns" |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 35 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/context_lens/main.py:77, src/context_lens/main.py:77, src/context_lens/main.py:77
- Starts other programs
- 1 callsrc/context_lens/utils/github_handler.py:121
- Outbound network calls
- 4 callssrc/context_lens/utils/url_fetcher.py:80, src/context_lens/utils/url_fetcher.py:101, src/context_lens/utils/url_fetcher.py:104
- Writes or deletes files
- 5 callssrc/context_lens/server.py:48, src/context_lens/services/document_service.py:299, src/context_lens/utils/github_handler.py:138
- Lockfile
- uv.lock
Pattern matches on the source text of 35 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README