Skip to content
LangChain

comfyui mcp for LangChain

io.github.artokun/comfyui-mcp

MCP server + Claude Code plugin for ComfyUI: run workflows, generate images, manage models & VRAM.

client:LangChain transport:stdio runtime:npm

Install comfyui mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

comfyui mcp in other clients