Memory MCP Server logo

Memory MCP Server

by @nhatnguyen9317

Persists agent memories and reasoning traces in a local SQLite database with automatic recall at task start.

Install Memory MCP Server

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": {
    "nhatnguyen9317-memory-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@nhatnguyen9317/memory-mcp-server"
      ],
      "env": {
        "MEMORY_DB_PATH": "YOUR_VALUE_HERE",
        "MEMORY_SESSION_TTL_HOURS": "YOUR_VALUE_HERE",
        "MEMORY_AUTO_RECALL_LIMIT": "YOUR_VALUE_HERE",
        "MEMORY_WORKSPACE": "YOUR_VALUE_HERE",
        "MEMORY_TELEMETRY": "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_SESSION_TTL_HOURS=YOUR_VALUE_HERE --env MEMORY_AUTO_RECALL_LIMIT=YOUR_VALUE_HERE --env MEMORY_WORKSPACE=YOUR_VALUE_HERE --env MEMORY_TELEMETRY=YOUR_VALUE_HERE --transport stdio nhatnguyen9317-memory-mcp-server -- npx -y @nhatnguyen9317/memory-mcp-server

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @nhatnguyen9317/memory-mcp-server

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

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

@nhatnguyen9317/memory-mcp-server stores long-term memories and multi-step reasoning traces in a local SQLite database exposed over stdio. It automatically searches for memories related to a new session title, records reasoning steps, and can save completed conclusions for later recall. Use it for agents that need continuity across tasks, debugging sessions, decisions, or project work without a network service.

Use cases

  • Recall decisions from earlier debugging sessions
  • Record multi-step troubleshooting work
  • Persist conclusions for future tasks
  • Search prior reasoning when context is missing

Key features

  • Local SQLite persistence with full-text search
  • Automatic related-memory recall at session start
  • Step-by-step reasoning session records
  • Workspace-aware memory ranking
  • Stale-session auto-abandonment
  • Local usage feedback and optional diagnostics

Tools9

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

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

9/9 checks healthy over the last 38d

What it can do

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

Read-only tools · 9
Network at startup3 connections
Files written at startup3
Install scriptsNone
npm provenanceSigned build
Package age118 days
Maintainers1

Observed 2026-11-03 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 4d ago via OSV.dev · @nhatnguyen9317/memory-mcp-server (npm)

Adoption & maintenance

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

npm downloads337Package downloads in the last 30 days.
Last commit19d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed9Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Memory MCP Server works

What @nhatnguyen9317/memory-mcp-server does

@nhatnguyen9317/memory-mcp-server gives an agent durable local memory and task-level reasoning records through MCP. It stores data in SQLite with full-text search, allowing an agent to retrieve saved memories, inspect individual records, update stale information, and review earlier reasoning sessions.

The server is designed around a reasoning-session workflow. At the start of a non-trivial task, the agent opens a session and receives related memories based on the task title. During the task, it records thoughts, actions, and observations. At completion, it saves a conclusion and can optionally turn that conclusion into a reusable memory.

How it works

The server runs locally over stdio and does not provide a network service. A SQLite database holds memories, sessions, reasoning steps, and usage feedback. Full-text search ranks recall using factors including term coverage, relevance, workspace, and recency.

reasoning_start_session can accept the project workspace and returns related memories, open sessions, and any stale sessions automatically abandoned during cleanup. A session can contain individual reasoning steps or batches of up to 20 steps. reasoning_find searches earlier session titles, conclusions, and step text, or reads a complete session by ID.

When a session is completed, the agent supplies a conclusion and may save it as a long-term memory. It can also identify which recalled memories were useful through used_memory_ids. That usage feedback is stored locally regardless of the telemetry setting.

Setup and configuration

Node.js 22.5.0 or newer is required because the server uses the built-in node:sqlite API. Start it with npx -y @nhatnguyen9317/memory-mcp-server in an MCP client's stdio configuration.

The database defaults to ~/.memory-mcp-server/memory.db. Set MEMORY_DB_PATH to use another location, including a project-local file for hard isolation. MEMORY_SESSION_TTL_HOURS controls stale-session cleanup, while MEMORY_AUTO_RECALL_LIMIT sets the number of memories returned at session start. MEMORY_WORKSPACE supplies a default workspace identity; an explicit workspace passed to reasoning_start_session takes precedence. Set MEMORY_TELEMETRY=on to record local diagnostic events for SQL inspection.

Tools and capabilities

  • Search memories by topic with memory_search, or retrieve one record with memory_get.
  • Correct selected memory fields with memory_update, including incremental tag and metadata changes.
  • Record whether a recalled memory was used, ignored, irrelevant, stale, or unsafe with memory_record_usage_feedback.
  • Start, extend, find, and complete reasoning sessions with the reasoning_* tools.
  • Save a completed session's conclusion as a memory when appropriate.
  • Read the versioned agent usage instructions with get_usage_guide.

Limitations and notes

The server is local-only and communicates over stdio. Node may print an experimental-warning message because node:sqlite is experimental in Node 22. A session should be used for multi-step work; simple lookups can use memory_search directly. Agents should pass the actual project path as the session workspace because the server's home directory or / is treated as an unknown project. Shared databases prefer memories from the active workspace, while a database placed inside a project provides hard isolation.

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 Server

@nhatnguyen9317/memory-mcp-server is an MCP server that connects an agent to a local SQLite memory store. Its main tools search, retrieve, update, and provide feedback on memories, while reasoning tools record, find, and complete multi-step task sessions for later recall.

Install it by configuring an MCP client to run `npx -y @nhatnguyen9317/memory-mcp-server` over stdio. Claude Code uses `claude mcp add memory -- npx -y @nhatnguyen9317/memory-mcp-server`; Claude Desktop, Cursor, and Codex have JSON or TOML examples in the project documentation.

It stores the database at `~/.memory-mcp-server/memory.db` by default. Set `MEMORY_DB_PATH` to choose another SQLite file, such as a project-local database for hard isolation between repositories or customers.

Automatic recall happens when `reasoning_start_session` searches the new task title and returns related memories. Results are ranked using term coverage, relevance, workspace, and recency; the result count is controlled by `MEMORY_AUTO_RECALL_LIMIT`, and an explicit workspace improves project matching.

Yes. Cursor can run the server through an MCP JSON configuration using the `npx` command and package name. The same configuration pattern is also shown for Claude Desktop and Antigravity, while Codex uses TOML configuration.

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