agent cost mcp for LangChain
io.github.vk0dev/agent-cost-mcp
Cost Guard for Claude Code: per-tool ROI, subagent attribution, anomaly/forecast/budget guards.
client:LangChain
transport:stdio
runtime:npm
Install agent cost mcp in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"agent-cost-mcp": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@vk0/agent-cost-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs