# billy12151/memory-arbiter-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/billy12151/memory-arbiter-mcp  
**GitHub Stars:** 10  
**Views:** 12  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/billy12151-memory-arbiter-mcp

## Description
AI enhancement middleware: precise retrieval replaces full-memory loading (80%+ token cut), rule-based conflict arbitration with explainable reasons, and one local SQLite shared across Claude Code/Codex/Cursor/ZCode. Local-first, zero cloud, MIT. pip install memory-arbiter-mcp

## Tools
Capabilities this server exposes over MCP:

- **memory** — Daily memory operations: remember, find, read, update, submit conflict judgment, and status. Use `action=help` for command-specific fields.
- **memory_review** — Read-only inspection: overview, doctor, conflicts, conflict detail, judgments, history, expired memories, audit, and entities.
- **memory_govern** — Explicit user-authorized governance: retire a whole memory, resolve a conflict, confirm a memory, correct a judgment, and govern workspace aliases / pending workspaces. Do not use for ordinary updates.
- **memory_repair** — Maintenance and repair: split, rebuild claims/embeddings, cleanup, vector resync, entity backfill, and pending activation. Prefer dry-run first.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "memory-arbiter-mcp": {
    "command": "uvx",
    "args": ["memory-arbiter-mcp"]
  }
}
```

## Documentation

## What billy12151/memory-arbiter-mcp does

billy12151/memory-arbiter-mcp gives MCP-compatible coding agents a shared local memory store. Claude Code, Cursor, Codex, and ZCode can use the same SQLite database, so facts recorded by one agent are available to the others. The system keeps original text, provenance, edit history, trust levels, and workspace organization together.

The server is designed around selective retrieval rather than loading the full memory collection into every prompt. Search combines lexical and sentence-level evidence, then returns an index-style result with metadata, content length, an outline, and source offsets. A subsequent read can retrieve an exact span from the original text.

Memory conflicts are evaluated locally. A deterministic candidate-selection process feeds likely pairs to an mDeBERTa-based judge that produces a conflict probability. High-confidence conflicts can generate notices, while mid-band cases enter a bounded triage queue. The judge identifies possible disagreement but does not choose which memory should win.

## How it works

The normal workflow is to remember a reusable fact, find relevant memories, read the needed source span, and update an existing fact when its source changes. `batch_find` combines up to eight queries in one round trip, while batch reading supports grouped exact lookups. Empty searches remain empty rather than being filled with recent or unrelated memories.

Each request returns a structured result containing status fields such as `ok`, `mode`, warnings, degraded state, and data. Review and action-required information can appear in notices or in the returned data. Workspaces separate memory buckets; `default` represents the global pool. The server requires an explicit client and agent identity, and `remember` requires a workspace.

All stored data and model processing are local. Optional update checking can contact PyPI, and the browser workbench can use an LLM endpoint configured by the user.

## Setup and configuration

Install the package with pip, or install the vector and local semantic extras:

```bash
pip install "memory-arbiter-mcp[vec,semantic-local]"
mema setup --install
mema doctor
```

The setup command downloads an embedding GGUF model, with resumable downloads and a ModelScope fallback available through the install script. The mDeBERTa conflict judge requires a separate manual model installation. Configure the MCP client using an example from the repository's `examples` directory, then start the server with `mema`.

The configuration file must set both `client` and `agent_id`; blank values prevent startup. Preserve the existing configuration and database when upgrading or integrating with another client. Run `mema doctor` after installation to verify the setup and review warnings. Before writing a memory, call `memory_review` with `view="workspaces"` to select an existing workspace.

## Tools and capabilities

- `memory` handles remembering, finding, batch finding, reading, batch reading, updating, conflict judgments, status checks, and help.
- `memory_review` provides read-only views for health, workspaces, conflicts, conflict details, judgments, history, expired memories, audits, and entities.
- `memory_govern` performs explicitly authorized actions such as retirement, confirmation, conflict resolution, judgment correction, and workspace alias management.
- `memory_repair` supports splitting, claim and embedding rebuilds, cleanup, vector resynchronization, entity backfill, and pending activation. Dry-run mode is preferred before maintenance changes.

## Limitations and notes

The server refuses to start without both identity fields in its configuration. `remember` cannot be used without a workspace. The local embedding and conflict-judge capabilities depend on their model installation; missing models produce a degraded state and remediation notices. Governance operations are intended for explicit authorization, not ordinary memory updates.

_Full upstream README: https://allmcps.com/mcp/billy12151-memory-arbiter-mcp/readme_

