# KruschStack

> KruschStack is an open-source MCP server for developer tools. Local SQLite control plane giving coding agents persistent memory and file-write safety. It runs locally on your machine and is started by your AI client.

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

## About

The README describes KruschStack as a local, zero-cloud layer that sits beside coding agents such as Claude Code, Cursor and Windsurf. Its state lives in a SQLite database using Node 22's built-in node:sqlite module, so decisions and project invariants survive across sessions without a hosted service.

The package bundles several pieces: memory of decisions and invariants checked against code spans by SHA-256 hash, a pre-edit check against active invariants, a two-phase commit path that stages unified diffs and applies them through a write-ahead journal, and spin-loop detection for repeated tool calls. Tool profiles range from a 5-tool memory-only set to a 39-tool full set, and a --defer-tools option trims schema size.

It suits developers who run coding agents on their own machines and want edits checked and recorded locally. The README's benchmark figures are self-reported by the author and are not independently verified.

## Features

- **Persistent cross-session memory:** Stores decisions and invariants in SQLite so a new agent session can retrieve them, with supersession lineage tracked when a rule is revised.
- **Two-phase commit file writes:** Stages proposed edits as unified diffs and applies them through a write-ahead journal with atomic rename and rollback after an interrupted process.
- **Invariant check before edits:** Audits proposed changes against active invariants before anything is written to disk.
- **Spin-loop protection:** Detects and blocks repeated identical tool calls so an agent does not re-run the same action.
- **Selectable tool profiles:** Lets users expose a smaller or larger set of MCP tools, from memory-only to a full ecosystem set.
- **Explain and telemetry commands:** Offers an explain command for recent blocks and commits, plus a local telemetry endpoint for counters.

## Good for

- Keep architectural constraints in force across separate coding-agent sessions
- Stop an agent from writing banned patterns into project files
- Roll back a half-finished multi-file edit after a crash
- Run a coding agent on local open-weights models without losing project memory

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

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

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

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

## FAQ

### Does KruschStack send data to the cloud?

The README describes it as a local, zero-cloud control plane backed by a local SQLite database, with an optional PostgreSQL schema for team deployments.

### Which agents does KruschStack support?

The README names Claude Code, Cursor, Windsurf, Antigravity and Codex as hosts.

### What does the MCP registry entry require?

It runs over stdio from the npm package krusch-stack and reads a KRUSCH_WORKSPACE_ROOT environment variable pointing to the target project.

### What does KruschStack cost?

The README states the package is MIT licensed and runs locally, so no API keys are needed for the offline demo.

### How do I add KruschStack to Claude Code?

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

### What are the best alternatives to KruschStack?

The closest alternatives to KruschStack are Krusch Context MCP, Krusch Coding Harness, State Memory MCP, Limpet and Bloch.

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

- [Krusch Context MCP](https://ai-powered.com/mcp/krusch-context-mcp): Krusch Context MCP is an open-source MCP server for developer tools.
- [Krusch Coding Harness](https://ai-powered.com/mcp/krusch-coding-harness): Krusch Coding Harness is an open-source MCP server for developer tools.
- [State Memory MCP](https://ai-powered.com/mcp/state-memory-mcp): State Memory MCP is an open-source MCP server for knowledge and memory.
- [Limpet](https://ai-powered.com/mcp/limpet): Limpet is an open-source MCP server for developer tools.
- [Bloch](https://ai-powered.com/mcp/bloch): Bloch is an open-source MCP server for developer tools.
- [sync82](https://ai-powered.com/mcp/sync82): sync82 is an open-source MCP server for knowledge and memory.
- [codeagent-memory](https://ai-powered.com/mcp/codeagent-memory): codeagent-memory 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.

---
Source: https://ai-powered.com/mcp/kruschstack
