Skip to main content

memory_plus

pretty image

License: MIT visitors

PyPI version

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.

alt text

Installation

1. Prerequisites

  • Google API Key: Obtain from Google AI Studio and set as GOOGLE_API_KEY in your environment:

    # macOS/Linux
    export GOOGLE_API_KEY="<YOUR_API_KEY>"
    
    # Windows (PowerShell)
    setx GOOGLE_API_KEY "<YOUR_API_KEY>"
    
  • UV Runtime: Required to serve the MCP plugin.

    pip install uv
    

    Or install via shell scripts:

    # macOS/Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # Windows (PowerShell)
    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    

VS Code One-Click Setup

Click the badge below to automatically install and configure Memory-Plus in VS Code (Insiders):

One Click Install in VS Code

This will add the following to your settings.json:

{
  "mcpServers": {
    ..., // your other MCP servers
    "memory-plus": {
      "command": "uvx",
      "args": ["memory-plus"]
    }
  }
}

For cursor, go to file -> Preferences -> Cursor Settings -> MCP and add the following:

{
  "mcpServers": {
    ..., // your other MCP servers
    "memory-plus": {
      "command": "uvx",
      "args": ["memory-plus"]
    }
  }
}

For other IDEs it should be mostly similar to the above.

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

License

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memory_plus-0.1.2.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memory_plus-0.1.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file memory_plus-0.1.2.tar.gz.

File metadata

  • Download URL: memory_plus-0.1.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for memory_plus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e1d412fd6aabe7f3203244b1d383a33ecf2aa68bfcdf3cba08fc190da6821639
MD5 77d0a85bf6c8d582d7e0f20fe8f417b2
BLAKE2b-256 b1bcdaca4091e9f3dbad4fbb002cde49e00a5f4bedc47dd1d67f091d186e1198

See more details on using hashes here.

File details

Details for the file memory_plus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: memory_plus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for memory_plus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc50b70f3fd1ebb0f264a8fbfc885ce50660f5955cc76e8e0f0f20628a143667
MD5 419eac9ce1d96d5909810c3cd810424a
BLAKE2b-256 95bcc57c4b8a30855a5c8c28f79e3f97c50a01560252bf28b798d405c472abf5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page