# rtkcontext-mcp

A paid remote MCP server that compresses context for a specific task and returns token-usage receipts. Useful when your agent runs out of context room.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: clauxel
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/clauxel/rtk-context-compressor-mcp
- Updated: 2026-05-25
- HTML: https://affpapa.org/en/nevibecode/mcp/rtkcontext-mcp

## What it does

The server speaks Streamable HTTP and exposes four tools: `compress_context_for_task`, `estimate_context_savings`, `issue_context_receipt` and `read_compression_history`. One trims context down to the task at hand, another estimates the token savings, the third produces a receipt, the fourth replays past compressions. Everything comes back as structured JSON.

This is hosted and paid, not a local process. Production calls need a bearer token issued on the product site once you pick a plan. Requests without it get a JSON error back instead of any internal detail. The token goes in the `Authorization: Bearer <token>` header.

Any client that supports remote MCP over Streamable HTTP can connect. The endpoint is `https://rtkcontext.clauxel.com/mcp`, the server card sits at `https://rtkcontext.clauxel.com/.well-known/mcp/server-card.json`, and the registry name is `com.clauxel.rtkcontext/rtkcontext-mcp`. The repository holds documentation only — no production source — so you cannot inspect how the compression works before wiring it in.

## Requirements
- Remote server: `https://rtkcontext.clauxel.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http rtkcontext-mcp https://rtkcontext.clauxel.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add rtkcontext-mcp --url https://rtkcontext.clauxel.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "rtkcontext-mcp": {
            "url": "https://rtkcontext.clauxel.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "rtkcontext-mcp": {
            "type": "http",
            "url": "https://rtkcontext.clauxel.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http rtkcontext-mcp https://rtkcontext.clauxel.com/mcp
```

## When to use it
- fit a long chat history inside the context limit
- estimate token savings before sending a request
- get a usage receipt for reporting
- review how context was compressed in earlier sessions
- hand the agent a short digest instead of a whole file

## Example prompts
- Compress the context for the payment module refactor task
- Estimate how many tokens compressing this context would save
- Show the context compression history from today

## Similar
- [learn-codebase](https://affpapa.org/en/nevibecode/skills/learn-codebase.md) — skill · 5300 installs
- [ctx-stats](https://affpapa.org/en/nevibecode/skills/ctx-stats.md) — skill · 1800 installs
- [context-compression](https://affpapa.org/en/nevibecode/skills/context-compression.md) — skill · 1400 installs
- [caveman](https://affpapa.org/en/nevibecode/skills/shawnchee-caveman.md) — skill · 1100 installs
- [context-optimization](https://affpapa.org/en/nevibecode/skills/context-optimization.md) — skill · 356 installs
- [Repomix](https://affpapa.org/en/nevibecode/mcp/repomix.md) — MCP server · ★ 29037

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
