MCP Memory Graph logo

MCP Memory Graph

Local MCP memory with semantic search, keyword search, knowledge graphs, and SQLite storage.

Install MCP Memory Graph

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": {
    "mcp-memory-graph-2": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-memory-graph"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio mcp-memory-graph-2 -- npx -y mcp-memory-graph

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

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

Overview

The mcp-memory-graph MCP server gives Claude Code and other MCP clients persistent local memory backed by SQLite. It combines local embeddings, keyword search, a knowledge graph, and optional reranking without requiring a cloud account or API key. Use the mcp-memory-graph MCP server when an assistant needs to recall decisions and project knowledge across sessions while keeping data on the local machine. Claude Code hooks can capture and recall memories automatically, with scheduled maintenance for deduplication and cleanup.

Use cases

  • Remember architecture decisions across Claude Code sessions
  • Search project notes by meaning and keywords
  • Build a local knowledge graph of services and dependencies
  • Browse and maintain stored memories in a web dashboard

Key features

  • SQLite-based persistent local memory
  • Hybrid semantic and keyword search
  • Knowledge graph for linked entities and memories
  • Claude Code capture and recall hooks
  • Local dashboard for browsing and search
  • Scheduled deduplication and consolidation

Tools51

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

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

17/21 checks healthy over the last 117d

What it can do

From the 51 tools this server returned when we ran it; 51 declare their own safety hints.

Can delete or modify data · 5Writes files · 1Handles credentials · 2Makes network requests · 5Read-only tools · 45
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age156 days
Maintainers1

Observed 2026-11-15 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 13d ago via OSV.dev · mcp-memory-graph (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads875Package downloads in the last 30 days.
Last commit4mo 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 exposed51Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Memory Graph works

What mcp-memory-graph does

The mcp-memory-graph MCP server provides persistent memory for Claude Code and other MCP clients. Memories are stored in a SQLite database on the user's machine, so decisions, notes, and other knowledge remain available after a conversation ends. The project is intended for developers and small teams that want local storage instead of a hosted memory service.

It supports semantic search as well as keyword search. A query can find related information even when the stored text uses different wording. Memories can also be connected to entities and to one another through a knowledge graph, which supports questions that require following relationships between stored items.

The server includes a local web dashboard for browsing and searching the memory store. The dashboard exposes memory counts, scopes, types, tags, quality scores, read frequency, and recent entries.

How it works

When a memory is saved, a local MiniLM-based embedding model converts its text into a 384-number vector. The server stores that vector and a keyword-search index in the same SQLite database. By default, the database is located at ~/.mcp-memory/memory.db.

Search combines semantic and keyword results, merges their rankings, and returns matches with confidence information. The embedding model is downloaded the first time a memory tool runs and cached under ~/.cache/huggingface/.

A scheduled dream cycle handles maintenance tasks such as deduplication, rescoring, pruning, and reporting knowledge gaps. Claude Code users can also enable a Stop hook that sends the session transcript to their locally installed claude -p command for learning extraction. This hook can be disabled with review_on_stop: false.

Setup and configuration

Node.js 20 or newer is required. The package can be installed globally with npm, or run directly with npx -y mcp-memory-graph. Claude Code registration can be performed with claude mcp add, while npx mcp-memory-graph init can register the server, install capture and recall hooks, write configuration, install the usage skill, and schedule nightly cleanup. The --yes option accepts defaults, and --no-register skips automatic MCP registration.

The mcp-memory-graph MCP server can be removed with npx mcp-memory-graph uninstall. Running npx mcp-memory-graph consolidate starts consolidation manually.

Tools and capabilities

The README reports 51 available tools: 45 memory_* tools, three vault_* tools, and three core_memory_* tools. The documented capabilities include:

  • Storing and retrieving persistent memories
  • Hybrid semantic and keyword search
  • Knowledge-graph relationships between memories and entities
  • Browsing and searching through a local web dashboard
  • Automatic session capture and recall through Claude Code hooks
  • Quality scoring, usage tracking, deduplication, pruning, and consolidation

Limitations and notes

The server uses a single-process SQLite design. Local operation avoids cloud infrastructure, telemetry, API keys, and metered token costs, but commercial use is not covered by the free noncommercial license. Personal projects, hobbies, study, research, charity, education, and government use are listed as permitted; commercial use requires a paid license.

The optional Stop hook invokes a locally installed Claude Code command, which is an exception to the otherwise local processing path. Users who do not want transcript-based learning extraction can disable that hook.

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

Use Node.js 20 or newer, then run `npx -y mcp-memory-graph` or install the npm package globally with `npm install -g mcp-memory-graph`.

No.

Run `npx mcp-memory-graph init` to register the server and install the Claude Code hooks, or register it manually with `claude mcp add memory-server -- npx -y mcp-memory-graph`.

The default SQLite database path is `~/.mcp-memory/memory.db`.

Commercial use requires a paid license. The included PolyForm Noncommercial license covers listed noncommercial uses such as personal projects, study, research, education, and government.

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