WebPerf Snippets for LangChain
io.github.nucliweb/webperf-snippets
Measure Core Web Vitals and debug web performance with 56 snippets in a headless Chromium
client:LangChain
transport:stdio
runtime:npm
Install WebPerf Snippets in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"webperf-snippets": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "webperf-snippets"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs