Skip to content
LangChain

agent cost allocator mcp for LangChain

io.github.csoai-org/agent-cost-allocator-mcp

Agent Cost Allocator MCP — multi-tenant LLM cost attribution for chargeback billing. Companion to

client:LangChain transport:streamable-http runtime:pypi

Install agent cost allocator mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "agent-cost-allocator-mcp": {
            "transport": "streamable_http",
            "url": "https://api.meok.ai/v1/a2a/agent-cost-allocator",
        }
})

tools = await client.get_tools()

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

agent cost allocator mcp in other clients