Skip to content
LangChain

agent memory for LangChain

io.github.xchucx/agent-memory

Git-native project memory for AI coding agents: Markdown source of truth, reviewable, secret-safe.

client:LangChain transport:stdio runtime:npm

Install agent memory in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "agent-memory": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@xchucx/agent-memory"],
        }
})

tools = await client.get_tools()

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

agent memory in other clients