Memory MCP logo

Memory MCP

by JamesANZ

Stores persistent graph, vector, and conversation memories locally for semantic retrieval and context caching.

Install 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": {
    "jamesanz-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jamesanz/memory-mcp"
      ],
      "env": {
        "MEMORY_DB_PATH": "YOUR_VALUE_HERE",
        "MEMORY_MODEL_CACHE_DIR": "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.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @jamesanz/memory-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

JamesANZ/memory-mcp is an MCP server for persistent knowledge graph memory, vector search, and conversation context caching. It stores data in an embedded KuzuDB graph database and generates local 384-dimensional embeddings with HuggingFace's Xenova/all-MiniLM-L6-v2 model, so no external database service is needed. Agents can save structured entities, traverse related facts, archive context, retrieve relevant memories, and manage summaries. Reach for it when an AI coding workflow needs memory that persists across conversations and supports both semantic search and graph relationships.

Use cases

  • Store project entities and their relationships across coding sessions
  • Retrieve connected facts with semantic and graph-based queries
  • Archive conversation context for later relevance-based retrieval
  • Create summaries linked to archived conversation content

Key features

  • Embedded KuzuDB knowledge graph storage
  • Local HuggingFace vector embeddings
  • Hybrid semantic and multi-hop Cypher retrieval
  • Conversation context archiving and summarization
  • Entity, observation, and relationship management
  • Tag-based context search and relevance scoring

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.

13/13 checks healthy over the last 107d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · @jamesanz/memory-mcp (npm)

Adoption & maintenance

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

GitHub stars23Stargazers on the source repository.
npm downloads51Package downloads in the last 30 days.
Last commit13d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Memory MCP works

What JamesANZ/memory-mcp does

JamesANZ/memory-mcp gives MCP-compatible AI clients a local memory layer built around two related storage patterns. Knowledge graph memory represents entities, observations, and directed relationships. Conversation memory stores logs and archived context that can be searched or summarized later.

The server is designed for coding environments such as Cursor and Claude Desktop. Its local storage model keeps the graph database and embedding model cache on the machine running the server, avoiding a separate MongoDB, Neo4j, or other database service.

How it works

KuzuDB stores the graph in ~/.memory-mcp/graph_db by default. When graph memories are stored, the server can upsert entities with names, types, and observations, along with typed relationships between entities. It also creates local 384-dimensional embeddings using Xenova/all-MiniLM-L6-v2.

A memory query combines vector similarity with Cypher graph traversal. Semantic matching identifies relevant entry nodes, then the server follows related edges for a configurable number of hops and returns the connected subgraph and memory chunks. This approach is useful when a fact is relevant both by meaning and by its relationship to other stored facts.

Archived conversation context can carry tags and embeddings. The server supports relevance scoring, tag searches, summaries, and graph links between summaries and the content they describe. Conversation memories can also be appended with automatic entity mention extraction.

Setup and configuration

Install the published package globally with npm:

Terminal
npm install -g @jamesanz/memory-mcp

Alternatively, clone the repository, install dependencies, and build it with npm install followed by npm run build.

For Claude Desktop, configure the server as a local Node.js process and point args to the absolute path of build/index.js:

config.json
{
  "mcpServers": {
    "memory-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/memory-mcp/build/index.js"]
    }
  }
}

The Cursor installation can use the provided MCP install link, or the server can be configured manually. Set MEMORY_DB_PATH to move the graph database and MEMORY_MODEL_CACHE_DIR to choose where the local embedding model cache is stored.

Tools and capabilities

  • store-graph-memory upserts entities, observations, and typed relations.
  • query-memory combines semantic matching with multi-hop graph traversal.
  • remove-graph-entities deletes entities or selected relationships.
  • save-memories, get-memories, add-memories, and clear-memories manage basic conversation memories.
  • archive-context, retrieve-context, and score-relevance handle archived context and similarity scoring.
  • create-summary, get-conversation-summaries, and search-context-by-tags support summaries and tag-based retrieval.

Limitations and notes

The default data directory is local to the host running the MCP process, as is the embedding model cache. Changing either location requires setting the corresponding environment variable before starting the server. Clearing memories removes stored memory logs and graph entities, while graph removal tools are available for more targeted cleanup.

The server uses an embedded KuzuDB database and local HuggingFace embeddings rather than a separately managed database or remote embedding service. Graph queries can limit traversal depth and result count, allowing callers to constrain how much connected memory is returned.

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

JamesANZ/memory-mcp is an MCP server that connects AI clients to a local KuzuDB graph database and HuggingFace embeddings. Its main tools store and query graph memories, manage conversation memories, archive context, score relevance, search tags, and create linked summaries without requiring an external database.

Install it globally with npm using `npm install -g @jamesanz/memory-mcp`. You can also clone the repository, run `npm install`, and build it with `npm run build`. Cursor provides an installation link, while Claude Desktop can launch the built Node.js entry point through its MCP configuration.

No, JamesANZ/memory-mcp uses an embedded KuzuDB database and local HuggingFace embeddings. Its default graph storage is under `~/.memory-mcp/graph_db`, and the model cache is also local, so no external MongoDB or Neo4j service is needed.

Set `MEMORY_DB_PATH` to change the graph database location and `MEMORY_MODEL_CACHE_DIR` to change the embedding model cache location. Export these variables before starting the MCP server.

JamesANZ/memory-mcp supports hybrid retrieval that combines vector similarity with Cypher graph traversal. `query-memory` finds semantically related entry nodes and follows connected relationships, while archived context can be retrieved by relevance or tags.

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