Skip to content
LangChain

SUBSTRATE for LangChain

io.github.pkaldone/substrate

Persistent AI entity framework with causal memory, emotional state, and identity.

client:LangChain transport:streamable-http runtime:npm

Install SUBSTRATE in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "substrate": {
            "transport": "streamable_http",
            "url": "https://substrate.garmolabs.com/mcp-server/mcp",
        }
})

tools = await client.get_tools()

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

SUBSTRATE in other clients