Agent Memory MCP logo

Agent Memory MCP

Stores and recalls agent memories in SQLite using provenance, decay scoring, and feedback.

Install Agent Memory MCP

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": {
    "agent-memory-mcp-2": {
      "command": "npx",
      "args": [
        "-y",
        "@kiraautonoma/agent-memory-mcp"
      ],
      "env": {
        "MEMORY_DB_PATH": "YOUR_VALUE_HERE",
        "MEMORY_DEBUG": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MEMORY_DB_PATH=YOUR_VALUE_HERE --env MEMORY_DEBUG=YOUR_VALUE_HERE --transport stdio agent-memory-mcp-2 -- npx -y @kiraautonoma/agent-memory-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

The agent-memory-mcp MCP server gives agents a local SQLite memory layer with provenance metadata, confidence values, decay tracking, and usefulness feedback. It exposes tools to store memories, recall them by keywords or category, record feedback, and inspect memory statistics. Use it when an agent needs persistent, auditable memory across sessions without an external API or vector database.

Use cases

  • Load high-ranked memories when an agent starts a session
  • Recall prior lessons about recurring build or operational problems
  • Store new insights with confidence and provenance metadata
  • Reinforce useful memories through explicit feedback
  • Inspect memory volume and confidence with aggregate statistics

Key features

  • Provenance metadata for stored memories
  • Decay-weighted relevance scoring
  • Keyword and category recall
  • Feedback-based usefulness tracking
  • Local SQLite storage with WAL mode
  • Memory counts and confidence statistics

Tools4

What Agent Memory MCP lets your agent do. Expand a tool for its parameters.

Verified live~506 tokens of context

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.

14/14 checks healthy over the last 72d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age232 days
Maintainers1

Observed 2026-11-07 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @kiraautonoma/agent-memory-mcp (npm)

Adoption & maintenance

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

npm downloads200Package downloads in the last 30 days.
Last commit8mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Memory MCP works

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:

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

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 Agent Memory MCP

agent-memory-mcp is an MCP server that connects an AI agent to a local SQLite memory store. Its main tools are memory_store for saving memories, memory_recall for ranked retrieval, memory_feedback for recording usefulness, and memory_stats for store metrics. It tracks provenance, confidence, decay, and feedback without requiring an API key.

Install it with npm or run it through npx. Use `npm install @kiraautonoma/agent-memory-mcp` for a local installation, or run `npx @kiraautonoma/agent-memory-mcp` directly. Configure the resulting command in an MCP client’s server settings.

Set `MEMORY_DB_PATH` to the desired SQLite file path. If omitted, the server uses `~/.agent-memory/memory.db`. The database uses WAL mode and can be copied to move the stored memories to another machine.

Yes, the README provides a Claude Desktop configuration. Add an MCP server entry that runs `npx -y @kiraautonoma/agent-memory-mcp` and optionally set `MEMORY_DB_PATH` in its environment.

It ranks memories using confidence, source trust, time-based decay, and usefulness signals. The documented scoring combines these factors, with a 30-day half-life for decay and reinforcement from access and feedback.

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 PreviewAgent Memory MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-memory-mcp-2?style=directory)](https://allmcps.com/mcp/agent-memory-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/agent-memory-mcp-2"><img src="https://allmcps.com/api/badge/agent-memory-mcp-2?style=directory" alt="Agent Memory MCP on AllMCPs" /></a>