Skip to main content
Glama

mcp-memories

コードビルドセッションをキャプチャし、共有チーム知識ベースに公開するMCPサーバーです。過去の作業をセマンティック検索で発見可能にします。

機能:

  • IDEフック(Cursor、Claude Code)を介してすべてのエージェントセッションを自動キャプチャ

  • complete_sessionを呼び出すと、Grove AIで要約し、Voyage voyage-code-4で埋め込みを生成

  • チームメンバーは自然言語で検索 — ベクトル検索 + Voyage再ランキングにより、最も関連性の高い過去のビルドを返します

セットアップ

1. インストールとビルド

npm install
npm run build

2. 環境設定

cp .env.example .env
# Fill in MONGODB_URI, MDB_GROVE_API_KEY, GROVE_BASE_URL, VOYAGE_API_KEY, MEMORIES_AUTHOR

3. 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

ツール

ツール

使用タイミング

capture_activity

フックによって自動的に呼び出されるか、手動で現在の作業内容を記録するために使用します

complete_session

完了時に呼び出し — 要約と埋め込みをトリガーし、チームに公開します

search_memories

これから始めようとしている作業に関連する過去のビルドを検索します

get_overview

チームが言語/タグ/リポジトリ別に何を構築したかを確認します

list_recent

最近公開されたセッションを閲覧します

典型的なワークフロー

# 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クラスターが必要です。

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Automatically 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.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides persistent, searchable memory and knowledge capture for AI-assisted development, enabling agents to retain decisions, bugs, and patterns across sessions and projects.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables 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.
    6
    181 npm
    18
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables 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.
    17
    24
    Apache 2.0