Skip to content
LangChain

shaft-mcp for LangChain

io.github.shafthq/shaft-mcp

SHAFT browser automation, capture, and offline deterministic failure diagnosis

client:LangChain transport:stdio runtime:oci

Install shaft-mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "shaft-mcp": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/shafthq/shaft-engine-mcp:10.4.20261112"],
        }
})

tools = await client.get_tools()

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

shaft-mcp in other clients