# ori-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/aayoawoyemi/Ori-Mnemos  
**GitHub Stars:** 339  
**npm Downloads (last month):** 265  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ori-memory-2

## Description
Persistent memory infrastructure for AI agents. Identity, knowledge graph, and search.

## Tools
Capabilities this server exposes over MCP:

- **ori_wake** — Session boot: bounded briefing, plus onboarding on a fresh vault
- **ori_update** — Write to identity, goals, methodology, daily, or reminders
- **ori_update_decision** — Record the user's answer to an update notice
- **ori_whats_new** — Release notes for the installed version, or any version
- **memory_sql** — Read-only SQL over the index — anything the ranking tools cannot express
- **ori_health** — Full diagnostics
- **ori_add** — Capture to inbox
- **ori_promote** — Promote with classification, linking, and area assignment
- **ori_validate** — Schema validation
- **ori_query_ranked** — Full retrieval with Q-value reranking, co-occurrence PPR, and stage meta-learning
- **ori_query_similar** — Semantic search (vector only, faster)
- **ori_warmth** — Inspect the associative warmth field
- **ori_explore** — Recursive graph traversal — PPR, sub-question decomposition, convergence detection
- **ori_prune** — Activation topology analysis and archive candidates
- **ori_index_build** — Build/update embedding index and bootstrap co-occurrence edges

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

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

## Documentation

## What ori-memory MCP server does

The ori-memory MCP server provides a persistent memory layer for AI agents. Its source of truth is a Markdown vault on disk, while an index is generated for retrieval and analysis. Wiki-links represent graph connections between items, allowing related memories to influence searches and exploratory traversal.

The system covers several memory workflows. An agent can start a session with a bounded briefing, add information to an inbox, promote items into classified and linked knowledge, and update identity, goals, methodology, daily notes, or reminders. It can also record a user's response to an update notice.

Because the data is stored locally, the same memory can be used across sessions, clients, and machines. Git can provide version control for the Markdown content. The derived index is rebuildable, but learned retrieval data such as Q-values, LinUCB arms, and retrieval history is separate and should be exported before removing it.

## How it works

The ori-memory MCP server exposes `ori serve` as the agent-facing MCP entry point. Its retrieval pipeline can use vector similarity, graph relationships, activation behavior, co-occurrence information, and learned ranking. Ranked retrieval applies Q-value reranking, co-occurrence-based personalized PageRank, and stage meta-learning. Semantic-only search is available when lower-latency vector retrieval is preferable.

Exploration supports recursive graph traversal, sub-question decomposition, and convergence detection. The warmth view exposes the associative activation field, while pruning analyzes activation topology and identifies archive candidates. These operations let an agent inspect not only matching memories but also how related knowledge is connected.

The index is derived from the vault. `ori_index_build` creates or updates the embedding index and bootstraps co-occurrence edges, so index changes should follow changes to the underlying Markdown files.

## Setup and configuration

Install the package from npm and initialize a vault with the CLI command `npx ori init`. Build its derived index with `npx ori index build`, then register `ori serve` in an MCP client configuration.

The project also exposes CLI and library surfaces. The CLI includes exploration and read-only SQL commands. Programmatic callers can use the exported `recall` function with a vault path, query, and result limit; the library path and MCP retrieval path are intended to share the same retrieval wiring.

## Tools and capabilities

- `ori_wake`: provide a bounded session briefing and onboard a fresh vault.
- `ori_add` and `ori_promote`: capture inbox content, then classify, link, and assign it to an area.
- `ori_update` and `ori_update_decision`: maintain structured memory and record update decisions.
- `ori_query_ranked` and `ori_query_similar`: perform learned graph-aware retrieval or faster vector-only search.
- `ori_explore`, `ori_warmth`, and `ori_prune`: inspect graph traversal, associative activation, and archive candidates.
- `memory_sql`, `ori_health`, and `ori_validate`: query the index, diagnose the system, and check schema validity.
- `ori_index_build`: generate or refresh embeddings and co-occurrence edges.

## Limitations and notes

The index is derived rather than authoritative; the Markdown vault is the canonical data. Learned retrieval state is not described as fully rebuildable, so it should be exported before deleting the index or related files. The benchmark material reports point-in-time, project-specific results and should not be treated as a general ranking of memory systems.

_Full upstream README: https://allmcps.com/mcp/ori-memory-2/readme_

