agent-memory-mcp

Store and retrieve long-term project knowledge via an MCP server.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/caobingsheng/skills --skill agent-memory-mcp-caobingsheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-memory-mcp
Source: https://github.com/caobingsheng/skills/tree/main/agent/agent-memory-mcp
Command: npx skills add https://github.com/caobingsheng/skills --skill agent-memory-mcp-caobingsheng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

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

Core Features & Use Cases

  • Memory search to retrieve relevant memories by query, type, or tags.
  • Memory write to capture new knowledge, decisions, and patterns.
  • Memory read to fetch specific memories by key.
  • Memory stats to visualize usage and retention over time.
  • Use Case: AI agents that need cross-project context and durable knowledge between sessions.

Quick Start

Clone the repository, install dependencies, and run the MCP server for your project.

Frequently Asked Questions about agent-memory-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to AI agents for cross-project context?

You can add persistent memory to AI agents by running an MCP server that stores and retrieves long-term project knowledge, capturing cross-project context and decision history for rapid recall between sessions.

How does an MCP server handle searchable memory management?

An MCP server handles searchable memory management by exposing tooling commands for memory_search, memory_write, memory_read, and memory_stats, allowing agents to automatically sync with and query project documentation.

Can I retrieve specific agent memories by tags or query type?

Yes, you can retrieve specific agent memories by using the memory_search command to find relevant memories by query, type, or tags, and use memory_read to fetch specific entries by key.

What is the best way to capture decision history and patterns for AI agents?

The best way to capture decision history and patterns for AI agents is using the memory_write command to store new knowledge, then monitoring retention and usage over time with the memory_stats command.

Do I need project documentation to use persistent memory for agents?

Yes, project documentation is utilized as the persistent memory bank automatically syncs with it, requiring YAML frontmatter with name and description to properly store and retrieve long-term memories.

Why does my AI agent lose context between sessions?

AI agents lose context between sessions without a persistent memory bank, which this skill solves by storing long-term project knowledge and pattern capture in an MCP server for durable knowledge retention.