Skip to content
LangChain

modelmux for LangChain

io.github.pure-maple/modelmux

Model multiplexer — route tasks to Codex, Gemini, and Claude CLIs with smart routing.

client:LangChain transport:stdio runtime:pypi

Install modelmux in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "modelmux": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["modelmux"],
        }
})

tools = await client.get_tools()

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

modelmux in other clients