← Back to Context Mode

Install Context Mode

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add context-mode -- npx -y context-mode

Available 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.
commands
ctx_executeExecutes a single command in a sandboxed environment.
command
ctx_execute_fileExecutes a file in a sandboxed environment.
filepath
ctx_indexIndexes data into the local SQLite database for future retrieval.
data
ctx_searchPerforms a BM25 search against indexed session data.
query
ctx_fetch_and_indexFetches external data and indexes it immediately.
url

Try 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-mode

Keep 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.

Remember this setup