InferIndex for LangChain
io.github.inferindex/inferindex
LLM API prices across 70+ providers: cheapest offer, comparisons, history and cost estimates.
client:LangChain
transport:streamable-http
tools:5
Install InferIndex in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"inferindex": {
"transport": "streamable_http",
"url": "https://mcp.inferindex.dev/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs