Skip to content
LangChain

UIAutomationMcp for LangChain

io.github.trsdn/mcp-server-uiautomation

Windows UI Automation MCP server for desktop inspection and element lookup. Windows only.

client:LangChain transport:stdio runtime:nuget

Install UIAutomationMcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp-server-uiautomation": {
            "transport": "stdio",
            "command": "dnx",
            "args": ["UIAutomationMcp.McpServer", "--yes"],
        }
})

tools = await client.get_tools()

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

UIAutomationMcp in other clients