Skip to content
LangChain

Hindsight MemPalace for LangChain

io.github.holetron/hindsight-mempalace

Self-hosted long-term memory for AI agents over MCP — hierarchical recall backed by pgvector

client:LangChain transport:stdio runtime:npm

Install Hindsight MemPalace in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "hindsight-mempalace": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "hindsight-mempalace-mcp"],
        }
})

tools = await client.get_tools()

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

Hindsight MemPalace in other clients