Skip to content
LangChain

costwright — agent budget analysis for LangChain

io.github.hernaninverso/costwright-mcp

Static worst-case token-budget analysis for LLM-agent workflows + signed budget certificates.

client:LangChain transport:stdio runtime:npm

Install costwright — agent budget analysis in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "costwright-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "costwright-mcp"],
        }
})

tools = await client.get_tools()

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

costwright — agent budget analysis in other clients