uiautomation-mcp

uiautomation-mcp

Enables AI assistants to inspect and automate Windows desktop UI elements by exploring UI trees, checking properties, performing actions like clicking and typing, and generating Python automation scripts.

Category
Visit Server

README

uiautomation-mcp

GitHub

基于 UI Automation API 的 MCP Server,用于检查和自动化 Windows 桌面 UI 元素。

为 AI 助手提供探索 UI 控件树、检查元素属性、执行操作(点击、输入、切换等)以及生成可直接使用的 Python 自动化脚本的能力。

安装

pip install uiautomation-mcp

或使用 uv:

uv pip install uiautomation-mcp

使用方式

命令行启动

uiautomation-mcp

通过 stdio 启动 MCP Server。

MCP 客户端配置

添加到 MCP 客户端配置文件(如 .kiro/settings/mcp.json):

{
  "mcpServers": {
    "uiautomation": {
      "command": "uiautomation-mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}

也可以通过 uvx 直接运行(无需预装):

{
  "mcpServers": {
    "uiautomation": {
      "command": "uvx",
      "args": ["uiautomation-mcp"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

工具列表

工具 说明
list_windows 列出桌面上所有可见的顶层窗口
inspect_element_tree 从指定元素开始探索 UI 控件树
get_element_detail 获取元素的完整详情,包括自动化模式和定位策略
inspect_at_point 检查屏幕坐标处的 UI 元素
find_elements 按名称、类型、AutomationId 或类名搜索元素
capture_screenshot 截取窗口或桌面的屏幕截图
activate_window 将窗口激活并置于前台
perform_action 对元素执行操作(点击、输入、切换、展开等)
generate_script_snippet 生成可直接复制使用的 Python 自动化代码

典型工作流

  1. list_windows — 找到目标应用窗口
  2. activate_window — 将窗口置于前台
  3. inspect_element_tree — 探索 UI 结构
  4. find_elements / get_element_detail — 定位具体控件
  5. perform_action — 与元素交互
  6. generate_script_snippet — 获取可复用的自动化代码

系统要求

  • Windows 操作系统
  • Python >= 3.12

许可证

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured