Context Mode
Supports UIby mksglu
Save up to 98% of your context window via sandboxed tool execution and session continuity.
What it does
Context Mode is a high-performance MCP server designed to prevent context window flooding. It intercepts raw data from tool calls and processes it in an isolated sandbox, returning only the necessary results to the LLM.
Tools
ctx_execute: Run code in 11 languages; only stdout enters context.ctx_execute_file: Process files in a sandbox without loading raw content into context.ctx_batch_execute: Execute multiple commands and searches in a single call.ctx_index: Chunk markdown into an FTS5 knowledge base for efficient retrieval.ctx_search: Query indexed content using BM25 ranking and Reciprocal Rank Fusion.ctx_fetch_and_index: Fetch URLs and index content with a 24h TTL cache.
Installation
Add to claude_desktop_config.json:
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": ["-y", "context-mode"]
}
}
}
Supported hosts
Claude Code, Gemini CLI, VS Code Copilot, Cursor, OpenCode, KiloCode, OpenClaw, Codex CLI, Antigravity, Kiro, Zed, Pi Agent
Quick install
npm install -g context-modeInformation
- Pricing
- free
- Published
- 4/13/2026
- stars







