Skip to content
LangChain

FactMem for LangChain

io.github.gordonkjlee/factmem

A local memory engine. You own the SQLite file. Not Mem0's hosted OpenMemory MCP.

client:LangChain transport:stdio runtime:npm

Install FactMem in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

FactMem in other clients