Skip to content
LangChain

mcp image for LangChain

io.github.shinpr/mcp-image

AI image generation and editing with prompt optimization and quality presets

client:LangChain transport:stdio runtime:npm

Install mcp image in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

mcp image in other clients