Memories MCP logo

Memories MCP

Self-hosted semantic memory for AI coding agents, with hybrid search, durable updates, extraction, and MCP tools.

Install Memories 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": {
    "memories-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "memories-mcp@latest"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

memories-mcp connects AI coding agents to a self-hosted Memories service that stores and retrieves durable facts across sessions. It combines semantic and keyword search with timeline, evidence, feedback, and conflict-handling tools for knowledge and memory workflows. Agents can add, update, delete, inspect, extract, and organize memories, while corrections preserve archived history through supersedes links. Reach for it when an agent needs persistent project context without relying on a hosted memory provider.

Use cases

  • Store coding decisions for reuse across agent sessions
  • Search project preferences and debugging learnings by meaning
  • Review dated evidence when answering temporal questions
  • Extract durable facts from conversation transcripts
  • Audit, correct, or clean up project memory

Key features

  • Hybrid semantic and BM25 search
  • Chronological and evidence-oriented retrieval
  • Versioned updates with supersedes history
  • LLM-assisted memory extraction
  • Conflict detection and lifecycle management
  • Self-hosted API, CLI, and web UI

Tools18

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

Verified live~3.7k 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.

11/11 checks healthy over the last 41d

What it can do

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

Can delete or modify data · 4Makes network requests · 2Read-only tools · 14
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age77 days
Maintainers1

Observed 2026-10-27 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 · memories-mcp@latest (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads938Package downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.
Tools exposed18Callable tools this server registers over MCP.

How Memories MCP works

What memories-mcp does

memories-mcp gives AI agents a persistent memory layer for decisions, preferences, project knowledge, bug fixes, and incomplete work. It connects through MCP to the Memories backend, where records remain available across sessions and can be searched by meaning or keywords. The service is self-hosted, so the memory data and supporting infrastructure stay under the operator's control.

The server supports both private and shared project memory patterns. Collaborative project memory uses separate person and project source prefixes, a shared backend, and managed keys with stable principal identities. Deliberate shared writes use project-scoped sources such as project/<project>/decisions, knowledge, state, or operations.

How it works

Search can combine vector similarity with BM25 keyword matching, recency, confidence, feedback, and graph relationships. memory_search returns relevant records, while memory_timeline orders results chronologically for date and multi-event questions. memory_evidence produces a more structured evidence packet with candidate records, older evidence, source and date information, confidence, and suggested follow-up queries.

Memory changes preserve history. Updating a record replaces its active text while archiving the previous version and linking it through a supersedes relationship. The service can also create related-to links, detect conflicting memories, and apply lifecycle policies such as prefix-based retention and confidence-based archiving.

memory_extract uses an LLM-based Add, Update, Delete, Noop, or Conflict workflow to turn conversation text into memory operations. It supports dry runs and per-fact approval. Credential-shaped values such as API keys, tokens, JWTs, and URL credentials are redacted before extraction or storage.

Setup and configuration

Clone the repository, enter its directory, and start the backend with Docker Compose:

bash
git clone https://github.com/divyekant/memories.git
cd memories
docker compose up -d

The service is available at http://localhost:8900. A health endpoint is provided at /health, API documentation at /docs, and a browser interface at /ui. The web interface supports browsing, searching, editing, bulk operations, extraction review, conflict resolution, lifecycle inspection, exports, and maintenance tasks.

The accompanying Python CLI can be installed with pip install -e .; it is also included in the Docker image. Configure its backend URL and API key with memories config set url and memories config set api_key. CLI configuration resolves flags first, followed by the user configuration file, environment variables, and defaults.

Tools and capabilities

  • Search semantically, with optional hybrid keyword matching.
  • Retrieve chronological results or detailed evidence packets.
  • Add, update, delete, batch-delete, list, count, and inspect memory records.
  • Check whether a proposed memory is novel before storing it.
  • Extract memories from conversation text using an approval-aware workflow.
  • Review conflicts, report missed memories, and list deferred project work.
  • Submit usefulness feedback to influence later retrieval ranking.
  • Filter, export, import, back up, and manage records through the CLI.

Limitations and notes

Automatic extraction is private-first in collaborative mode: it writes to a person's project knowledge scope rather than inferring a shared project fact. Shared project writes require an intentional memory_add operation and an approved project source. Collaborative mode also requires one backend and server-issued managed keys; administrative or environment keys do not activate it.

The extraction workflow uses an LLM and incurs a stated cost of approximately $0.001 per call. Memory deletion is ID-based, so agents should search or list records before deleting them. The server also exposes deletion by source prefix for bulk cleanup, which should be used carefully because it can remove an entire source or project scope.

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 Memories MCP

memories-mcp is an MCP server that connects AI coding agents to the self-hosted Memories service. Its main tools search, retrieve, add, update, delete, extract, and organize persistent memories, with hybrid retrieval, chronological timelines, evidence packets, conflict handling, and version history across sessions.

Install it by cloning the repository and starting the backend with Docker Compose. Run `docker compose up -d` from the project directory, then verify `http://localhost:8900/health`. The Python CLI can be installed separately with `pip install -e .`.

Yes, memories-mcp works with Cursor. The project lists Cursor among its supported AI clients, along with Claude Code, Claude Desktop, Codex, and other clients that can call MCP or HTTP services.

memories-mcp replaces the selected memory when `memory_update` is used and archives the previous version with a supersedes link. This keeps the old value recoverable and visible in timelines instead of silently discarding the earlier record.

Yes, `memory_extract` analyzes conversation text with an LLM-based Add, Update, Delete, Noop, or Conflict workflow. It supports dry runs and per-fact approval, while automatic extraction remains private in collaborative mode.

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