AgentRouter for LangChain
io.github.pageonelab/agentrouter
Find provider tools, check prices, run tools from your wallet, and retrieve results and receipts.
client:LangChain
transport:streamable-http
Install AgentRouter in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"agentrouter": {
"transport": "streamable_http",
"url": "https://mcp.agentrouter.to/",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs