# yonro/memory-os-cli [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/yonro/memory-os-cli  
**GitHub Stars:** 13  
**npm Downloads (last month):** 901  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/yonro-memory-os-cli

## Description
XMemo is user-owned memory for AI agents over a hosted Streamable HTTP MCP endpoint. Save, search, recall, and manage scoped memories across Copilot, Claude, ChatGPT, IDEs, and CLIs. https://xmemo.dev/mcp

## Tools
Capabilities this server exposes over MCP:

- **get_mcp_identity** — Check XMemo connection status and the connected account/agent.
- **remember** — Save a memory so it can be recalled in future conversations.
- **recall** — Recall the most relevant saved memories before answering.
- **recall_context** — Read a multi-memory context pack. Requires memory:read and does not change content. Use when many memories need explicit budgets; use recall for lightweight answer or get_project_context for project snapshot. max_items/max_tokens bound rendered output.
- **memory_stats** — Show aggregate statistics for XMemo memories.
- **update_memory** — Update the content or metadata of an existing memory.
- **explain_memory** — Explain why a memory exists or matched a query.
- **restore_memory** — Restore a previously deleted memory.
- **add_expense** — Create one XMemo Ledger transaction and backing memory. Requires memory:write; it records a new transaction or reuses a semantic duplicate, and never deletes Ledger records. Use it for a purchase, income, refund, or transfer; use list_ledger_transactions or get_monthly_ledger_summary for reads. amount must be positive; transaction_type defaults to expense; blank transaction_date uses today's UTC date.
- **list_ledger_transactions** — Show XMemo Ledger records.
- **get_monthly_ledger_summary** — Summarize Ledger totals by month and currency.
- **forget** — Permanently delete a memory by target.
- **create_memory_todo** — Create a TODO/action item with an optional due time.
- **list_memory_todos** — List open or completed TODO/action items.
- **complete_memory_todo** — Mark a TODO/action item completed.
- **list_memory_versions** — List available versions for a memory.
- **get_timeline** — Read authorized timeline events newest first. Requires memory:read and makes no memory changes. Use it for recent history or session resumption; use recall_context for semantic multi-memory context. limit is clamped to 1-500; session_id and event_type are exact filters.
- **record_event** — Record a significant session event, milestone, or decision.
- **update_state** — Create or replace one scoped working-state record for resuming a task, next action, or blocker. Requires memory:write; it versions that state slot and refreshes its expiry without deleting other memories. Use remember for durable facts or record_event for history. Provide content or a structured state field; ttl_seconds=0 means no expiry.
- **get_project_context** — Read one authorized project's bounded context pack: state, TODOs, decisions, timeline, recent memories, and optional durable recall. Requires memory:read; it does not mutate project memories, and access is audit-logged. Use an exact project_id for a whole-project snapshot; otherwise use recall_context. max_items/max_tokens bound the whole pack; recent_hours affects only timeline; durable_query requires include_durable_context.

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

```json
"mcpServers": {
  "memory-os-cli": {
    "command": "npx",
    "args": ["-y","--package","@xmemo/client@latest","xmemo-mcp"]
  }
}
```

## Documentation

## What yonro/memory-os-cli does

XMemo provides a shared memory layer for AI agents. Through MCP, an agent can persist durable facts, preferences, operational knowledge, decisions, and other scoped records instead of relying only on the current conversation. Records can be recalled semantically, inspected, updated, versioned, restored, or permanently removed.

The server also covers session continuity and project work. Agents can save a replaceable working-state record, record important session events, create and complete TODOs, and read a bounded project context containing state, tasks, decisions, timeline entries, recent memories, and optional durable recall. Separate Ledger tools support expense, income, refund, and transfer records.

## How it works

XMemo exposes the same service through two MCP connection modes:

- A hosted Streamable HTTP endpoint at `https://xmemo.dev/mcp`.
- A local stdio server started through the `xmemo-mcp` command or the CLI's MCP serve command.

The repository distributes the `@xmemo/client` package. Its primary command is `xmemo`, with `client` and `memory-os` aliases. The CLI handles account login, diagnostics, client setup, status checks, behavior profiles, and related configuration. It runs on Node.js 20 or later.

Memory access is scoped and governed. Several read and write operations require the corresponding `memory:read` or `memory:write` permission. Project context and timeline reads are authorized, and project-context access is audit-logged. Context-pack tools accept item and token limits so an agent can control how much material is rendered.

## Setup and configuration

Install the client globally and use guided onboarding:

```bash
npm install -g @xmemo/client
xmemo init
```

For a manual flow, authenticate, check the installation, and configure a client:

```bash
xmemo account login
xmemo doctor
xmemo setup cursor
xmemo status
```

Use `--dry-run` to preview onboarding or client configuration without applying changes. `--yes` accepts onboarding steps automatically, `--json` emits structured output, and `--client` limits onboarding to selected clients. The package can also be run without a global install using `npx @xmemo/client`; this supports commands such as `doctor`, `init`, `skill install`, and `mcp serve`.

## Tools and capabilities

The MCP surface includes:

- Identity and diagnostics through `get_mcp_identity` and `memory_stats`.
- Durable memory operations with `remember`, `recall`, `recall_context`, `update_memory`, `explain_memory`, `restore_memory`, `forget`, and `list_memory_versions`.
- Session and project continuity with `record_event`, `get_timeline`, `update_state`, and `get_project_context`.
- Action tracking through `create_memory_todo`, `list_memory_todos`, and `complete_memory_todo`.
- Financial records through `add_expense`, `list_ledger_transactions`, and `get_monthly_ledger_summary`.

`recall` is intended for lightweight retrieval, while `recall_context` produces a bounded multi-memory pack. `get_project_context` provides a broader project snapshot when an exact project ID is available. `update_state` versions one scoped working-state slot without deleting other memories.

## Limitations and notes

The hosted service implementation is private; this repository distributes the CLI, connection surfaces, skills, and metadata rather than the service backend. Authentication and permissions affect which memories, timelines, and project records an agent can access. Ledger creation requires a positive amount and does not delete existing Ledger records. Use `forget` when permanent memory deletion is intended.

_Full upstream README: https://allmcps.com/mcp/yonro-memory-os-cli/readme_

