KruschStack
Local SQLite control plane giving coding agents persistent memory and file-write safety
KruschStack is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, API
- Runs
- Locally
- Version
- 1.3.1
- Listing updated
Similar MCP servers
Install
Run in a terminal
claude mcp add krusch-stack -- npx -y krusch-stackAdd to claude_desktop_config.json
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"krusch-stack": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"krusch-stack"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"krusch-stack": {
"command": "npx",
"args": [
"-y",
"krusch-stack"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
KRUSCH_WORKSPACE_ROOTTarget project workspace root directory
About KruschStack
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.
What it does
- 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
Pricing
Open source
MIT-licensed, self-hosted local package
KruschStack 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.