Qarinah logo

Qarinah

Local project memory for coding agents, with cited recall of decisions, code relationships, outcomes, and Git worktree history.

Install Qarinah

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": {
    "qarinah": {
      "command": "npx",
      "args": [
        "-y",
        "qarinah@latest"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio qarinah -- npx -y qarinah@latest

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y qarinah@latest

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

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

Qarinah MCP server builds a local, cited memory of project decisions, code relationships, tool outcomes, and Git worktree history. It runs locally with separate per-worktree ledgers and can capture metadata by default or project content when explicitly enabled. Use it when coding agents need task-relevant context across sessions instead of replaying an entire chat or repository history. Queries, proof packets, dashboards, receipts, exports, and watch workflows are available through the Qarinah CLI alongside the MCP session.

Use cases

  • Resume coding-agent work with cited decisions from earlier sessions
  • Inspect relationships between project files, symbols, and concepts
  • Compare memory and Git context across initialized worktrees
  • Generate bounded task context with evidence hashes and selection reasons

Key features

  • Local metadata or content capture
  • Cited memory graph and timeline
  • Per-worktree JSONL ledgers
  • SHA-256 evidence chain
  • Proof-carrying task context
  • Local dashboard and LSP workflows

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.

11/11 checks healthy over the last 45d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · qarinah@latest (npm)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Qarinah works

What the Qarinah MCP server does

The Qarinah MCP server gives coding-agent sessions access to retained project context from a local memory graph. It records permitted decisions, relationships between code symbols and files, tool outcomes, conflicts, and Git worktree history. New sessions can retrieve relevant cited context rather than reconstructing the project from a complete previous conversation.

Each worktree has its own .qarinah ledger and consent record. Qarinah derives repository and branch context, associates memories with the checkout that produced them, and preserves separate writable histories instead of linking worktrees to one shared database. The JSONL ledger is authoritative, while deterministic OKF 0.1 Draft Markdown provides a portable export view.

How it works

Setup uses the local CLI. The safe default is metadata-only capture without a hosted account, content disclosure, or activation measurement. Content capture and automatic compaction are opt-in. A foreground watch workflow can notice source changes, refresh the symbol graph, and regenerate local read models; unchanged cycles do not create duplicate checkpoints.

Retained events include SHA-256 content and record digests plus the previous record hash. Retrieved context can include event IDs, evidence hashes, selection reasons, and packet manifests. The proof command combines current decisions, temporal facts, and query-ranked files and symbols into a bounded task packet. receipts writes body-free records for captured host sessions, while panel searches the visible graph and timeline.

Qarinah does not install a hidden background service or inspect unrelated applications. Optional activation measurement is disabled unless explicitly enabled, and its documented payload excludes project content, paths, queries, transcripts, and event bodies.

Setup and configuration

Initialize a project with:

Terminal
npx qarinah@latest setup .

To enable content capture and automatic compaction, use:

Terminal
npx qarinah setup . --capture content --auto-compact

npx qarinah demo creates an isolated temporary workspace for trying the workflow without changing a repository or configuring coding agents. User-level automatic initialization can be enabled with setup-user, and its status can be checked with auto-init status. Remote hosts require their own setup. The local dashboard is served with npx qarinah dashboard --serve; --worktrees adds initialized sibling worktrees.

Tools and capabilities

The Qarinah MCP server and CLI support these documented workflows:

  • Search project memory and timeline with panel.
  • Query cited context in Markdown format.
  • Generate task-aware proof packets with proof.
  • Write exact session receipts with receipts --write.
  • Run an explicit change-detection and memory-refresh loop with watch.
  • Compare separate worktree ledgers in the local dashboard.
  • Export the ledger as deterministic OKF Markdown.
  • Expose multi-language definitions and references through the project-local qarinah-lsp.

The dashboard provides searchable graph and timeline views, worktree comparison, and detailed session replay. A local VS Code/Cursor panel is described as a sandboxed, read-only webview. A JetBrains template and a standard LSP workflow are also documented.

Limitations and notes

Capture scope depends on the selected mode and explicit consent. Metadata-only setup does not retain project content, while content-enabled workflows require an explicit choice. Separate worktrees remain separate ledgers, so comparisons operate across initialized checkouts rather than one shared writable history.

The published evaluator results describe deterministic tests over generated or isolated repositories. They should not be read as universal accuracy, cost, or cross-product guarantees.

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 Qarinah

Qarinah is an MCP server that connects coding-agent sessions to a local project memory graph containing permitted decisions, code relationships, tool outcomes, and Git worktree history. Its main tools and workflows include querying cited context, searching the panel, generating proof packets, writing receipts, watching changes, and serving a local dashboard.

Install it by running `npx qarinah@latest setup .` in the project directory. This initializes local project memory with metadata-only capture by default. Use `--capture content` or `--auto-compact` when those behaviors are explicitly wanted.

Yes, Qarinah documents a VS Code/Cursor panel. The panel is a local, sandboxed, read-only webview with searchable graph, timeline, worktree comparison, and session replay views.

Qarinah preserves evidence with SHA-256 content and record digests, a previous-record hash, cited event identities, and packet manifests. Proof packets also include selection reasons and explicit exclusions so retrieved context can be inspected.

Yes, Qarinah can compare initialized sibling worktrees through its dashboard and harness workflows. Each checkout keeps a separate writable ledger with branch and commit identities, event totals, divergent heads, and current decisions.

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 PreviewQarinah AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/qarinah?style=directory)](https://allmcps.com/mcp/qarinah)
HTML Embed
<a href="https://allmcps.com/mcp/qarinah"><img src="https://allmcps.com/api/badge/qarinah?style=directory" alt="Qarinah on AllMCPs" /></a>