Skip to content
LangChain

LLM Abacus for LangChain

com.llmabacus/pricing

Compare up-to-date pricing for 40+ LLMs (incl. Chinese) & estimate cost from tokens. EN/zh.

client:LangChain transport:streamable-http tools:2

Install LLM Abacus in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "pricing": {
            "transport": "streamable_http",
            "url": "https://llmabacus.com/api/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

LLM Abacus in other clients