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: arcane
ツール
ツール | 使用タイミング |
| フックによって自動的に呼び出されるか、手動で現在の作業内容を記録するために使用します |
| 完了時に呼び出し — 要約と埋め込みをトリガーし、チームに公開します |
| これから始めようとしている作業に関連する過去のビルドを検索します |
| チームが言語/タグ/リポジトリ別に何を構築したかを確認します |
| 最近公開されたセッションを閲覧します |
典型的なワークフロー
# 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クラスターが必要です。
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
One searchable history across every AI coding tool, with secret scanning and a shared task board.
- vibsyncOAuthcom.vibsync
One shared brain for your AI coding agents: team memory, agent Q&A, tasks, and file claims.
Shared project memory that keeps teammates and AI agents aligned across sessions.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAutomatically extracts technical concepts from AI coding conversations, organizes them into a searchable knowledge base with hierarchy and categories, and links them to specific locations in your codebase.-
- AlicenseNot gradedqualityBmaintenanceProvides persistent, searchable memory and knowledge capture for AI-assisted development, enabling agents to retain decisions, bugs, and patterns across sessions and projects.MIT
- 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.6181 npm18MIT
- 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.1724Apache 2.0