modelcost for LangChain
io.github.cloudcorprecords/modelcost
AI API Radar: cheapest LLM models, per-model price history, provider status and price changes.
client:LangChain
transport:stdio
runtime:npm
Install modelcost in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"modelcost": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@reneturcios/modelcost"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs