Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyAI, memory and agents

Cognitive AI Memory (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 cognitive-ai-memory -e DATABASE_URL="<your value>" -- docker run -i --rm -e DATABASE_URL -e OLLAMA_URL -e EXTRACT_MODEL ghcr.io/your-memory/cognitive-ai-memory:1.0.2

What to fill in

NameWhat it isRequired
DATABASE_URLPostgreSQL connection string with pgvector. Example: postgresql://localhost:5432/yourmemoryYes
OLLAMA_URLOllama server URL for local embeddings (nomic-embed-text) and classification (llama3.2:3b). Default: http://localhost:11434No
EXTRACT_MODELOllama model used for fact/assumption classification. Default: llama3.2:3bNo

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 the deployment setup?

What it is

This is the YourMemory server, listed under the name cognitive-ai-memory. It stores facts for your agent in a local database and ages them on an Ebbinghaus forgetting curve, so old unused facts fade and important or often-recalled ones stay. It also groups related facts into summaries and links memories by shared people, places and concepts.

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 want your agent to remember your preferences between sessions
  • β€ΊWhen you want old, unused facts to fade instead of piling up
  • β€ΊWhen a team wants shared memory pools with private memories kept private

What you need

Python 3.11 to 3.14 and pip (pip install yourmemory). You need a free token from yourmemoryai.xyz (email plus a 6-digit code). A standalone binary is also available.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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/.

Why do I need a token?

The quick start asks you to register an email and copy a token, then run yourmemory-register with it.

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.

Is it the same as YourMemory?

Yes. The readme in this listing is the YourMemory readme.

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.