Skip to content

timescale/memory-engine

Repository files navigation

Memory Engine

Permanent memory for AI agents. Store, search, and organize knowledge across conversations.

Memory Engine gives AI coding agents a persistent memory layer they can read from and write to via MCP. Memories are organized with tree paths, tagged with metadata, and searchable by meaning (semantic), keywords (BM25), or both (hybrid via Reciprocal Rank Fusion).

Install

curl -fsSL https://install.memory.build | sh && me mcp install

Quick start

# Authenticate
me login

# Store a memory
me memory create "Auth uses bcrypt with cost 12" --tree design.auth

# Search by meaning
me memory search "how does authentication work"

# Connect to your AI tools (Claude Code, Gemini, Codex, OpenCode)
me mcp install

How it works

Memory Engine runs as an MCP server that AI agents connect to over stdio. Each agent gets 10 tools for creating, searching, and managing memories. All data lives in PostgreSQL, using native extensions for search:

  • pgvector for semantic (vector) search
  • pg_textsearch for BM25 keyword search
  • ltree for hierarchical tree paths
  • JSONB + GIN for metadata filtering
  • tstzrange for temporal queries
  • Row-Level Security for access control

Documentation

Reference

License

Apache 2.0

About

Agentic memory built on Postgres

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages