Claude用『記憶』MCPサーバーを試したら、npm installし直すだけで記憶が消えていたA hands-on test of the Memory MCP server for Claude revealed that reinstalling…
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.
- ポコPokoこのサーバーを入れると、普段のClaude Codeの使い方で何が変わるの?If I add this server, what actually changes when I use Claude Code day to day?
- 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.
- ポコPokoえ、入れ直しただけで消えちゃうの? 前はそういう心配はなかったのかな?Wait, just reinstalling erases it? Was that ever not a worry before?
- 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.
- ポコPoko名前から想像する動きと違う、ってことが一番の収穫かな。入れれば安心、じゃないんだね。So the big takeaway is that it doesn't behave the way its name suggests. Installing it isn't enough, right?
- 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.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy



