Skip to content
LangChain

legacy switch mcp for LangChain

io.github.nebulous-ideas/legacy-switch-mcp

Manage D-Link DGS-1100 and USRobotics 7724 smart switches: plan-then-apply changes with rollback.

client:LangChain transport:stdio runtime:pypi

Install legacy switch mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

legacy switch mcp in other clients