Skip to content
LangChain

Shelly Smart Home for LangChain

io.github.buggy1111/shelly-mcp

Local-first MCP server for Shelly smart-home devices (Gen1-Gen4): control, energy, automation.

client:LangChain transport:stdio runtime:pypi

Install Shelly Smart Home in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Shelly Smart Home in other clients