Skip to content
LangChain

TopicGate for LangChain

io.github.dumdart/topicgate

Secure local access to MQTT topics through MCP.

client:LangChain transport:stdio runtime:pypi

Install TopicGate in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

TopicGate in other clients