Hunch logo

Hunch

Indexes Git-based engineering memory and exposes decisions, constraints, bug history, structure, and task context through MCP.

Install Hunch

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": {
    "hunch-2": {
      "command": "npx",
      "args": [
        "-y",
        "@davesheffer/hunch",
        "mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio hunch-2 -- npx -y @davesheffer/hunch mcp

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

The hunch MCP server indexes a Git repository’s code and engineering records, then exposes memory and verification workflows through MCP tools. Agents can retrieve rationale, constraints, bug lineage, dependency impact, task briefs, runbooks, and current project state before editing code. Hunch also records decisions, corrections, findings, task reports, and human-reviewed design or ADR outcomes with provenance. Reach for it when multiple AI sessions or developers need a shared, inspectable record of why the code works as it does.

Use cases

  • Explain why a file or symbol exists before changing it
  • Check constraints and dependency impact before editing code
  • Reuse a proven runbook for a recurring engineering task
  • Compare candidate branches against recorded project rules
  • Record human decisions and task evidence for later sessions

Key features

  • Git-backed engineering memory
  • Graph and full-text retrieval with provenance
  • Constraint and dependency impact checks
  • Decision, finding, bug, and task recording
  • Deterministic merge and conformance checks
  • Optional shared private memory repository

Tools29

What Hunch lets your agent do. Expand a tool for its parameters.

Verified live~7.4k tokens of context

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.

15/15 checks healthy over the last 79d

What it can do

From the 29 tools this server returned when we ran it.

Runs commands · 2Handles credentials · 1Read-only tools · 27
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age169 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @davesheffer/hunch (npm)

Adoption & maintenance

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

GitHub stars18Stargazers on the source repository.
npm downloads6.2kPackage downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Tools exposed29Callable tools this server registers over MCP.

How Hunch works

What hunch does

hunch maintains engineering memory for an AI-assisted codebase and makes relevant records available to agents over MCP. Its memory can cover architectural decisions, rejected alternatives, constraints, bug histories, findings, components, symbols, commitments, and task evidence. Repository memory is kept in Git, with an optional dedicated private memory repository for shared use.

The server connects recorded knowledge to indexed files, symbols, and dependencies. That lets an agent ask why a piece of code exists, identify rules before editing, inspect a change’s dependency surface, or retrieve a compact task brief instead of searching the repository repeatedly. Memory is advisory by default; blocking behavior requires a trusted rule and strict enforcement.

How it works

Install the CLI in a Git repository and run hunch init. Initialization indexes the code, adds Hunch instructions, and configures supported assistant integrations while preserving existing settings. Optional backfilling can draft memory from recent Git history.

The MCP tools divide work by purpose. hunch_structure maps files and symbols, hunch_context assembles a focused task brief, and hunch_why retrieves rationale for one target. hunch_query searches the broader engineering graph, while hunch_runbook retrieves established procedures. Before edits, agents can inspect constraints, dependents, blast radius, findings, and bug lineage. Diff and architecture checks are available through tools such as hunch_merge_verdict, hunch_pr_impact, and hunch_conformance.

Task lifecycle tools record what memory was delivered, what an agent reported using, and which command results were observed. Reports distinguish those evidence types rather than treating a claimed test result as verification. Human decisions remain human-controlled: HLD questions, imported ADR review, escalations, and decision confirmation include explicit approval steps.

Setup and configuration

Hunch requires Node.js 22.13 or newer and a Git repository. Install the package globally with npm i -g @davesheffer/hunch, change to the repository, and run hunch init. If the global executable is unavailable, initialization can be run with npx -y @davesheffer/hunch@latest init.

After setup, reload or reconnect the assistant. Codex users should review and trust commands in /hooks before starting a new session. hunch integrations check inspects configuration, while harness-specific checks can probe MCP startup or require observed context delivery.

Use hunch firmness strict followed by a strict check command only after reviewing and trusting the relevant constraints. hunch update installs the latest release and repairs configured integration pins without overwriting unrelated settings. hunch uninstall removes installed integration files while retaining .hunch/; --purge also removes the Hunch memory and related derived data.

Tools and capabilities

  • Search engineering memory with ranked results and provenance using hunch_query.
  • Build focused briefs, inspect structure, and retrieve rationale with hunch_context, hunch_structure, and hunch_why.
  • Check constraints, dependent symbols, blast radius, findings, and historical bug lineage before changes.
  • Compare branches, assess pull-request impact, issue merge verdicts, and test architectural conformance deterministically.
  • Capture decisions, corrections, findings, task reports, runbooks, HLD discussions, and imported ADR reviews with explicit provenance.
  • Inspect current decisions, timelines, escalations, workspaces, and recent project activity.
  • Share repository memory through Git and optionally connect a dedicated private memory repository.

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 Hunch

hunch is an MCP server that connects AI coding assistants to a Git-backed engineering memory for decisions, constraints, bugs, symbols, and task evidence. Its main tools include hunch_context, hunch_query, hunch_why, hunch_structure, hunch_check_constraints, and hunch_merge_verdict for retrieving rationale and checking changes.

Install Node.js 22.13 or newer, use a Git repository, then run `npm i -g @davesheffer/hunch` and `hunch init` from that repository. If the global command is unavailable, run `npx -y @davesheffer/hunch@latest init` instead, then reload the coding assistant.

Yes, hunch works with Cursor. Running `hunch init` configures supported assistant integrations and adds memory instructions, but MCP connectivity alone does not confirm that automatic context or hooks are active. Use the integration checks to inspect configuration and verified capabilities.

hunch enforces constraints only when a rule is explicitly trusted and strict mode is enabled. Review the applicable rules, run `hunch firmness strict`, and use a strict check such as `hunch check --staged --strict`; memory and generated notes remain advisory by default.

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