Context Mode MCP Server

Every MCP tool call dumps raw data into your context window. A Playwright snapshot costs 56 KB. Twenty GitHub issues cost 59 KB. One access log — 45 KB. After 30 minutes, 40% of your context is…

Local serverstdioElastic-2.0

What is the Context Mode MCP Server?

Context Mode is an MCP project maintained in the mksglu/context-mode repository. The maintainer describes its purpose as “Every MCP tool call dumps raw data into your context window. A Playwright snapshot costs 56 KB. Twenty GitHub issues cost 59 KB. One access…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using context-mode. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ctx_batch_executeRun multiple commands + search multiple queries in ONE call. Opt-in concurrency: 1-8 for I/O-bound batches.
ctx_executeRun code in 12 languages. Only stdout enters context.
ctx_execute_fileProcess files in sandbox. Raw content never leaves.
ctx_indexChunk markdown into FTS5 with BM25 ranking.
ctx_searchQuery indexed content with multiple queries in one call.
ctx_fetch_and_indexFetch URL, chunk and index. Cache reuses content within TTL (default 24h, override per-call with ttl: ). ttl: 0 or force: true to bypass. Pass requests: [{url,
ctx_statsShow context savings, call counts, and session statistics.
ctx_doctorDiagnose installation: runtimes, hooks, FTS5, versions.
ctx_upgradeUpgrade to latest version from GitHub, rebuild, reconfigure hooks.
ctx_purgePermanently deletes all indexed content from the knowledge base.

How to install the Context Mode MCP Server

{
  "mcpServers": {
    "context-mode": {
      "command": "context-mode"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.