pxtree for LangChain
io.github.alabsi91/pxtree
Measures how a webpage actually renders and prints it as compact text for AI coding agents.
client:LangChain
transport:stdio
runtime:npm
Install pxtree in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"pxtree": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "pxtree"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs