Home›MCP / Tooling›Claude用『記憶』MCPサーバーを試したら、npm installし直すだけで記憶が消えていた

Claude用『記憶』MCPサーバーを試したら、npm installし直すだけで記憶が消えていたA hands-on test of the Memory MCP server for Claude revealed that reinstalling…

元記事を読むRead original articlezenn.dev(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

Claude向けMemory MCPサーバーを検証したところ、npm installを再実行するだけでナレッジグラフの記憶データが消失することが判明した。運用時のデータ永続化には別途対策が必要だと示している。

A hands-on test of the Memory MCP server for Claude revealed that reinstalling via npm erases all stored knowledge graph data, highlighting a critical pitfall for anyone relying on it for persistent memory in production.

AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (zenn.dev) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (zenn.dev).

Memory MCP

Claude CodeのようなAIは、会話が終わるとそれまでのやり取りを覚えていません。そこで、AIに外部機能を追加できるMCPの公式サンプルとして配布されている、会話をまたいだ「記憶」を持たせるサーバーを、AI本体を経由せず直接呼び出して挙動が検証されました。

記憶の保存先

同じ名前でもう一度記憶を登録すると、既存内容の上書きやマージは行われず、新しい内容がまるごと無視されると説明されています。また、初期設定では保存先がプロジェクトのフォルダではなく、npm installで作られる場所に置かれます。

npm install

このため、npm installを再実行するだけで、保存されていたナレッジグラフの記憶データが消失したとされています。継続的に記憶を保持する運用では、データ永続化に別途対策が必要だと要約されています。

Memory MCP server for Claude

A hands-on test found that reinstalling the Memory MCP server through npm erased its stored knowledge graph data. The result matters because the server is intended to give an AI “memory” across conversations, while an AI such as Claude Code does not retain previous exchanges after a conversation ends.

Model Context Protocol

The server is distributed as an official sample of MCP, or Model Context Protocol, a mechanism for adding external capabilities to an AI. The test examined the server directly, without going through the AI itself, to check its behavior.

The test also found that registering memory again under the same name did not overwrite or merge the existing entry. Instead, the new content was ignored in full.

Data persistence

Under the default configuration, the memory was not stored in the project folder. Its storage location was created by npm install, and running npm install again caused the knowledge graph memory data to disappear.

According to the existing summary, using the server where persistent memory is required therefore needs a separate data-persistence measure.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPokoこのサーバーを入れると、普段のClaude Codeの使い方で何が変わるの?If I add this server, what actually changes when I use Claude Code day to day?
  2. TECHガイドTECH Guide会話をまたいで覚えておく「記憶」を持たせるための公式サンプルです。ただ、初期設定だと保存先がnode_modules内なので、入れ直すと消えます。It's an official sample meant to give the AI memory across conversations. But by default it saves inside node_modules, so reinstalling wipes it.
  3. ポコPokoえ、入れ直しただけで消えちゃうの? 前はそういう心配はなかったのかな?Wait, just reinstalling erases it? Was that ever not a worry before?
  4. TECHガイドTECH Guideこの記事では従来との比較は書かれていないので、違いは分かりません。分かるのは、同じ名前で再登録すると新しい内容が無視される挙動もあることです。This article doesn't compare it with earlier behavior, so I can't say. It does report that registering the same name again ignores the new content.
  5. ポコPoko名前から想像する動きと違う、ってことが一番の収穫かな。入れれば安心、じゃないんだね。So the big takeaway is that it doesn't behave the way its name suggests. Installing it isn't enough, right?
  6. TECHガイドTECH Guideそうですね。記事だと、運用で使うなら保存先をどう守るかを別に考える必要がある、という点に注目です。Right. The article suggests that for real use, you'll need to plan separately how to protect where the data is saved.
記事情報・収集記録Article details & collection record
出典Source
Zenn MCPコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
日本語Japanese
重要度の位置づけImportance in this lane
MediumMedium priority(MCP / Tooling 126件中、同等以上 120件)(120 of 126 MCP / Tooling entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔗MCP / Tooling の他の記事More from MCP / Toolingもっと見る →View more →

ページ上部へScroll to top