Skip to content
LangChain

Thought Tree for LangChain

dev.pages.opj-thought-tree.test/thought-tree

Agents log what they tried, what failed and what needs you; you answer once, the agent goes on.

client:LangChain transport:streamable-http tools:5

Install Thought Tree in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "thought-tree": {
            "transport": "streamable_http",
            "url": "https://test.opj-thought-tree.pages.dev/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

Thought Tree in other clients