Skip to content
LangChain

rustunifimcp for LangChain

io.github.mechubsec/rustunifimcp

UniFi Network MCP server: scoped tools, audited two-person change control. Rust.

client:LangChain transport:stdio runtime:oci

Install rustunifimcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "rustunifimcp": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "ghcr.io/mechubsec/rustunifimcp:0.6.0"],
        }
})

tools = await client.get_tools()

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

rustunifimcp in other clients