# Krusch Context MCP

Krusch Context MCP is an MCP server for Claude Code that gives coding agents persistent memory across sessions. It logs decisions and tracks code drift using SHA-256 spans.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 83 repo stars
- Author: kruschdev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/kruschdev/krusch-context-mcp
- Updated: 2026-11-23
- Security check: automated, 2026-11-24 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/krusch-context-mcp

## What it does

The server records architectural decisions, project invariants, lessons, and bug diagnoses into a local `.agent/context.db` database. Storage runs on built-in `node:sqlite` WAL with Porter FTS5 and local 1024-dimensional embeddings, with optional PostgreSQL 16 and `pgvector` support.

It condenses its interface into five canonical actions taking about 950 schema tokens. The tool flags duplicate entries, tracks lineage when rules are superseded, and audits diffs against active constraints. Running it requires Node.js 22.0.0 or newer; no Docker or API keys are needed for the default engine.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add krusch-context-mcp -- npx -y krusch-context-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add krusch-context-mcp -- npx -y krusch-context-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "krusch-context-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "krusch-context-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "krusch-context-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "krusch-context-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add krusch-context-mcp npx -y krusch-context-mcp
```

## When to use it
- agent memory
- store architectural decisions across sessions
- detect code drift against saved invariants
- trace superseding facts and avoid context duplicates

## Example prompts
- Record our database migration strategy as an active architectural invariant.
- Check the current git diff against stored project constraints.

## Similar
- [claudex](https://affpapa.org/en/nevibecode/mcp/claudex.md) — MCP server · ★ 97 repo stars
- [Titen Memory](https://affpapa.org/en/nevibecode/mcp/titen-memory.md) — MCP server · ★ 19 repo stars
- [claude-memory-architecture](https://affpapa.org/en/nevibecode/rules/claude-memory-architecture.md) — rule · ★ 276 repo stars
- [claude-memory](https://affpapa.org/en/nevibecode/plugins/claude-memory.md) — plugin · ★ 276 repo stars
- [recall](https://affpapa.org/en/nevibecode/plugins/recall.md) — plugin · ★ 23 repo stars
- [mcp-context-server](https://affpapa.org/en/nevibecode/mcp/mcp-context-server.md) — MCP server · ★ 9 repo stars

---
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
