mcp-memories
mcp-memories
コードビルドセッションをキャプチャし、共有チーム知識ベースに公開するMCPサーバーです。過去の作業をセマンティック検索で発見可能にします。
機能:
IDEフック(Cursor、Claude Code)を介してすべてのエージェントセッションを自動キャプチャ
complete_sessionを呼び出すと、Grove AIで要約し、Voyagevoyage-code-4で埋め込みを生成チームメンバーは自然言語で検索 — ベクトル検索 + Voyage再ランキングにより、最も関連性の高い過去のビルドを返します
セットアップ
1. インストールとビルド
npm install
npm run build2. 環境設定
cp .env.example .env
# Fill in MONGODB_URI, MDB_GROVE_API_KEY, GROVE_BASE_URL, VOYAGE_API_KEY, MEMORIES_AUTHOR3. MCPサーバーの登録
IDEのMCP設定(例:~/.cursor/mcp.json または Claude Desktop config.json)に追加します:
{
"mcpServers": {
"mcp-memories": {
"command": "node",
"args": ["/path/to/mcp-memories/dist/index.js"],
"env": {
"MONGODB_URI": "mongodb+srv://...",
"MEMORIES_DB": "mcp_memories",
"MDB_GROVE_API_KEY": "...",
"GROVE_BASE_URL": "...",
"GROVE_MODEL": "claude-3-7-sonnet",
"VOYAGE_API_KEY": "...",
"MEMORIES_AUTHOR": "your.name"
}
}
}
}4. 自動キャプチャフックの設定
Cursor — hooks.jsonは既に.cursor/hooks.jsonにあります。stopイベントごとに自動的にキャプチャスクリプトを実行します。
Claude Code — hooks/claude/settings-snippet.jsonのスニペットを~/.claude/settings.jsonにマージし、パスをこのリポジトリを指すように更新します。
Related MCP server: io.github.norrietaylor/distillery-mcp
ツール
ツール | 使用タイミング |
| フックによって自動的に呼び出されるか、手動で現在の作業内容を記録するために使用します |
| 完了時に呼び出し — 要約と埋め込みをトリガーし、チームに公開します |
| これから始めようとしている作業に関連する過去のビルドを検索します |
| チームが言語/タグ/リポジトリ別に何を構築したかを確認します |
| 最近公開されたセッションを閲覧します |
典型的なワークフロー
# During a session — automatic (hook fires) or manual:
capture_activity(session_id="abc123", conversation_context="Built JWT auth middleware...")
# When done:
complete_session(session_id="abc123", final_notes="Ended up using RS256 instead of HS256 because...")
# Later, someone else starting similar work:
search_memories(query="JWT authentication middleware Node.js")MongoDB Atlasのセットアップ
サーバーは起動時に独自のインデックスを作成します。これにはAtlas Vector Searchインデックス(memories_vector_index、1024次元、コサイン類似度、voyage-code-4)が含まれます。Vector Searchが有効なAtlasクラスターが必要です。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
One shared project memory for your AI coding tools: recall, save and brief decisions anywhere.
One searchable history across every AI coding tool, with secret scanning and a shared task board.
Shared, scoped, reviewable team memory for AI coding agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables cross-session memory and recall for AI coding assistants through a git-synced knowledge base, hybrid semantic and TF-IDF search across tool transcripts, and automatic distillation of insights with secrets scrubbing.6493 npm19MIT
- AlicenseAqualityBmaintenanceEnables teams to capture and distill knowledge from sessions, meetings, and feeds into a searchable, vector-embedded graph, then retrieve or synthesize it conversationally via semantic search and citations.1725Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides AI coding agents with persistent memory by recording sessions and normalizing them into a searchable knowledge graph, then delivering relevant context at the start of the next session.MIT
- AlicenseAqualityCmaintenanceEnables AI coding assistants to query and store a team's historical development experience through semantic search, so lessons and decisions persist across conversations.916 PyPI1MIT