1
Add it to Claude Code
claude mcp add context-mode -- npx -y context-modeAvailable Tools (6)
Once configured, Context Mode gives your AI agent access to:
ctx_batch_executeExecutes multiple commands in a sandboxed environment while keeping output out of the context window.commandsctx_executeExecutes a single command in a sandboxed environment.commandctx_execute_fileExecutes a file in a sandboxed environment.filepathctx_indexIndexes data into the local SQLite database for future retrieval.datactx_searchPerforms a BM25 search against indexed session data.queryctx_fetch_and_indexFetches external data and indexes it immediately.urlTry It Out
After setup, try these prompts with your AI agent:
→Use ctx_execute to run my test suite and summarize only the failures.
→Search my previous session logs using ctx_search to find where I last edited the authentication module.
→Fetch the documentation from this URL and index it for my current project using ctx_fetch_and_index.
→Run the build script and use ctx_index to store the output for later reference without cluttering the chat.
→Show me my current context savings statistics using ctx_stats.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
Alternative installation methods
NPM
npx -y context-modeKeep this setup from going cold
Save the docs, env vars, and workflow around Context Mode in Conare so Claude Code, Codex, and Cursor remember it next time.