# adrkit decision memory

Provides coding assistants with deterministic, read-only access to Git-backed ADR records. Prevents agents from re-suggesting already rejected choices.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 21
- Author: mbeacom
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mbeacom/adrkit/tree/HEAD/packages/mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/adrkit-decision-memory

## What it does

The server exposes repository Architecture Decision Records directly to coding assistants via stdio. It parses Markdown files equipped with YAML frontmatter from a directory like `docs/adr`. Crucially, it surfaces superseded or discarded decisions, stopping models from pitching architectures your team already dismissed.

Operation is entirely local. The toolset contains four read-only actions, including `search_decisions` with filters for tags, status, and scope. There are no outbound network calls, no background LLM requests, and no write operations back into the repository.

Node 22 or higher is required. Without a readable `.git` path at the root, the process exits with a non-zero status immediately.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `ADRKIT_MCP_CWD`, `ADRKIT_MCP_DIR` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env ADRKIT_MCP_CWD=<ADRKIT_MCP_CWD> --env ADRKIT_MCP_DIR=<ADRKIT_MCP_DIR> --transport stdio mcp -- npx -y @adrkit/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env ADRKIT_MCP_CWD=<ADRKIT_MCP_CWD> --env ADRKIT_MCP_DIR=<ADRKIT_MCP_DIR> -- npx -y @adrkit/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@adrkit/mcp"
            ],
            "env": {
                "ADRKIT_MCP_CWD": "<ADRKIT_MCP_CWD>",
                "ADRKIT_MCP_DIR": "<ADRKIT_MCP_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@adrkit/mcp"
            ],
            "env": {
                "ADRKIT_MCP_CWD": "<ADRKIT_MCP_CWD>",
                "ADRKIT_MCP_DIR": "<ADRKIT_MCP_DIR>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e ADRKIT_MCP_CWD=<ADRKIT_MCP_CWD> -e ADRKIT_MCP_DIR=<ADRKIT_MCP_DIR> mcp npx -y @adrkit/mcp
```
Replace <…> with your own values

## When to use it
- retrieve historical decisions before refactoring code
- filter active architectural records by tags and scope
- surface rejected technical proposals to prevent redundant work

## Example prompts
- Check our ADR records to see why we rejected PostgreSQL.
- Search decisions tagged with backend to find our database standards.
- Review past decisions governing these authentication files.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
