Turn files into searchable text
Context Mole extracts embedded text, tables, document structure, and OCR from scans and images, then keeps it in one local index your agent can search again and again.
Local context built for AI agents
Context Mole extracts the text and structure from your documents, spreadsheets, slides, emails, images, and archives—including supported files nested inside them—so your agent can search the right passages instead of repeatedly reading entire files.
FOSS Free, local, read-only, and open source.
Less file loading · More useful context · Better agent retrieval
Why agents work better with it
Context Mole prepares your files for agent use before the question is asked. The result is faster discovery, tighter evidence, and less need to push large binaries through an AI conversation just to find the useful part.
Context Mole extracts embedded text, tables, document structure, and OCR from scans and images, then keeps it in one local index your agent can search again and again.
Supported content is discovered inside email attachments, Office packages, PDFs, and archives. Each nested item is indexed separately without losing its path back to the source.
Your agent gets focused previews and neighboring text first. It can open an original file or materialize one attachment only when the task actually needs it.
Keyword, semantic, and hybrid retrieval support exact clauses, exclusions, field weights, filters, and follow-up searches scoped to stable content IDs.
Results preserve the exact file, attachment chain, page, sheet, slide, heading, or message location so agents can inspect and cite the right evidence.
All supported AI clients search the same local database and embeddings. You do not need to rebuild or duplicate your knowledge base for every assistant.
Search below the surface
A useful answer may be inside a PDF attached to an email stored in an archive. Context Mole follows that supported content chain, extracts every searchable layer, and preserves the route back to the original source.
Make AI usage go further
Large PDFs, scans, and folders can consume valuable context before the real reasoning even starts. Context Mole lets the agent retrieve compact passages first and request the original only when necessary—helping reduce repeated file reads and conserve AI usage.
Exact savings depend on the AI client, model, files, and task.
Three-step workflow
Context Mole handles the preparation in the background. You keep working in the AI agent you already use.
Choose the local folders the agent is allowed to search. Context Mole watches them for changes.
Native extraction, OCR, keyword indexing, and optional embeddings run locally in the background.
Connect through read-only MCP and search the same index from any supported AI client.
Agent-directed retrieval
This is not a generic chat-with-your-files layer. The connected agent controls the retrieval strategy, exact clause logic, ranking, filters, and follow-up scope.
Keyword for exact evidence, semantic for concepts, or hybrid when both signals help.
Mix required, optional, and excluded terms, phrases, and prefixes. Tune fields and filters for the task.
Focus on stable content IDs, read neighboring passages, or materialize only the selected original content.
Focus on a returned content_id, then read adjacent passages or materialize only that content.
Broad coverage, one index
Files remain on your computer. Documents are opened read-only, and extraction, OCR, embeddings, and search run locally after model downloads.
Supported content is also extracted when it appears inside email attachments, Office packages, PDFs, or archives. Macros are never executed.
PDF · DOCX / DOCM / DOTX / DOTM · XLSX / XLSM / XLTX / XLTM · PPTX / PPTM / PPSX / PPSM / POTX / POTM · ODT / ODS / ODP · RTF · EPUB
CSV · TSV · JSON · JSONL · XML · YAML / YML · TOML
TXT · LOG · Markdown · RST · AsciiDoc · TeX · HTML / HTM · MHT / MHTML
PNG · JPEG · BMP · GIF · WebP · TIFF
EML · MSG
ZIP · RAR · 7Z · TAR · TAR.GZ / TGZ · GZ
SQLite FTS5 powers exact keyword retrieval. IBM Granite Embedding Multilingual R2 adds optional semantic search, and PP-OCRv6 reads scanned PDFs and images. Hybrid mode combines semantic recall with lexical precision.
Semantic search works across 200+ languages. Granite provides enhanced retrieval support for the 52 languages below. OCR supports 50 languages, while embedded Unicode text is preserved during native extraction.
Connect from AI Connections in the app. Every client searches the same local, read-only index through MCP—no duplicate projects or embeddings.
Connected agents use these tools to discover projects, search the index, inspect evidence, and access authorized original content only when needed.
list_projectsLists initialized projects, authorized folders, search generation, and document status counts.
search_projectSearches one project with agent-selected keyword, semantic, or hybrid retrieval, structured clauses, weights, filters, and grouped results.
read_passagesReads the full indexed text for selected passage IDs, with optional neighboring passages for context.
get_document_infoReturns metadata, revision details, extraction counts, and recorded errors for one document or content node.
list_documentsBrowses and filters a project’s root-document inventory and indexing status without loading extracted text.
list_attachmentsLists attachment and archive-entry content IDs and their hierarchy for one indexed root document.
resolve_local_fileResolves an indexed document or content ID to its authorized original source file when that file is sufficient.
materialize_contentProvides an original root file or safely extracts one selected attachment or archive entry for deeper inspection.
Better context for better agents
One private, local index for the AI tools you already use.
Get Context Mole