
jamesanz/memory-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
複数のLLMから記憶を保存し、取り出すシンプルなMCPサーバー.
概要
インテリジェントなコンテキストアーカイブで記憶を保存、取得、管理します。 MongoDB-backedストレージ。 CursorやClaude DesktopなどのAIコーディング環境用のメモリ管理とコンテキストウィンドウキャッシュを提供するMCP(Model Context Protocol)サーバー。 - 💾 - セッションを生き残るMongoDBのバックアップされたメモリ - 🧠 - インテリジェントなアーカイブと会話のコンテキストの検索 - ️️ - タグによって記憶を整理し、見つける - 自動的にアーカイブされたコンテンツの関連性をスコア - ⚡ - ワンクリックは、カーソルまたは簡単な手動セットアップにインストール AIワークフローにメモリを追加する準備は?
概要(AI 翻訳)
LM の会話のための永続的な記憶および文脈の窓のキャッシュ。 インテリジェントなコンテキストアーカイブで記憶を保存、取得、管理します。 MongoDB-backedストレージ。
CursorやClaude DesktopなどのAIコーディング環境用のメモリ管理とコンテキストウィンドウキャッシュを提供するMCP(Model Context Protocol)サーバー。
#メモリMCPを使用する理由
- 💾 永続ストレージ - セッションを存続するMongoDB-backedメモリ
- 🧠 Context Caching - インテリジェントなアーカイブと会話コンテキストの検索
- ️️ タグベースの検索 - タグによる思い出を整理し、見つける
- [Relevance Scoring] - 自動的にアーカイブされたコンテンツの関連性をスコア
- ⚡Easy Setup - Cursorまたは簡単な手動セットアップにワンクリックインストール
クイックスタート
AIワークフローにメモリを追加する準備は? 秒単位で取付けて下さい:
カースターにインストール(推奨):
Cursorにインストールする
または手動で取付けて下さい:
##特徴
##基本メモリツール
-[save-memories - 記憶をデータベースに保存(既存の上書き)
- [
get-memories- 保存されたすべての記憶を取得する -[add-memories- 書き換えなしで新しい思い出を - [
clear-memories- 保存された思い出をすべて削除する
コンテキストウィンドウキャッシュ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Memory MCP Server (Embedded GraphRAG + Vector Memory)
Persistent knowledge graph memory and context window caching for LLM conversations. Built on an embedded KuzuDB Cypher graph database with local HuggingFace vector embeddings (
Xenova/all-MiniLM-L6-v2) — zero external database setup required.
An MCP (Model Context Protocol) server that provides hybrid semantic vector + multi-hop Cypher graph memory retrieval and context window caching for AI coding environments like Cursor and Claude Desktop.
Why Use Memory MCP?
- Embedded Knowledge Graph (KuzuDB) – Stores entities, observations, and typed relationships in a local, in-process Cypher graph database (
~/.memory-mcp/graph_db) with zero external setup. - Hybrid Vector + Graph Retrieval – Uses local 384-d embeddings (
Xenova/all-MiniLM-L6-v2) and Kuzuarray_cosine_similarityto find entry nodes, then traverses 1–3 relationship hops via Cypher so the LLM only receives compact, high-signal facts. - Context Window Caching – Intelligent archiving, semantic relevance scoring, and graph-linked summaries (
Summarizes/Mentionsedges). - Zero-Config Install – No MongoDB or Neo4j server required.
Quick Start
Install in Cursor (Recommended):
Or install manually:
npm install -g @jamesanz/memory-mcp
# Or from source:
git clone https://github.com/JamesANZ/memory-mcp.git
cd memory-mcp && npm install && npm run build
Features
Knowledge Graph & Hybrid Retrieval Tools
store-graph-memory– Upsert structured entities (name,entityType,observations[]) and directedrelations(from,to,relationType) with automatic 384-d embeddings.query-memory– Hybrid semantic vector + multi-hop Cypher traversal query that returns only the relevant connected subgraph and memory chunks.remove-graph-entities– Remove outdated entities or specific relationships so contradictory facts do not linger.
Basic Memory Tools
save-memories– Save memories to the graph database (overwrites existing)get-memories– Retrieve all stored memory logsadd-memories– Append new memories and auto-extract entity mentionsclear-memories– Remove all stored memories and graph entities
Context Window Caching
archive-context– Archive conversation context with tags and vector embeddingsretrieve-context– Retrieve relevant archived contextscore-relevance– Score archived content relevance using vector cosine similaritycreate-summary– Create summaries of archived content linked viaSummarizesedges
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"memory-mcp": {
"command": "node",
"args": ["/absolute/path/to/memory-mcp/build/index.js"]
}
}
}