ComfyUI MCP for LangChain
io.github.entityadam/comfyui-mcp
Generate and manage ComfyUI media through the Model Context Protocol.
client:LangChain
transport:stdio
runtime:nuget
Install ComfyUI MCP in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"comfyui-mcp": {
"transport": "stdio",
"command": "dnx",
"args": ["ComfyUi.Mcp", "--yes"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs