Agent Memory Mcp

davila7/claude-code-templates/cli-tool/components/skills/ai-research/agent-memory-mcp

作者 davila78da17d671b6f無授權條款32K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

僅含說明AI & Agents
AI 產生的概覽

透過 MCP 伺服器為 AI 代理提供持久、可搜尋的記憶庫,支援讀取、寫入、搜尋與統計工具。

功能
此技能建立一套混合記憶系統,用來儲存長期記憶並與專案文件同步。它以 MCP 伺服器形式執行,提供依查詢、類型或標籤搜尋記憶、寫入新知識或決策、依鍵讀取記憶,以及檢視使用統計的工具。它還包含一個獨立儀表板,用於視覺化記憶使用情況。
適用情境
適用於代理需要跨工作階段持久保存與取回架構說明、模式及決策等知識的情境。適合希望擁有與文件連結的可搜尋長期記憶庫的專案。
執行需求
需要 Node.js v18 或更新版本,複製 agentMemory 儲存庫,並執行 npm install 與 npm run compile。MCP 伺服器與儀表板透過 npm 指令碼啟動;儀表板在本機 3333 連接埠提供存取。此技能本身不隨附指令碼。

Agent Memory Skill

This skill provides a persistent, searchable memory bank that automatically syncs with project documentation. It runs as an MCP server to allow reading/writing/searching of long-term memories.

Prerequisites

  • Node.js (v18+)

Setup

  1. Clone the Repository: Clone the agentMemory project into your agent's workspace or a parallel directory:

    bash
    git clone https://github.com/webzler/agentMemory.git .agent/skills/agent-memory
  2. Install Dependencies:

    bash
    cd .agent/skills/agent-memorynpm installnpm run compile
  3. Start the MCP Server: Use the helper script to activate the memory bank for your current project:

    bash
    npm run start-server <project_id> <absolute_path_to_target_workspace>

    Example for current directory:

    bash
    npm run start-server my-project $(pwd)

Capabilities (MCP Tools)

memory_search

Search for memories by query, type, or tags.

  • Args: query (string), type? (string), tags? (string[])
  • Usage: "Find all authentication patterns" -> memory_search({ query: "authentication", type: "pattern" })

memory_write

Record new knowledge or decisions.

  • Args: key (string), type (string), content (string), tags? (string[])
  • Usage: "Save this architecture decision" -> memory_write({ key: "auth-v1", type: "decision", content: "..." })

memory_read

Retrieve specific memory content by key.

  • Args: key (string)
  • Usage: "Get the auth design" -> memory_read({ key: "auth-v1" })

memory_stats

View analytics on memory usage.

  • Usage: "Show memory statistics" -> memory_stats({})

Dashboard

This skill includes a standalone dashboard to visualize memory usage.

bash
npm run start-dashboard <absolute_path_to_target_workspace>

Access at: http://localhost:3333

來源與署名

來源:davila7/claude-code-templates位於cli-tool/components/skills/ai-research/agent-memory-mcp提交8da17d6

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架