Localthink

•

Offload large file queries to a local LLM for Claude Code, preserving context and significantly reducing token usage.

Localthink is an Ollama-backed MCP server designed to enhance Claude Code's efficiency by offloading large file processing to a local LLM. It tackles the challenge of rapidly consuming context windows when querying extensive documents, offering up to 30x token savings compared to direct file reads. This tool integrates seamlessly with Claude Code, providing specialized functions to answer questions about large files, summarize lengthy text passages, or extract specific cited information, all while keeping your valuable Claude context free for more complex reasoning.

Características Principales

01Offload large file queries to a local LLM (Ollama) for context compression
020 GitHub stars
03Achieve up to 30x token savings for large file interactions
04Utilize `local_answer` for efficient Q&A on files without loading them into Claude's context
05Compress large in-context text blocks with `local_summarize` for reuse
06Extract specific, cited passages from documents using `local_extract`

Casos de Uso

01Condensing extensive text already in Claude's context for efficient reuse
02Querying information from files larger than 5KB without consuming Claude's context window
03Extracting specific, cited passages from documents based on a query