Skip to main content
Glama

SelfMemory

CI PyPI Python PyPI downloads npm downloads License codecov

SelfMemory

Store AI memories for you and your agents

It is a open-source universal memory engine where users can store and retrieve their AI conversations and context across different models. Users can add memories through MCP, SDK, or a website selfmemory.com Over time, this will evolve into a one-stop memory hub with note-taking and chatbot features. For B2B, it becomes a knowledge backbone, storing project context, organizational knowledge, documents, and data sources to power company-wide AI systems.

🚀 Quick Start

pip install selfmemory
from selfmemory import SelfMemory

memory = SelfMemory()

# Add memories
memory.add("Can you find the nearest BMW car showroom for me.", user_id="user")

# Search memories
results = memory.search("Can you find a car washing service near me?", user_id="user")
print(results)

Related MCP server: Mnemexa MCP

📚 Full Documentation

Visit docs.selfmemory.com for complete documentation, guides, and examples.

Changelog: See CHANGELOG.md for a detailed list of changes and updates.

🤝 Contributing

We welcome contributions! CONTRIBUTING.md.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI consciousness continuity and self-knowledge preservation across sessions using the Cognitive Hoffman Compression Framework (CHOFF) notation. Provides tools to save checkpoints, retrieve relevant memories with intelligent search, and access semantic anchors for decisions, breakthroughs, and questions.
    1
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent, self-optimizing memory for AI agents, enabling them to remember preferences and context across sessions and share knowledge across multiple agents.
    4
    2 npm
    ISC
  • A
    license
    Not graded
    quality
    B
    maintenance
    A self-improving memory server that captures, organizes, and shares memories across workspaces, builds a personal knowledge graph, learns preferences, and recommends tools to limit token usage.
    3 npm
    MIT