Skip to content
LangChain

ctxfile for LangChain

dev.ctxfile/ctxfile

Local-first MCP server that snapshots your project's working state into one context object.

client:LangChain transport:stdio runtime:npm

Install ctxfile in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

ctxfile in other clients