playwright spatial layout mcp for LangChain
io.github.vola-trebla/playwright-spatial-layout-mcp
MCP server that gives AI agents geometric spatial awareness of web page layouts using Playwright
client:LangChain
transport:stdio
runtime:npm
Install playwright spatial layout mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"playwright-spatial-layout-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "playwright-spatial-layout-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs