Labsco
Yuchen20 logo

Memory-Plus

57

from Yuchen20

a lightweight, local RAG memory store to record, retrieve, update, delete, and visualize persistent "memories" across sessions—perfect for developers working with multiple AI coders (like Windsurf, Cursor, or Copilot) or anyone who wants their AI to actually remember them.

🔥🔥🔥✓ VerifiedAccount requiredAdvanced setup
<!-- Badges -->

memory_plus

pretty image

License: MIT visitors PyPI version PyPI Downloads

Memory-Plus

A lightweight, local Retrieval-Augmented Generation (RAG) memory store for MCP agents. Memory-Plus lets your agent record, retrieve, update, and visualize persistent "memories"—notes, ideas, and session context—across runs.

🏆 First Place at the Infosys Cambridge AI Centre Hackathon!

Key Features

  • Record Memories:Save user data, ideas, and important context.
  • Retrieve Memories:Search by keywords or topics over past entries.
  • Recent Memories:Fetch the last N items quickly.
  • Update Memories:Append or modify existing entries seamlessly.
  • Visualize Memories:Interactive graph clusters revealing relationships.
  • File Import (since v0.1.2):Ingest documents directly into memory.
  • Delete Memories (since v0.1.2):Remove unwanted entries.
  • Memory for Memories (since v0.1.4):Now we use resources to teach your AI exactly when (and when not) to recall past interactions.
  • Memory Versioning (since v0.1.4):When memories are updated, we keep the old versions to provide a full history.

alt text

Local Testing and Development

Using MCP Inspector, you can test the memory-plus server locally.

git clone https://github.com/Yuchen20/Memory-Plus.git
cd Memory-Plus
npx @modelcontextprotocol/inspector fastmcp run run .\\memory_plus\\mcp.py

Or If you prefer using this MCP in an actual Chat Session. There is a template chatbot in agent.py.

# Clone the repository
git clone https://github.com/Yuchen20/Memory-Plus.git
cd Memory-Plus

# Install dependencies
pip install uv
uv pip install fast-agent-mcp
uv run fast-agent setup        

setup the fastagent.config.yaml and fastagent.secrets.yaml with your own API keys.

# Run the agent
uv run agent_memory.py

RoadMap

  • Memory Update
  • Improved prompt engineering for memory recording
  • Better Visualization of Memory Graph
  • File Import
  • Remote backup!
  • Web UI for Memory Management

If you have any feature requests, please feel free to add them by adding a new issue or by adding a new entry in the Feature Request

License

This project is licensed under the Apache License 2.0. See LICENSE for details.