C

context-mode

Keeps large tool outputs out of the context window by summarizing/indexing them.

💭 Memory & reasoningGitHub stars34,152Updated 2026-11-16Auth: noneGitHub ↗
Runner-up · best for memory & reasoning

See the pick for the verdict.

Test results

Last passed 2026-10-14
Claude CodePassed2026-10-13 · install, connect, tools, agent taskTested with Claude Code 2.1.296 · server reported v1.0.169 · connect time not recorded
CursorPassed2026-10-13 · install, connect, tools, agent taskTested with Cursor CLI 2026.10.12-d47ca18 · server reported v1.0.169 · connect time not recorded
Claude DesktopPassed2026-10-14 · install, connect, tools, agent taskTested with Claude Desktop 2.37337.1 (Linux beta) · package version not recorded · connected in 2.1s
ChatGPT (Codex)Passed2026-10-14 · install, connect, tools, agent taskTested with Codex CLI 0.162.0-alpha.17.2 · package version not recorded · connect time not recorded

Server package and resolved dependency versions: not recorded for these runs (our harness records them from Oct 19, 2026 on).

Full result per app: Does it work with Claude Code? · Does it work with Cursor? · Does it work with Claude Desktop? · Does it work with ChatGPT (Codex)?

Protocol: starts, 11 tools listed · 2026-10-13 · connected in 0.7s
🧪 Test-box note: Requires Node >=22.5. Box system Node is 20.19.2; harness runs it with a user-local Node 22 (~/opt/node22). Published snippet uses plain npx and assumes Node 22+.

Real test

Passed

One run from our records. When two runs share a date, we show a failure if there is one.

Client
ChatGPT (Codex) · Codex CLI 0.162.0-alpha.17.2
Date
Oct 14, 2026
The task we gave
Using only the context-mode MCP tools, save this so it can be found in a later session: the toolpassed test code is TP-F88044. Reply 'stored' when done.
Using only the context-mode MCP tools, look up the toolpassed test code that was saved in an earlier session and reply with it.
What it promised
details not recorded for this run
What happened

Tool calls:

context-mode:ctx_search

Other calls recorded:

context-mode:ctx_index

Tool result

{"content": [{"type": "text", "text": "## toolpassed\n\n--- [current-session | 2026-10-14 04:51 | toolpassed test code] ---\n### Untitled\n\nThe toolpassed test code is TP-F88044.\n\n> Throttle: call #1/8 in this window. 2 call(s) before soft cap. Prefer ctx_search(queries: [...]) array form for mul

Agent reply

stored
Verdict
Passed

Install

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

Run in your terminal. This exact command is what our harness runs in Claude Code; see the results above.

{
  "mcpServers": {
    "context-mode": {
      "command": "npx",
      "args": [
        "-y",
        "context-mode"
      ]
    }
  }
}

Save as .cursor/mcp.json. This exact config is what our harness runs in Cursor; see the results above.

{
  "mcpServers": {
    "context-mode": {
      "command": "npx",
      "args": [
        "-y",
        "context-mode"
      ]
    }
  }
}

Add to claude_desktop_config.json and restart Claude Desktop. Tested on the Linux beta; see the results above.

[mcp_servers.context-mode]
command = "npx"
args = ["-y", "context-mode"]

Add to ~/.codex/config.toml (shared by the ChatGPT (Codex) CLI and the ChatGPT desktop app; Codex runs inside the ChatGPT desktop app). Tested with the ChatGPT (Codex) CLI bundled in the ChatGPT desktop app; see the results above.

Not connecting? Troubleshooting: Claude Code · Cursor · Claude Desktop · ChatGPT (Codex)

Test history

DateCheckResultVersions tested
2026-10-14Claude DesktopPassed
install, connect, tools, agent task
Claude Desktop 2.37337.1 (Linux beta) · package version not recorded
2026-10-14ChatGPT (Codex)Passed
install, connect, tools, agent task
Codex CLI 0.162.0-alpha.17.2 · package version not recorded
2026-10-13Protocol (direct stdio)Protocol: starts, 11 tools listedserver reported v1.0.169
2026-10-13Claude CodePassed
install, connect, tools, agent task
Claude Code 2.1.296 · server reported v1.0.169
2026-10-13CursorPassed
install, connect, tools, agent task
Cursor CLI 2026.10.12-d47ca18 · server reported v1.0.169

Tested on ToolPassed badge

ToolPassed: passed Claude Code, Cursor, Claude Desktop, ChatGPT (Codex)

Maker of context-mode? It passed in Claude Code, Cursor, Claude Desktop, ChatGPT (Codex) on 2026-10-14. Add this free badge to your README; it links back to this listing. Free, no strings: the badge never changes a result.

[![Tested on ToolPassed](https://toolpassed.com/badge/mcp/context-mode.svg)](https://toolpassed.com/mcp/context-mode/)

Tools seen by our harness (11)

ctx_executectx_execute_filectx_indexctx_searchctx_fetch_and_indexctx_batch_executectx_statsctx_doctorctx_upgradectx_purgectx_insight
Featured