Skip to content
LangChain

ctx-profiler for LangChain

io.github.cuhawk/ctx-profiler

MECE token waste profiler and compaction simulator for Claude Code, Codex, Cline & OpenClaw logs.

client:LangChain transport:stdio runtime:pypi

Install ctx-profiler in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "ctx-profiler": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["ctx-profiler"],
        }
})

tools = await client.get_tools()

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

ctx-profiler in other clients