Context Mode
Reduces coding-agent context usage by sandboxing tool output, indexing session events, and routing work through executable code.
Install Context Mode
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
We couldn’t confirm it starts correctly
The install command didn't complete successfully in our automated test.
npx -y context-modeg: https://github.com/nodejs/node/issues/62515 npm ERR! https://github.com/mksglu/context-mode/issues/564 npm ERR! npm ERR! Fix: upgrade Node (recommended) npm ERR! nvm install 22.5 && nvm use 22.5 npm ERR! npm install -g context-mode npm ERR! npm ERR! Or: run under Bun npm ERR! curl -fsSL https://bun.sh/install | bash npm ERR! bun add -g context-mode npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2026-10-23T11_33_07_972Z-debug-0.log
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 16d ago.
Overview
Use cases
- Process large codebases without loading every file into context
- Recover relevant session state after conversation compaction
- Index local files for later full-text search
- Inspect context savings and diagnose installation issues
Key features
- Sandboxed JavaScript and file execution
- Batch processing for tool-driven tasks
- SQLite session persistence with FTS5 and BM25 search
- Local content indexing and retrieval
- Context savings statistics and diagnostics
- Hook-based routing for supported clients
Tools9
What Context Mode lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 2d ago via OSV.dev · context-mode (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Context Mode works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about Context Mode
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/context-mode)<a href="https://allmcps.com/mcp/context-mode"><img src="https://allmcps.com/api/badge/context-mode?style=directory" alt="Context Mode on AllMCPs" /></a>