Skip to content
sachitrafa avatar

Cognitive Ai Memory

sachitrafa/cognitive-ai-memory

Persistent memory for Claude with decay and recall, stored locally in DuckDB or Postgres.

CCM score
81 of 100
GitHub stars
275
tools
3
auth
Required
transport
STDIO
env vars
3
last updated
Mar 23, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads memories with recall_memory, ranked by similarity and decay strength, with a boost for path-matched entries
  • Writes with store_memory (embeds, deduplicates, optional file or directory tags) and update_memory (re-embeds and logs changes to an audit trail)
  • Runs locally with no API key required, and setup needs a token registered from yourmemoryai.xyz
  • Designed for agents that should keep context across sessions without re-explaining preferences or project history

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

recall_memorySurfaces memories ranked by similarity × decay strength; spatial boost for path-matched memories

Surfaces memories ranked by similarity × decay strength; spatial boost for path-matched memories

No parameter schema in public metadata yet.

store_memoryEmbeds, deduplicates, stores with decay; tags optional file/dir paths

Embeds, deduplicates, stores with decay; tags optional file/dir paths

No parameter schema in public metadata yet.

update_memoryRe-embeds and replaces; logs the change to the audit trail

Re-embeds and replaces; logs the change to the audit trail

No parameter schema in public metadata yet.

Configuration

DATABASE_URL*

PostgreSQL connection string with pgvector. Example: postgresql://localhost:5432/yourmemory

OLLAMA_URL

Ollama server URL for local embeddings (nomic-embed-text) and classification (llama3.2:3b). Default: http://localhost:11434

EXTRACT_MODEL

Ollama model used for fact/assumption classification. Default: llama3.2:3b

Readme

YourMemory

YourMemory

Your AI has the memory of a goldfish. Not anymore.

Persistent, self-improving memory for AI agents — built on the science of how humans remember.

PyPI PyPI Downloads Python License: CC BY-NC 4.0 GitHub Stars


View the full README on GitHub

Details

Repository
github.com/sachitrafa/cognitive-ai-memory
Categories
Memory & Context, AI Agents & LLM Apps
Package
ghcr.io/your-memory/cognitive-ai-memory:1.0.2
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from sachitrafa

All 2

Similar to Cognitive Ai Memory

More Memory & Context