# vornicx/Midas [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/vornicx/Midas  
**GitHub Stars:** 14  
**npm Downloads (last month):** 72  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/vornicx-midas

## Description
Local-first memory for long-horizon AI agents with no LLM at ingest — $0 per message, zero data egress, verbatim source-traceable recall. Typed belief revision, selective forgetting, and a provenance guard that blocks memory-justified destructive actions unless user-confirmed. One midas init wires Claude Code, Cursor, Codex, and 6 more clients to one shared SQLite memory; local web inspector and hash-chained audit log. Benchmarked on LongMemEval/LoCoMo/BEAM with one-command repros — including published negatives. uvx midas-memory-mcp or npx -y midas-memory-mcp

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

```json
"mcpServers": {
  "midas": {
    "command": "npx",
    "args": ["-y","midas-memory-mcp"]
  }
}
```

## Documentation

## What vornicx/Midas does

vornicx/Midas adds persistent, local memory to long-horizon AI agents. It records decisions, constraints, facts, and prior troubleshooting context in a SQLite database that can be shared by multiple MCP clients. Recall points back to the exact source turn instead of returning an LLM-generated summary, making retrieved context auditable.

The design avoids LLM calls during both ingestion and querying. That keeps message processing local and avoids per-message model costs or network egress. Midas is aimed at agents that need to resume work across sessions while retaining the distinction between current information and obsolete information.

## How it works

The default shared database is created at `~/.midas/memory.sqlite3`. Agents connect through a local MCP worker, and multiple compatible sessions can read and write the same memory. The Python package requires Python 3.11 or newer; a TypeScript package is also available through npm.

Memory entries use typed belief revision: when a newer value supersedes an older one, the prior belief is not treated as current. Selective forgetting helps keep stored memory bounded. Recall remains tied to the original turn, and the system maintains a hash-chained audit log for activity review.

A provenance guard separates using memory for planning from authorizing an external or destructive action. Such an action requires a user confirmation that is still applicable; superseded memory cannot authorize it. The project also includes deterministic benchmark and governance suites covering retrieval, resume fidelity, conflict handling, repeated-mistake avoidance, and adversarial memory-safety cases.

## Setup and configuration

Install the Python distribution with:

```bash
uv tool install "midas-memory[mcp,local]"
```

Then initialize the shared store and client configuration:

```bash
midas init
```

`midas init` detects supported clients and points them at the shared memory. Use `midas init --dry-run` to preview changes, or `midas status` to inspect wiring. Both commands accept `--json` and produce a machine-readable wiring receipt containing client configuration and scope or policy details without exposing memory contents.

A JavaScript-only installation can start the TypeScript implementation with:

```bash
npx -y midas-memory-mcp
```

The library form is available with `pip install "midas-memory[local]"`. After an upgrade, restart connected MCP sessions. The worker starts for a SQLite database on its first tool call and exits after the final connection has been closed for 30 seconds.

## Tools and capabilities

- Retrieve source-traceable memories through similarity-based recall.
- Inspect the live, non-superseded state with `memory_state`.
- Review added and revised beliefs with `memory_diff`.
- Apply provenance checks before memory-justified destructive or external actions.
- Revise typed beliefs and selectively forget stored information.
- Share one SQLite memory across Claude Code, Codex, Cursor, Claude Desktop, Windsurf, VS Code, Gemini CLI, Cline, and Zed.
- Inspect local memory activity and its hash-chained audit history.

## Limitations and notes

Midas intentionally does not provide whole-conversation aggregation or summarization through top-k retrieval. The project documents this as a tradeoff: retrieval is local, deterministic, and source-preserving, but broad questions requiring coverage of an entire conversation can exceed what top-k context retrieves.

The benchmark results include measured misses and negative experiments, including attempts involving hybrid retrieval, reranking, thread diversification, dual-granularity indexing, and naive distillation. These results are useful when deciding whether source-level retrieval fits an application that needs comprehensive conversation synthesis.

_Full upstream README: https://allmcps.com/mcp/vornicx-midas/readme_

