Midas logo

Midas

by vornicx

Local SQLite memory for AI agents with source-traceable recall, belief revision, selective forgetting, and action-safety checks.

Install Midas

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": {
    "vornicx-midas": {
      "command": "npx",
      "args": [
        "-y",
        "midas-memory-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio vornicx-midas -- npx -y midas-memory-mcp

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 midas-memory-mcp

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

vornicx/Midas provides a local memory layer for long-running AI agents, storing shared memory in SQLite without using an LLM during ingest or query. Its MCP tools return verbatim source turns, track current versus superseded beliefs, report memory changes, and guard destructive actions that rely on unconfirmed or stale memory. The `midas init` command configures supported coding and chat clients to use one shared database, while local inspection and audit features help review memory activity. Reach for it when agents need private, offline-capable memory across sessions with provenance and governance controls.

Use cases

  • Resume coding work across separate agent sessions
  • Share project decisions and constraints across MCP clients
  • Retrieve prior fixes with links to their original source turns
  • Block destructive actions based on stale or unconfirmed memory
  • Review changes to an agent's stored beliefs

Key features

  • Local SQLite memory shared across clients
  • Verbatim, source-traceable recall
  • Typed belief revision and selective forgetting
  • Provenance guard for destructive actions
  • Hash-chained audit logging
  • No LLM calls or data egress during ingest and query

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.

26/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · midas-memory-mcp (PyPI)

Adoption & maintenance

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

GitHub stars14Stargazers on the source repository.
npm downloads72Package 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.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Midas works

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:

Terminal
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.

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 Midas

vornicx/Midas is an MCP server that connects AI agents to a shared local SQLite memory. Its main capabilities include source-traceable recall, live-state inspection with `memory_state`, change tracking with `memory_diff`, typed belief revision, selective forgetting, and provenance checks that require current user confirmation before memory-justified destructive actions.

Install it with `uv tool install "midas-memory[mcp,local]"` and run `midas init` to create the shared memory and configure detected clients. You can also start the TypeScript package with `npx -y midas-memory-mcp`, or install the local Python library with `pip install "midas-memory[local]"`.

Yes, Cursor is one of the clients configured by `midas init`. The command points Cursor and other detected MCP clients at the shared SQLite database, allowing them to read and write the same local memory.

No, Midas uses no LLM calls during memory ingest or query. It processes memory locally, returns verbatim source turns, and avoids per-message model costs and data egress.

Yes, its provenance guard blocks memory-justified external or destructive actions unless the user has provided a confirmation that remains current. Superseded memory cannot authorize an action.

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