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 从公开仓库中收录这些内容。

举报或申请下架