# lcc — Local Context Compiler (pypi · local-context-compiler)

Compact agent context verbatim, offline: cut spent tool outputs, recall them by hash.

- Trust score: 63/100 (medium)
- Change this week: −7
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-05

## Components

- pypi · `local-context-compiler`: 63/100 (this document), [markdown](https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler.md), [page](https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler)

## Channel facts

- Registry: `pypi`
- Package: `local-context-compiler`
- Version: `1.2.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-05.

- **Supply Chain Security**: 49/100
  - Malware scan not yet available for this package.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs setuptools.build_meta at install time, a recognised build step with no custom scripting around it.
  - 3 of 9 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 100/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to lucasmartins-ai/lcc).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 4 days ago).
  - Publishes a security disclosure policy (SECURITY.md).
- **Schema Quality & AI Usability**: 50/100
  - AI-judged instruction clarity (fair).
  - Context-footprint check failed: tool/resource definitions use about 1120 tokens (~160/item across 7 items; 7 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 53/100
  - Stability observed for 16 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 77/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 31% of tool parameters carry a description.
- **Tool Safety**: 75/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "compact" implies "drop" and declares no destructiveHint at all, which the MCP spec reads as destructive by default.
  - An AI judge read all 7 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 20/100
  - Spec-recency check failed: implements MCP spec 2024-11-05; the latest is 2026-07-28.

## Install

### How do I install the lcc — Local Context Compiler MCP server?

lcc — Local Context Compiler runs locally as a PyPI package, launched with uvx local-context-compiler. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add lucasmartins-ai-lcc -- uvx local-context-compiler
```

### Cursor

```json
{
  "mcpServers": {
    "lucasmartins-ai-lcc": {
      "command": "uvx",
      "args": [
        "local-context-compiler"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "lucasmartins-ai-lcc": {
      "command": "uvx",
      "args": [
        "local-context-compiler"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add lucasmartins-ai-lcc -- uvx local-context-compiler
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "lucasmartins-ai-lcc": {
      "type": "local",
      "command": [
        "uvx",
        "local-context-compiler"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add lucasmartins-ai-lcc --command uvx --arg local-context-compiler
```

### Hermes

```yaml
mcp_servers:
  lucasmartins-ai-lcc:
    command: "uvx"
    args: ["local-context-compiler"]
```

### Netclaw

```json
{
  "McpServers": {
    "lucasmartins-ai-lcc": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "local-context-compiler"
      ]
    }
  }
}
```

### Vellum

```bash
assistant mcp add lucasmartins-ai-lcc -t stdio -c uvx -a local-context-compiler
```

### Other

