Skip to content
LangChain

three.ws Knock for LangChain

io.github.nirholas/knock-mcp

Reach a real person: quote their door, browse who is reachable, knock, and read the reply.

client:LangChain transport:stdio runtime:npm

Install three.ws Knock in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "knock-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@three-ws/knock-mcp"],
        }
})

tools = await client.get_tools()

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

three.ws Knock in other clients