ctxcap for LangChain
io.github.naeha-s/ctxcap
Offline context-budget MCP server for AI coding agents.
client:LangChain
transport:stdio
runtime:npm
Install ctxcap in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"ctxcap": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "ctxcap-mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs