MCP Catalogs
Homecontext-lens screenshot

context-lens

by cornelcroi·22·Score 42

Semantic search knowledge base for MCP-enabled AI assistants that indexes local files or GitHub repos using LanceDB vector storage.

searchdeveloper-toolsai-llm
2
Forks
1
Open issues
6 mo ago
Last commit
2d ago
Indexed

Overview

Context Lens transforms any content into a searchable knowledge base for AI assistants using semantic search. It's a self-contained MCP server with built-in vector storage that understands meaning rather than just matching keywords. The tool uses LanceDB as a serverless vector database, making it completely local and private with no external API calls required. It supports multiple file formats with smart parsing that preserves code structure and creates meaningful chunks for better search results.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Indexing codebases to quickly understand complex projects and answer specific questions about implementation
you:Analyzing documentation and contracts to find specific clauses and terms across multiple documents
you:Building knowledge bases from GitHub repositories to enable AI assistants to understand open source projects
you:What file types does Context Lens support?
you:How does Context Lens handle different programming languages?

When to choose this

Choose Context Lens when you need semantic search capabilities for local files or GitHub repositories without setting up external services or cloud infrastructure.

When NOT to choose this

Avoid Context Lens if you need to search very large repositories (limited to 10MB per file), require collaborative features, or need to index non-textual file types.

Tools this server exposes

6 tools extracted from the README
  • add_document

    Add files, folders, or GitHub URLs to the knowledge base

  • search_documents

    Semantic search across all indexed content

  • list_documents

    Browse all indexed documents

  • get_document_info

    Get metadata about a specific document

  • remove_document

    Remove specific documents from the knowledge base

  • clear_knowledge_base

    Remove all documents from the knowledge base

Comparable tools

semantic-search-mcpfile-search-mcpgithub-mcpask-mcp

Installation

Installation

Context Lens is available via PyPI and can be installed with:

pip install context-lens

Claude Desktop Setup

Add to Claude Desktop configuration:

{
  "mcpServers": {
    "context-lens": {
      "command": "uvx",
      "args": ["context-lens"]
    }
  }
}

Cursor Setup

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "context-lens": {
      "command": "uvx",
      "args": ["context-lens"]
    }
  }
}

Other MCP Clients

For any MCP-compatible client:

{
  "mcpServers": {
    "context-lens": {
      "command": "uvx",
      "args": ["context-lens"]
    }
  }
}

FAQ

What file types does Context Lens support?
Context Lens supports 25+ file types including Python, JavaScript/TypeScript, JSON, YAML, Markdown, Rust, and many more text-based formats. Maximum file size is 10MB.
How does Context Lens handle different programming languages?
Context Lens uses smart parsing tailored to each language. For Python, it parses using AST; for JSON/YAML it parses structurally; for Markdown it splits by headers. This preserves natural structure and creates meaningful chunks.

Compare context-lens with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.