```json
{
  "mcpServers": {
    "lucasmartins-ai-lcc": {
      "command": "uvx",
      "args": [
        "local-context-compiler"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-05 (score 63, −14)

- [security regression] Malware scan: pass → unverified

### 2026-11-04 (score 77, +22)

- [security improvement] Malware scan: unverified → pass
- [functional improvement] Stability: unverified → 0.50

### 2026-11-03 (score 55, −15)

- [security regression] Malware scan: pass → unverified

### 2026-10-25 (score 70, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-24 (score 55, −15)

- [security regression] Malware scan: pass → unverified

### 2026-10-23 (score 70, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-10-20 (score 55)

First indexed and scored.

## MCP tools (7)

### `compact` (~90 tokens)

Drop context blocks irrelevant to an objective. Default provider mechanical is fully offline (no key, no network); laya is offline semantic (needs the [laya] extra, else honest mechanical fallback); jev needs TYPESAFE_API_KEY. Fail-safe: failures keep content.

Input parameters:

- `provider` (string)
- `question` (string, required)
- `text` (string, required)
- `threshold` (number)

### `compact_transcript` (~740 tokens)

Tool-call compaction for a session transcript: pairs each tool call with its result, pins the first and newest messages, and drops the pairs a semantic judge says are spent — kept messages stay verbatim, so nothing is summarized. Default 'auto' is the local specialist-v3 ranker (offline, no key); 'jev' is remote and needs TYPESAFE_API_KEY. Every failure keeps the call.

Input parameters:

- `allow_command_pointers` (boolean): rules_mode 'recoverable' only: also replace allowlisted read-only command outputs with a re-run pointer. Off by default.
- `disk_check` (boolean)
- `idle_gap_bucket` (string): Request-log label only: the idle gap bucket, e.g. '1h-2h'.
- `jev_model` (string)
- `laya_model` (string)
- `max_request_tokens` (integer)
- `max_state_tokens` (integer)
- `max_workers` (integer)
- `messages` (array, required): Messages with role/text and toolUses/toolResults blocks (Claude Code hook shape) or tool_calls/tool_results.
- `min_reduction` (number)
- `preserve_recent` (integer)
- `provider` (string): 'auto' (default) and 'specialist-v3' use the local CPU ranker (no key, no network; ranks, does not judge). 'jev' is the remote TypeSafe System 1, needs TYPESAFE_API_KEY, and runs only when named. 'la…
- `question` (string, required)
- `ref_blocks` (boolean): ref_unchanged down to the block: a changed message comes back as {'ref': <input index>, 'toolUses': [<kept call index>...], 'toolResults': [<kept result index> | {'ref', 'tool_use_id', 'text', 'head'…
- `ref_unchanged` (boolean): Return each message the pass left unchanged as {'ref': <input index>} and leave per-call decisions out, for size-capped callers.
- `rules_mode` (string): Only for provider 'rules'. 'lossless' replaces a tool result with a pointer only when its text is kept verbatim in a later result, and verifies it. 'recoverable' also replaces old file reads (of file…
- `threshold` (number)
- `trigger` (string): Request-log label only: 'idle' for the plugin's idle stash.
- `trim_head_chars` (integer)
- `workspace_root` (string): rules_mode 'recoverable' only: the session's working directory. When set (and disk_check on), the disk decides file pointers: a read is replaced iff the file inside it (or its own directory) currentl…

### `inspect` (~36 tokens)

Read-only diagnostic inspection of a text: tokens, structure, duplication, cleanup projection, and recommendation. Offline.

Input parameters:

- `text` (string, required)

### `prepare` (~48 tokens)

Inspect-first deterministic prompt preparation: runs inspection, then lexical selection + safe optimization only when recommended. Never summarizes or paraphrases. Offline.

Input parameters:

- `question` (string)
- `text` (string, required)

### `explain` (~69 tokens)

Explain a relevance-compaction report (as produced by compact): why every block was kept, trimmed, or dropped. Never re-runs, never touches the network.

Input parameters:

- `limit` (integer)
- `only` (string)
- `report` (object, required)
- `source_text` (string)

### `recall` (~89 tokens)

Return a tool output that compact_transcript (rules_mode 'stashed') replaced with '[removed: N tokens · lcc recall <id>]'. The bytes are re-hashed on read, so the text is exactly what was removed. Offline, local stash only.

Input parameters:

- `id` (string, required): The hex id from the pointer.
- `lines` (string): Optional 1-based range 'a-b'.

### `intake` (~48 tokens)

Intake triage for raw prompt input: readiness, intent, clarifying questions, assumptions, and a compiled prompt. Offline by default.

Input parameters:

- `question` (string)
- `text` (string, required)

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler#diagnostics

## Score history

- 2026-11-05: 63
- 2026-11-04: 77
- 2026-11-03: 55
- 2026-11-02: 70
- 2026-11-01: 70
- 2026-10-31: 70
- 2026-10-30: 70
- 2026-10-29: 70
- 2026-10-28: 70
- 2026-10-27: 70
- 2026-10-26: 70
- 2026-10-25: 70
- 2026-10-24: 55
- 2026-10-23: 70
- 2026-10-22: 55
- 2026-10-21: 55
- 2026-10-20: 55

## Common questions

### What is the lcc — Local Context Compiler MCP server?

lcc — Local Context Compiler is an MCP server listed in the public MCP registry as io.github.lucasmartins-ai/lcc. Compact agent context verbatim, offline: cut spent tool outputs, recall them by hash. This page covers its PyPI package (local-context-compiler).

### Is the lcc — Local Context Compiler MCP server safe to use?

lcc — Local Context Compiler scores 63 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the lcc — Local Context Compiler MCP server expose?

lcc — Local Context Compiler exposes 7 tools: compact, compact_transcript, inspect, prepare, explain, and 2 more. Their descriptions and schemas cost roughly 1,120 tokens of context every time the server is loaded.

### Is the lcc — Local Context Compiler MCP server still maintained?

lcc — Local Context Compiler is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the lcc — Local Context Compiler MCP server under?

lcc — Local Context Compiler declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- PyPI project: https://pypi.org/project/local-context-compiler/
- Socket report: https://socket.dev/pypi/package/local-context-compiler
- Repository: https://github.com/lucasmartins-ai/lcc
- Changelog RSS feed: https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler.xml
- Changelog JSON feed: https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler.json
- HTML version of this page: https://verifymcp.io/servers/lucasmartins-ai-lcc/local-context-compiler
