Skip to main content
Glama
ninos-claude-memory-mcp

ninos-claude-memory-mcp

by ninodinoo
  _   _                        ____ _                 _        __  __
 | \ | (_)_ __   ___ ( )___   / ___| | __ _ _   _  __| | ___  |  \/  | ___ _ __ ___   ___  _ __ _   _
 |  \| | | '_ \ / _ \|// __| | |   | |/ _` | | | |/ _` |/ _ \ | |\/| |/ _ \ '_ ` _ \ / _ \| '__| | | |
 | |\  | | | | | (_) | \__ \ | |___| | (_| | |_| | (_| |  __/ | |  | |  __/ | | | | | (_) | |  | |_| |
 |_| \_|_|_| |_|\___/  |___/  \____|_|\__,_|\__,_|\__,_|\___| |_|  |_|\___|_| |_| |_|\___/|_|   \__, |
                                                                                                   |_/

Claude never forgets where you left off.

Persistent project memory for Claude Code via the Model Context Protocol.

MCP Version License Node

Problem  •  How It Works  •  Installation  •  Tools  •  Usage  •  License


The Problem

Claude Code has no memory between sessions. Every conversation starts from zero.

You spend an hour making architectural decisions, fixing bugs, establishing patterns — then close the terminal. Next session, all of that context is gone. You waste the first 10 minutes re-explaining what you already discussed yesterday.

This is context rot. It compounds over time, and it gets worse the larger your project becomes.

Related MCP server: MCP Memory Keeper

How It Works

This MCP server creates a .claude-memory/ folder inside your project. Two focused tools let Claude persist and retrieve knowledge across sessions. A startup hook automatically loads the current work state — zero manual intervention.

your-project/
├── src/
├── package.json
├── .claude-memory/                  # Created automatically on first use
│   ├── index.json                   # Topic registry
│   ├── architecture.md              # System design knowledge
│   ├── decisions.md                 # Why choices were made
│   ├── current-task.md              # Active work state (auto-loaded on session start)
│   └── entities/                    # Nested topics via slash notation
│       └── auth.md
└── ...

Session Lifecycle

┌─────────────────────────────────────────────────────────────────────────┐
│                                                                         │
│   SESSION START              DURING WORK                SESSION END     │
│                                                                         │
│   ┌──────────┐    ┌──────────┐    ┌──────────┐    ┌──────────┐         │
│   │   Hook   │    │  Claude  │    │  check-  │    │  check-  │         │
│   │  auto-   │───▶│  works   │───▶│  point   │───▶│  point   │         │
│   │  loads   │    │  with    │    │  saves   │    │  final   │         │
│   │ context  │    │ context  │    │  state   │    │  state   │         │
│   └──────────┘    └──────────┘    └──────────┘    └──────────┘         │
│        │                                               │                │
│   Reads from                                     Writes to              │
│   .claude-memory/                                .claude-memory/        │
│                                                                         │
└─────────────────────────────────────────────────────────────────────────┘

Installation

claude mcp add ninos-claude-memory -s user -- npx -y ninos-claude-memory-mcp

Claude Code downloads, builds, and connects automatically.

Verify:

claude mcp list
# Should show: ninos-claude-memory: connected

From source

git clone https://github.com/ninodinoo/ninos-claude-memory-mcp.git
cd ninos-claude-memory-mcp
npm install && npm run build

Then register:

claude mcp add ninos-claude-memory -s user -- node /absolute/path/to/dist/index.js

Register the SessionStart Hook

Add to your global ~/.claude/settings.json:

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "command": "node /absolute/path/to/dist/hooks/session-start.js",
        "timeout": 5000
      }
    ]
  }
}

This auto-loads current-task and the topic list on every prompt — no manual loading needed.

Tools

Two tools. That's it.

memory

One tool for all memory operations. Behavior depends on what you pass:

Call

What happens

memory()

List all topics with size and last update

memory(topic: "architecture")

Read a specific entry

memory(topic: "decisions", content: "...", mode: "write")

Write / overwrite

memory(topic: "decisions", content: "...", mode: "append")

Append to existing

memory(topic: "old-stuff", mode: "delete")

Delete an entry

Auto-initializes .claude-memory/ with architecture, decisions, and current-task on first write.

Parameters:

Name

Type

Default

Description

topic

string

""

Topic path. Empty = list all

content

string

""

Markdown content. Empty = read

mode

write | append | delete

write

Write mode

tags

string[]

[]

Optional tags

checkpoint

Save current work state. Overwrites current-task — last state wins, no bloat.

checkpoint(
  summary: "Auth module done with JWT + refresh tokens",
  nextSteps: ["Add rate limiting", "Write integration tests"]
)

Parameters:

Name

Type

Required

Description

summary

string

Yes

What was accomplished

nextSteps

string[]

No

Planned next actions

blockers

string[]

No

Open questions or blockers

Usage

Add this to your project's CLAUDE.md:

## Memory

- Session start automatically loads current work state via hook
- After significant changes: call `checkpoint`
- Save decisions: `memory("decisions", "new decision here...", "append")`
- Delete obsolete entries: `memory("old-topic", "", "delete")`

Topics

Topics map to Markdown files. Slashes create subdirectories:

Topic

File

architecture

.claude-memory/architecture.md

decisions

.claude-memory/decisions.md

current-task

.claude-memory/current-task.md

entities/auth

.claude-memory/entities/auth.md

Data Format

Every entry is plain Markdown with a metadata header:

<!-- META:{"created":"2026-01-01T10:00:00Z","updated":"2026-01-15T14:30:00Z","accessCount":5,"tags":["core"]} -->

# Authentication Architecture

JWT-based auth with refresh token rotation...

Files are human-readable, editable, and committable. Add .claude-memory/ to .gitignore to keep it personal, or commit it to share context with your team.

Security

  • Path traversal protection — Topics with ../ are blocked and auto-cleaned from the index

  • 100% local — No cloud, no external services, no network calls

  • No secrets — The server never reads or stores credentials

Architecture

src/
├── index.ts              # MCP server bootstrap (stdio transport)
├── hooks/
│   └── session-start.ts  # SessionStart hook (standalone Node.js script)
├── memory/
│   ├── store.ts          # Filesystem abstraction + path safety + auto-healing index
│   └── initializer.ts    # Project detection + initial topic scaffolding
└── tools/
    ├── memory-tools.ts   # memory — read, write, append, delete, list
    └── session-tools.ts  # checkpoint — save work state

Design Principles

Principle

Implementation

Minimal surface

2 tools, not 12. Less for Claude to learn, fewer tokens wasted

File-based

Plain Markdown. No database, no cloud, no lock-in. cat works

Auto-healing

Corrupt metadata recovers gracefully. Invalid index entries are cleaned on read

Zero config

Detects project type (Node, Rust, Go, Python), creates structure on first use

Fail-safe hook

SessionStart hook silently no-ops on errors — never blocks Claude from starting

Requirements

  • Node.js 18+

  • Claude Code with MCP support

Disclaimer

This project is provided as-is, without warranty of any kind. Memory entries are generated by Claude — treat them as helpful notes, not ground truth. Always review content before relying on it for critical decisions.

Contributing

Issues and pull requests welcome at github.com/ninodinoo/ninos-claude-memory-mcp.

License

MIT with Attribution — free to use, modify, and distribute.

Public forks and derivative works must credit the original author:

Originally created by ninodinoo — ninos-claude-memory-mcp

See LICENSE for details.

Available Tools

2 tools
checkpointCheckpoint setzenA

Speichert den aktuellen Arbeitsstand unter 'current-task'. Rufe dies nach jedem bedeutenden Schritt auf. Wird automatisch bei der nächsten Session geladen.

Inputs: summary (required), blockers, nextSteps.

memoryMemory verwaltenA

Liest, schreibt, hängt an oder löscht Memory-Einträge. Ohne topic: Übersicht aller Topics. Mit topic ohne content: Eintrag lesen. Mit topic + content: Eintrag schreiben/anhängen/löschen.

Inputs: mode, tags, topic, content.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 2 tools

    Disambiguation3/5

    Checkpoint and memory overlap conceptually: checkpoint is essentially a fixed-topic write to the memory store, so an agent saving progress could plausibly pick either. The descriptions do differentiate them (checkpoint = parameterless 'current-task' save for session persistence; memory = general topic-based CRUD), which keeps confusion moderate rather than severe.

    Naming Consistency4/5

    Both names are single lowercase nouns with a consistent style, so the set is predictable. However, neither name conveys an action, and the polymorphic 'memory' tool hides four operations behind one noun.

    Tool Count3/5

    Two tools for a memory server is thin; the surface relies on 'memory' being heavily polymorphic (read/write/append/delete via argument combinations) to compensate. It is compact and arguably sufficient, but borderline under-scoped.

    Completeness4/5

    Core lifecycle is covered: checkpoint persists state and auto-loads next session, while memory handles topic overview, read, write, append and delete. Gaps are minor—no explicit checkpoint retrieval/clearing tool and no search—but these are workable via memory's topic operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude AI coding assistants to persist and restore context across sessions, organize saved work by channels and categories, create checkpoints, search past context, and share state between parallel sessions.
      150 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables Claude AI coding assistants to persist and restore context across sessions, preserving work history, decisions, and progress. It provides checkpointing, search, channels, file caching, and git integration so long-running coding tasks can continue without losing critical information.
      150 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude AI coding assistants to persist and restore context across sessions, including saved findings, decisions, progress, checkpoints, file caches, and searchable topic channels. Supports shared memory across parallel sessions and Git-aware context organization.
      150 npm
      MIT