Skip to content
LangChain

cognitive ai memory for LangChain

io.github.sachitrafa/cognitive-ai-memory

Ebbinghaus-based persistent memory for Claude. Memories decay with time, strengthen on recall.

client:LangChain transport:stdio runtime:oci

Install cognitive ai memory in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "cognitive-ai-memory": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

cognitive ai memory in other clients