J0hanz Memory MCP logo

J0hanz Memory MCP

SQLite-backed persistent memory with FTS5 search, directed relationships, graph recall, and token-budget-aware context retrieval.

Install J0hanz 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": {
    "memory-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/memory-mcp@latest"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio memory-mcp-server -- npx -y @j0hanz/memory-mcp@latest

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

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

Overview

Memory MCP Server MCP server stores persistent memory in a local SQLite database and exposes it to MCP-enabled assistants over stdio. It combines SHA-256-addressed records, SQLite FTS5 search, directed relationships, breadth-first graph recall, and token-budget-aware context retrieval. Use it when an assistant needs local memory that can be searched, linked, updated, and retrieved across sessions. It requires Node.js 24 or newer and SQLite with FTS5 support, and does not expose an HTTP endpoint.

Use cases

  • Store assistant memories across local sessions
  • Search notes by content, tags, type, or importance
  • Link related memories in a directed graph
  • Recall connected memories with bounded traversal
  • Retrieve context within a token budget

Key features

  • SQLite persistence with SHA-256 memory addressing
  • FTS5 full-text search over content and tags
  • Directed memory relationships
  • Breadth-first recall up to depth 3
  • Token-budget-aware context retrieval
  • Transactional batch storage and deletion

Tools13

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

Verified live~2.1k 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 84d

What it can do

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

Can delete or modify data · 4Handles credentials · 1Read-only tools · 9
Network at startup3 connections
Files written at startup3
Install scriptsprepare
npm provenanceSigned build
Package age259 days
Maintainers1

Observed 2026-11-05 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 · @j0hanz/memory-mcp@latest (npm)

Adoption & maintenance

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

npm downloads338Package downloads in the last 30 days.
Last commit9mo 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 exposed13Callable tools this server registers over MCP.

How J0hanz Memory MCP works

What the Memory MCP Server MCP server does

Memory MCP Server provides a local persistence layer for assistants that support MCP. It stores memory records in SQLite, addressing them with SHA-256 hashes derived from their content and tags. Records can include tags, a memory type, and an importance value. Repeating the same content with the same sorted tags does not create a duplicate.

The Memory MCP Server MCP server supports both individual and batch operations. Batch writes and deletes accept between 1 and 50 items and run inside transactions. Updating a record reports both its previous and new hash. Deleting a memory also removes its associated relationships.

Search uses SQLite FTS5 across memory content and tags. Queries can apply importance and type filters and use a cursor for continued retrieval. Relationships form directed edges between memories, allowing linked information to be queried separately from full-text results.

How it works

The server communicates through stdio, so an MCP client starts it as a command and exchanges protocol messages through standard input and output. No HTTP service is provided. The implementation expects Node.js version 24 or later and checks for SQLite FTS5 support during startup.

The recall operation first finds seed memories with FTS5, then follows relationships using breadth-first traversal. Traversal depth is limited to 0 through 3, and the server can report progress for each hop. retrieve_context instead selects memories that fit a caller-provided token budget, which is useful when an agent needs bounded context rather than an unbounded search result.

The server also exposes resources: internal://instructions provides a Markdown guide, while memory://memories/{hash} identifies a memory resource and supports hash auto-completion. Input validation uses Zod, and outputs use typed envelopes.

Setup and configuration

The simplest setup runs the npm package with npx:

config.json
{
  "mcpServers": {
    "memory-mcp": {
      "command": "npx",
      "args": ["-y", "@j0hanz/memory-mcp@latest"]
    }
  }
}

The same stdio command pattern can be added to Claude Desktop, Claude Code, Cursor, Windsurf, or VS Code. Docker is also supported. A container can use MEMORY_DB_PATH to place the database at a selected path, typically alongside a mounted volume for persistence. The Memory MCP Server MCP server does not require an environment variable in its basic npx configuration.

Tools and capabilities

The tool surface contains 13 operations:

  • Store, update, retrieve, and delete individual memories.
  • Store or delete up to 50 memories in one transaction.
  • Search memories with FTS5, type and importance filters, and cursors.
  • Create, remove, and inspect directed relationships.
  • Recall related memories through bounded breadth-first traversal.
  • Retrieve context constrained by a token budget.
  • Inspect aggregate memory statistics and type breakdowns.

Limitations and notes

The Memory MCP Server MCP server is stdio-only; clients must support stdio command servers. It has no HTTP endpoint. Node.js 24 or newer is required, and SQLite must include FTS5. Custom logging must not write to stdout because stdout carries MCP traffic. Batch operations are limited to 50 items, and graph recall cannot traverse beyond depth 3.

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

Memory MCP Server is an MCP server that connects MCP-enabled assistants to a local SQLite database for persistent memory. Its main tools store, retrieve, update, delete, search, and relate memory records, then recall linked information through breadth-first traversal or assemble context within a token budget.

Install it by configuring your MCP client to run `npx -y @j0hanz/memory-mcp@latest`. The server also provides a Docker image, and documented configurations are available for Claude Desktop, Claude Code, Cursor, Windsurf, and VS Code.

Yes, Memory MCP works with Cursor through its stdio MCP configuration. Add the server to `~/.cursor/mcp.json` with `npx` as the command and `-y @j0hanz/memory-mcp@latest` as the arguments.

Memory MCP uses a local SQLite database with FTS5 support. The database path can be set with `MEMORY_DB_PATH`, particularly when running the Docker image with a mounted data volume.

No, Memory MCP exposes stdio only and does not provide an HTTP endpoint. The client must support starting MCP servers as stdio commands.

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