Skip to content
LangChain

cockpit mcp for LangChain

io.github.daleweaver1981/cockpit-mcp

40 AI prompts + self-hosted ops dashboard for homelab and small-team sysadmins

client:LangChain transport:stdio runtime:npm

Install cockpit mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

cockpit mcp in other clients