SelfMemory
Let your memories live forever by passing your knowledge to the next generation with SelfMemory.
Documentation

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 selfmemoryfrom 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)📚 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.
🔗 Links
- Discord: discord.com/invite/selfmemory
- Brand Assets (Logos, Slides, etc.): Storage Link
Frequently asked questions
What is SelfMemory?
SelfMemory is Let your memories live forever by passing your knowledge to the next generation with SelfMemory.
How do I install SelfMemory?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is SelfMemory open source?
Yes — it is hosted on GitHub at https://github.com/SelfMemory/SelfMemory and has 33 stars.
Related MCP tools
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
Build effective agents using Model Context Protocol and simple workflow patterns Python-based implementation. Trusted by 7600+ developers.
Memory that AI Agents Love!
Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP