Skip to content
LangChain

docker for LangChain

io.github.dave-london/docker

Structured Docker operations (ps, images, logs, build) as typed JSON.

client:LangChain transport:stdio runtime:npm

Install docker in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "docker": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@paretools/docker"],
        }
})

tools = await client.get_tools()

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

docker in other clients