Skip to content
LangChain

toolroute for LangChain

io.github.grossiweb/toolroute

Route AI agent tasks to the best MCP server and LLM, scored on 132+ real benchmark executions.

client:LangChain transport:stdio runtime:npm

Install toolroute in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "toolroute": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@toolroute/sdk"],
        }
})

tools = await client.get_tools()

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

toolroute in other clients