Skip to content
LangChain

imgcli for LangChain

io.github.swperb/imgcli

Convert, resize, crop, filter & composite images via the imgcli CLI (lightweight, no deps)

client:LangChain transport:stdio runtime:npm

Install imgcli in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "imgcli": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "imgcli-mcp"],
        }
})

tools = await client.get_tools()

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

imgcli in other clients