About Claude Context Mode
Claude Context Mode is an MCP server published by mksglu in the Developer Tools category: free, local plugin that keeps tool output out of your coding agent's context window. Sandbox and SQLite FTS5 search, 99% fewer bytes in context. Works with Claude Code, Codex, Pi, OMP, OpenCode, Gemini CLI, Copilot CLI and 4 more agents. Zero telemetry. Conduid read 9 tools from its source: ctx_batch, ctx_doctor, ctx_execute, ctx_index, ctx_purge, ctx_resume and 3 more. It is published to npm as context-mode and starts with npx.
The repository has 35K stars and 2.4K forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v2.2.2 (22 Nov 2026): Fixes fix: a Fake-IP DNS name in 198.18.0.0/15 passes the SSRF guard after a once-per-process .invalid probe; literals and all other ranges stay blocked (#1403) fix: onl… It follows v2.2.1 (17 Nov 2026), and the 5 most recent releases go back to v2.1.9 (12 Nov 2026). It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned, No dynamic code execution and Scoped permissions. Its topics include devtools and claude-code-plugins.
Install
claude mcp add claude-context-mode -- npx -y context-modenpx -y context-modegit clone https://github.com/mksglu/context-modeTools (9)
ctx_batchRuns many commands, indexes the output, and searches it in one callctx_doctorChecks the install; each check prints PASS or a fix commandctx_executeRuns code or a shell command in a sandbox; returns what it printsctx_indexIndexes a file, a text or a URL into the project databasectx_purgeDeletes indexed data by session, source or projectctx_resumeReturns the plugin's local state block (at most 2,048 B), or one full row by `seq`ctx_searchSearches the local index; returns the matching partsctx_statsShows how much output stayed out of contextctx_upgradeInstalls, upgrades or uninstalls; replaces old contextmode entriesSecurity checks
- ✓README presentThe repository's README runs to about 6.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- !No dynamic code executionScanned 134 source files and found 1 call to eval or shell execution, in plugins/claude-code/cli.mjs:2419. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/entries/server.ts:9
- Starts other programs
- 26 callssrc/cli/commands.ts:158, src/cli/commands.ts:190, src/cli/commands.ts:381
- Outbound network calls
- 26 callssrc/core/contracts/constants.ts:365, src/core/contracts/constants.ts:368, src/core/ops/doctor-env.ts:98
- Writes or deletes files
- 4 callssrc/core/hooks/fallback.ts:69, src/core/hooks/fallback.ts:74, plugins/claude-code/opencode/plugin.js:9236
- Lockfile
- None in the repository
Pattern matches on the source text of 134 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 6.6K words, fetched 8 days ago. The original in the repository is authoritative.
Read full README