# mksglu/context-mode | Model Context Protocol (MCP) Server > Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks. - **Stars**: ⭐ 19,828 - **Language**: TypeScript - **Native MCP Manifest**: Standard NPX Transport ## 🔌 Claude Desktop Configuration (`claude_desktop_config.json`) ```json { "mcpServers": { "context-mode": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-context-mode" ] } } } ``` ## ⚡ Cursor MCP Configuration (`.cursor/mcp.json`) ```json { "mcpServers": { "context-mode": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-context-mode" ] } } } ``` ## 🚀 Launch Commands - **NPX**: `npx -y @modelcontextprotocol/server-context-mode` - **Docker**: `docker run -i --rm mcp/context-mode`