Krusch Context MCP logo

Krusch Context MCP

Stores project decisions and invariants locally, retrieves context across sessions, tracks superseded facts, and audits diffs with five MCP tools.

Install Krusch Context MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "krusch-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "krusch-context-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio krusch-context-mcp -- npx -y krusch-context-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y krusch-context-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

krusch-context-mcp MCP server gives coding agents persistent local memory for architectural decisions, invariants, lessons, and bug diagnoses. It stores data in SQLite by default, supports full-text search and local embeddings, and maintains lineage when facts are superseded or invalidated. Five MCP tools cover retrieval, memory writes, revisions, pre-commit-style diff checks, and health reporting. Reach for it when an agent needs project rules and decisions to persist across sessions without relying on a cloud service.

Use cases

  • Persist architectural decisions across coding sessions
  • Retrieve active project invariants before making changes
  • Audit proposed diffs before committing
  • Supersede or invalidate obsolete project knowledge

Key features

  • SQLite-first local persistence with WAL
  • Full-text search and local embeddings
  • Temporal lineage for superseded and invalidated facts
  • Near-duplicate memory detection
  • Five MCP tools for retrieval, revision, auditing, and health

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/20 checks healthy over the last 49d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · krusch-context-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars83Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit12d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Krusch Context MCP works

What krusch-context-mcp does

krusch-context-mcp provides persistent working memory for AI coding agents. It records architectural decisions, project invariants, lessons, and bug diagnoses so later sessions can retrieve relevant project context. The memory model distinguishes active knowledge from facts that have been superseded or invalidated, preserving temporal lineage rather than treating every stored item as current.

The server also supports invariant steering. Agents can check proposed changes against active project constraints before committing, helping surface conflicts with documented project rules. It is intentionally focused on project memory and steering rather than source-code indexing: code symbol search, call graphs, and Git history are outside its scope.

How it works

Storage is SQLite-first, using Node.js node:sqlite, write-ahead logging, and Porter stemming through SQLite FTS5. Local 1024-dimensional embeddings are available for semantic retrieval. PostgreSQL 16 with pgvector is an optional storage path. The server runs locally and does not require Docker, external cloud services, or API keys for the documented local verification workflow.

A five-verb agent loop covers the main lifecycle:

  • Retrieve active memories, steering rules, and project state within a token limit.
  • Remember new episodic facts and steering notes.
  • Revise existing knowledge by superseding it or invalidating it with a reason.
  • Nudge proposed diffs against active invariants.
  • Check health, storage mode, memory counts, and TTL decay review information.

Near-duplicate memories are detected during writes. The server can propose a superseding revision when similarity reaches its configured threshold, while allowing contrasting rules to remain distinct.

Setup and configuration

Node.js 22 or newer is required. From a project repository, run:

Terminal
npx krusch-context-mcp init

Initialization creates .agent/context.db, prepares a project .env with defaults, seeds initial context, runs a health check, and prints MCP configuration examples for Cursor, Claude Code, and Claude Desktop. It also clears stale MCP tool schemas from local IDE caches.

For local development or verification, clone the repository, run npm ci, and use npm test. The documented verification commands exercise the SQLite engine, unit and contract tests, benchmark verifiers, proxy checks, and SHA-256 audit-log checks without Docker or API keys.

Tools and capabilities

The five canonical MCP tools are:

  • krusch_context_retrieve: Finds active memories and project state, with citations and a limit_tokens budget.
  • krusch_context_remember: Stores facts and steering content while checking for near duplicates.
  • krusch_context_revise: Supersedes stale knowledge or invalidates obsolete rules with a required reason.
  • krusch_context_nudge: Audits proposed diffs against project invariants. Its trigger defaults to pre_commit or manual; every_turn is rejected.
  • krusch_context_health: Reports storage mode, categorized memory counts, and the 30-day TTL decay review.

Limitations and notes

The server is not an AST or Git indexer, so it should complement an IDE's code search or a dedicated Git-oriented tool. Its scope is project context, memory lifecycle, and invariant checks. PostgreSQL and pgvector are optional; the default path uses local SQLite. The project is released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Krusch Context MCP

krusch-context-mcp is an MCP server that connects coding agents to a local project context database and provides five tools: retrieve, remember, revise, nudge, and health. It stores decisions and invariants, tracks superseded facts, and audits proposed diffs against project rules across sessions.

Run `npx krusch-context-mcp init` from the project repository with Node.js 22 or newer. Initialization creates the SQLite database, prepares environment defaults, seeds initial context, runs a health check, and prints configuration examples for supported clients.

Yes, krusch-context-mcp supports Cursor. Its initialization command prints a Cursor MCP configuration, and the server can provide persistent project memory, invariant retrieval, revision tools, and diff auditing to the coding agent.

By default, project memory is stored locally in `.agent/context.db` using Node.js SQLite with WAL support. An optional PostgreSQL 16 and `pgvector` storage mode is also available.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKrusch Context MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/krusch-context-mcp?style=directory)](https://allmcps.com/mcp/krusch-context-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/krusch-context-mcp"><img src="https://allmcps.com/api/badge/krusch-context-mcp?style=directory" alt="Krusch Context MCP on AllMCPs" /></a>