YourMemory
Lets your AI agent keep a persistent memory that fades with time and strengthens when recalled, like human memory.
271 stars on GitHubby sachitrafaLicense NOASSERTIONUpdated 2 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add yourmemory -- uvx yourmemory
What to fill in
| Name | What it is | Required |
|---|---|---|
PYTHONIOENCODING | Set to utf-8 to ensure correct text encoding on all platforms. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Remember that I prefer DuckDB for local projects.
What did we decide about how we deploy?
What it is
YourMemory stores what your agent learns in a local database and ages it on an Ebbinghaus forgetting curve, so stale facts fade and important ones stay. It groups related facts into one summary, links memories by shared people and concepts, and logs every operation in a tamper-evident audit trail. It works with Claude, Cursor, Cline, Windsurf and other MCP clients.
What it can do
- Store and recall memories (MCP tools listed in the project docs)
- Consolidation of related facts into one summary
- Decay and pruning of stale memories
- Hybrid recall: vector, BM25 and entity graph
- Hash-chained audit trail
- Export and right-to-forget commands
When to use
- βΊWhen you are tired of re-explaining your preferences to your agent every morning
- βΊWhen you want old, unused facts to fade so memory stays clean
- βΊWhen a team wants role-based shared memory for its agents
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
hindsight-recallHelps your agent search long-term memory for past decisions, project context, and preferences when you ask about earlier work.hindsight-localLets your agent save and recall long-term memories on your own machine through the hindsight-embed tool, after a one-time setup.memory-contextHelps your agent check long-term memory before it starts a task, so it uses past decisions, preferences, and earlier work.Frequently asked questions
Is it free?
The readme shows a Creative Commons BY-NC license badge, which is non-commercial. Check the license before commercial use.
Does my data leave my computer?
The readme says it runs entirely on your machine, with memory stored in ~/.yourmemory/ and no API key needed.
Why is there a token?
The quick start has you register an email at yourmemoryai.xyz and run yourmemory-register with the token before setup.
Which clients are set up automatically?
yourmemory-setup detects Claude Code, Claude Desktop, Cursor, Windsurf and Cline.
Which database does it use?
DuckDB by default with zero setup, or Postgres with pgvector for teams.
How well does it recall?
The readme reports 59 percent Recall@5 on LoCoMo-10 and 89.4 percent on LongMemEval-S, from its own benchmarks.
If it does not work
- βΊRun yourmemory-register with your token, then yourmemory-setup, and restart your client.
- βΊIf your Python is older than 3.11, update it first.
- βΊFor Postgres, make sure DATABASE_URL is set and the pgvector extension is installed.
5 new skills a week. 1 minute to read.