Skip to content
LangChain

Memento for LangChain

io.github.scrypster/memento

Persistent memory for AI tools. Local-first knowledge graph with hybrid search.

client:LangChain transport:stdio runtime:oci

Install Memento in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "memento": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/scrypster/memento:0.1.0"],
        }
})

tools = await client.get_tools()

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

Memento in other clients