# Memento [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/jee1/memento  
**GitHub Stars:** 0  
**npm Downloads (last month):** 3476  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memento-2

## Description
Agent memory MCP server with 4-type cognitive memory, hybrid search, and TTL-based forgetting.

## Tools
Capabilities this server exposes over MCP:

- **remember** — content, type, tags, importance, source, privacy_scope
- **recall** — query, filters, limit
- **feedback** — memory_id, helpful
- **pin** — memory_id
- **unpin** — memory_id
- **forget** — memory_id, hard
- **get_memory_neighbors** — memory_id, limit
- **memory_injection** — query, token_budget
- **set_anchor** — memory_id, slot
- **get_anchor** — slot
- **search_local** — slot, query, limit
- **clear_anchor** — slot
- **remember_procedure** — content, workflow_name, skill_name, steps 등
- **procedural_diff** — left_id, right_id
- **procedural_rollback** — current_id, target_version_id
- **extract_triples** — content 또는 messages
- **add_relation** — source_id, target_id, relation_type
- **get_relations** — memory_id 등
- **remove_relation** — relation_id
- **get_introspection_summary** — —
- **get_telemetry_summary** — period
- **export_memories** — filters 등

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

```json
"mcpServers": {
  "memento": {
    "command": "npx",
    "args": ["-y","memento-mcp-server@latest"]
  }
}
```

## Documentation

## What Memento does

Memento provides an MCP-based memory layer for agents. Memories can be classified as `working`, `episodic`, `semantic`, or `procedural`, allowing short-lived context, experiences, factual knowledge, and repeatable workflows to be handled separately.

The server supports the full memory lifecycle: create entries, search them, record whether recall was helpful, pin important items, remove memories, and inspect neighboring or related memories. Anchors provide named slots for context that should be restored later. Procedural memories can be compared and rolled back between versions.

Memento also supports extracting triples from content or message collections and storing explicit relations between memories. Introspection, telemetry, and memory export tools are available for inspection and data handling.

## How it works

Memory retrieval uses hybrid search based on FTS5 and vectors, with tag filtering available through recall. The `memory_injection` tool selects relevant context under a requested token budget, while `search_local` searches memories associated with an anchor slot.

Memories can be reinforced through feedback and managed with forgetting policies, including TTL-based cleanup. The server can keep related memories connected through graph-style relations. Procedural workflows use dedicated operations for version differences and rollback.

Memento runs locally with SQLite as its primary memory store. It can also run as an HTTP MCP service for multi-agent deployments, with browser sessions protecting administrative routes and bearer-token or API-key authentication for MCP and tool routes.

## Setup and configuration

The package manager supported for the standard installation is npm. For an MCP client such as Cursor, run:

```bash
npx memento-mcp-server@latest
```

A typical stdio configuration points the command at the package and sets `DB_PATH` to an absolute SQLite database path:

```json
{
  "mcpServers": {
    "memento": {
      "command": "npx",
      "args": ["memento-mcp-server@latest"],
      "env": { "DB_PATH": "/absolute/path/to/data/memory.db" }
    }
  }
}
```

Global installation is also available with `npm i -g memento-mcp-server`, which installs the `memento` CLI. Claude Code can install Memento as a plugin and store its database under `${CLAUDE_PLUGIN_DATA}/memory.db`. The `MEMENTO_CAPTURE` setting controls lifecycle capture for the Claude Code hook, and `MEMENTO_TOOLSET=full` exposes the complete tool set in `tools/list`.

## Tools and capabilities

The default MCP tool list contains `recall`, `remember`, `memory_injection`, and `feedback`. The remaining registered tools can be exposed with `MEMENTO_TOOLSET=full`.

- Store, query, rate, pin, unpin, and delete memories.
- Traverse memory neighbors and manage anchor slots.
- Save procedures, compare versions, and roll back workflows.
- Extract triples and create, inspect, or remove memory relations.
- Retrieve introspection and telemetry summaries.
- Export memories using filters.

The `remember` operation accepts content, memory type, tags, importance, source, and privacy scope. `recall` accepts a query, filters, and result limit. `memory_injection` accepts a query and token budget for targeted context restoration.

## Limitations and notes

The MCP interface exposes memory operations, while several administrative functions are HTTP-only, including anchor restoration, embedding migration, episodic-to-semantic conversion, and meta-memory statistics. The HTTP management interface separates browser-session access from header-authenticated MCP and tool routes.

The standard setup uses a local SQLite database. HTTP deployment, Docker, source builds, environment overlays, and multi-agent operation use separate installation and operational procedures. Memento is licensed under MIT.

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

