# agent-memory-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/kira-autonoma/agent-memory-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 200  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-memory-mcp-2

## Description
Agent memory MCP server with provenance tracking, decay-weighted recall, and feedback loops.

## Tools
Capabilities this server exposes over MCP:

- **memory_store** — Store a new memory with provenance tracking. Use for lessons learned, strategic insights, operational facts, or preferences.
- **memory_recall** — Recall memories ranked by decay-weighted relevance. Supports keyword search and category/tag filtering. Returns memories with provenance and confidence scores.
- **memory_feedback** — Record whether a recalled memory was useful. This drives the learning flywheel — memories marked useful bubble up, unused ones decay away.
- **memory_stats** — Get statistics about the memory store (counts, categories, avg confidence).

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

```json
"mcpServers": {
  "agent-memory-mcp": {
    "command": "npx",
    "args": ["-y","@kiraautonoma/agent-memory-mcp"],
    "env": {
      "MEMORY_DB_PATH": "",
      "MEMORY_DEBUG": ""
    }
  }
}
```

**Requires environment variables:** `MEMORY_DB_PATH`, `MEMORY_DEBUG` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What agent-memory-mcp MCP server does

The agent-memory-mcp MCP server provides persistent memory for agents through a local SQLite database. Each stored item can include content, a category, tags, confidence, source type, and other provenance information. Supported categories are `lesson`, `strategy`, `operational`, `identity`, `preference`, and `fact`.

Its retrieval model is intended to reduce repeated discovery across sessions. Memories are ranked using confidence, source trust, time-based decay, and usefulness signals. This makes the store suitable for retaining operational lessons, recurring preferences, project facts, or strategies that should be available to later conversations.

## How it works

The agent-memory-mcp MCP server exposes four MCP tools:

- `memory_store` saves a memory and its provenance metadata.
- `memory_recall` searches by keyword and/or category, then returns ranked results. An empty query returns the highest-ranked memories, which supports loading context at session start.
- `memory_feedback` records whether a recalled memory helped, with an optional explanation.
- `memory_stats` reports totals, active-memory counts, category distribution, average confidence, and feedback counts.

Recall ranking combines confidence, source trust, a decay factor, and a usefulness factor. Memories lose confidence over time using a documented 30-day half-life, while access and positive feedback can reinforce useful items. The intended workflow is to recall top memories at session start, search for relevant memories during work, store new insights afterward, and provide feedback on recalled items.

Storage uses SQLite in WAL mode. The database contains memory records and a feedback history, and the file can be copied to move the memory store to another machine.

## Setup and configuration

Install the package with npm or run it directly with `npx`:

```bash
npm install @kiraautonoma/agent-memory-mcp
npx @kiraautonoma/agent-memory-mcp
```

Configure the process as an MCP server using the client’s command-based server settings.

`MEMORY_DB_PATH` selects the SQLite file and defaults to `~/.agent-memory/memory.db`. `MEMORY_DEBUG` is optional: set it to `1` for informational logs or `verbose` for debug output. No API key is required for the local SQLite setup.

## Tools and capabilities

Use `memory_store` for durable facts and lessons, including source type, confidence, tags, and category. Use `memory_recall` with a keyword query such as a build problem, or filter by category and limit the number of results. Use `memory_feedback` after applying a result so later ranking can account for its usefulness. Use `memory_stats` to inspect the store without retrieving individual memories.

The design supports auditable memory because each record retains provenance fields rather than only storing free-form text. It also supports a feedback loop by preserving feedback history separately from the memory records.

## Limitations and notes

The database is local to the configured path, so agents that need shared or hosted memory would require a different deployment approach. Decay and feedback affect ranking, but the material does not specify deletion, synchronization, or conflict-resolution behavior.

The reported production result of reducing session-start token usage from 31K to about 800 tokens is specific to the project’s autonomous-agent deployment and should not be treated as a general benchmark.

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

