Krusch Context MCP — Claude Code MCP server: agent memory
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.
MIT ★ 83 updated 2026-11-23
claude mcp add krusch-context-mcp -- npx -y krusch-context-mcpWhat Krusch Context MCP 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.
What it helps with
- agent memory
- store architectural decisions across sessions
- detect code drift against saved invariants
- trace superseding facts and avoid context duplicates
Example prompts for the agent
- Record our database migration strategy as an active architectural invariant.
- Check the current git diff against stored project constraints.
How to install Krusch Context MCP
Platform CLI
claude mcp add krusch-context-mcp -- npx -y krusch-context-mcpPlatform CLI
codex mcp add krusch-context-mcp -- npx -y krusch-context-mcpConfig file
{
"mcpServers": {
"krusch-context-mcp": {
"command": "npx",
"args": [
"-y",
"krusch-context-mcp"
]
}
}
}Config file
{
"servers": {
"krusch-context-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"krusch-context-mcp"
]
}
}
}Platform CLI
gemini mcp add krusch-context-mcp npx -y krusch-context-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Krusch Context MCP
How to install Krusch Context MCP in Claude Code?
Run claude mcp add krusch-context-mcp -- npx -y krusch-context-mcp. You can also execute npx krusch-context-mcp init inside your repository first.
What does Krusch Context MCP do?
It provides persistent cross-session memory for AI coding agents, recording decisions and checking changes against active project rules.
What is required to run Krusch Context MCP?
You need Node.js 22.0.0 or higher. Cloud API keys and Docker containers are not needed because the default setup uses local node:sqlite.