# Krusch Context MCP

> Krusch Context MCP is an open-source MCP server for developer tools. Persistent project memory and drift-checked decisions for AI coding agents via MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/kruschdev/krusch-context-mcp
- **MCP Registry name:** dev.krusch/krusch-context-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-19

## About

The README says the server gives coding assistants such as Cursor, Claude Code and Windsurf a memory that survives between sessions. Agents store architectural decisions, invariants, lessons and bug diagnoses, and the server flags near-duplicate entries and keeps a lineage when a fact is superseded or revoked.

It exposes five verbs: retrieve, remember, revise, nudge and health. Memories written with a file span carry a SHA-256 anchor, so the engine can shift line numbers when code moves above them or mark an entry as drifted when the underlying code changes. A pre-commit audit checks diffs against active project invariants, capped at a few findings per run.

Storage defaults to a local node:sqlite database in the project's .agent folder, with optional Ollama or OpenRouter embeddings and an optional PostgreSQL backend for shared deployments. It is aimed at developers who want an agent to keep project rules and decisions across sessions without a hosted service.

## Features

- **Five-verb memory interface:** Retrieve, remember, revise, nudge and health cover reading, writing, updating, auditing and checking the store.
- **Closed memory taxonomy:** Every write is classed as a decision, invariant, bug, lesson or blocker to keep the store tidy.
- **Span drift detection:** Memories tied to a file span are checked against disk with SHA-256 hashes and line numbers are healed or flagged.
- **Near-duplicate warnings:** New memories close to an existing one trigger a suggestion to supersede rather than duplicate.
- **Pre-commit invariant audit:** The nudge verb checks proposed diffs against active project invariants with a capped number of findings.
- **Offline by default:** Runs on built-in SQLite with keyword and recency scoring when no embedding model is configured.

## Good for

- Keeping architectural decisions available to a coding agent across sessions
- Recording invariants that an agent should respect before committing changes
- Tracking bug root causes so the same diagnosis is not repeated
- Checking a pending diff against project rules before commit

## Install

### Claude Code (Terminal)

```sh
claude mcp add krusch-context-mcp -- npx -y krusch-context-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "krusch-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "krusch-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "krusch-context-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "krusch-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "krusch-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}
```

## Tools

- `krusch_context_retrieve`: Pulls active memories, steering rules and project state within a token budget.
- `krusch_context_remember`: Writes episodic facts and steering rules with duplicate detection.
- `krusch_context_revise`: Supersedes or invalidates stored knowledge with lineage tracking.
- `krusch_context_nudge`: Audits proposed diffs against active project invariants.
- `krusch_context_health`: Reports storage mode, memory counts and TTL decay review.

## FAQ

### Which clients does the README list?

Cursor, Claude Code, Claude Desktop, Windsurf and Antigravity are named, with setup snippets for Cursor, Claude Code and Claude Desktop.

### Does Krusch Context MCP need Docker or an API key?

No. The README says the default SQLite setup needs no Docker and no API keys, and works offline.

### What Node.js version is required?

Node.js 22.0.0 or later is required, as the store uses the built-in node:sqlite module.

### Is PostgreSQL required?

No. The README says PostgreSQL is only needed for centralised persistence across multiple machines.

### Is Krusch Context MCP free?

Yes. Krusch Context MCP is open source, so you can use and self-host it for free.

### How do I add Krusch Context MCP to Claude Code?

Run this command in your terminal: claude mcp add krusch-context-mcp -- npx -y krusch-context-mcp

### What are the best alternatives to Krusch Context MCP?

The closest alternatives to Krusch Context MCP are Limpet, KruschStack, Agent Memory MCP, Total Agent Memory and memry.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Limpet](https://ai-powered.com/mcp/limpet): Limpet is an open-source MCP server for developer tools.
- [KruschStack](https://ai-powered.com/mcp/kruschstack): KruschStack is an open-source MCP server for developer tools.
- [Agent Memory MCP](https://ai-powered.com/mcp/agent-memory-mcp): Agent Memory MCP is an open-source MCP server for knowledge and memory.
- [Total Agent Memory](https://ai-powered.com/mcp/total-agent-memory): Total Agent Memory is an open-source MCP server for knowledge and memory.
- [memry](https://ai-powered.com/mcp/memry): memry is an MCP server for developer tools.
- [World Model MCP](https://ai-powered.com/mcp/world-model-mcp-2): World Model MCP is an open-source MCP server for agent tooling.
- [Ricursor](https://ai-powered.com/mcp/ricursor): Ricursor is an MCP server for developer tools.
- [Imperal MCP](https://ai-powered.com/mcp/imperal-mcp): Imperal MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/krusch-context-mcp
