MCP服务器暴露了AutoHotkey功能,使模型接口能够连接到Windows上的自动化任务。
概览
MCP服务器暴露了AutoHotkey功能,使模型接口能够连接到Windows上的自动化任务。 该服务器仅支持Windows,并为你的AI提供以下工具: - 能够枚举窗口/应用程序 - 能够控制键盘/鼠标(打字、点击等) - 能够通过AutoHotkey查询Windows的API(例如获取窗口文本、其GUI控件的位置等) - 屏幕捕捉和OCR功能(当Windows的API/控件未能正确显示文本时非常有用) - 能够获得准确的窗口位置和计算机显示器的上下文信息(例如,知道主显示器/副显示器上的窗口) - 通过AutoHotkey操作窗口及其他操作的能力 目前服务器共有33个工具,以上只是简要概述。在文档制作过程中,鼓励探索 main.py 源代码!
概述(AI 翻译)
MCP服务器暴露了AutoHotkey功能,使模型接口能够连接到Windows上的自动化任务。
该服务器仅支持Windows,并为你的AI提供以下工具:
- 能够枚举窗口/应用程序
- 能够控制键盘/鼠标(打字、点击等)
- 能够通过AutoHotkey查询Windows的API,查询有关窗口的情况(例如,获取窗口文本、其GUI控件的位置等)
- 屏幕捕捉和OCR功能(当Windows的API/控件未能正确显示文本时非常有用)
- 能够准确获得计算机显示器的窗口位置和上下文信息(例如,知道主显示器/副显示器上的窗口)
- 通过自动快捷键操作窗口及其他操作的能力
目前服务器共有33种工具,上面只是简要概述。
在我们进行文档制作的同时,鼓励大家探索main.py中的源代码!
用途
该项目使用了带有FastMCP的Python MCP SDK。请 详见 Python MCP SDK 仓库和文档。
本页由 AI 翻译,技术细节请以原文为准。
README
ahk-mcp
MCP server exposing AutoHotkey functionality, enabling model interfaces to automation tasks on Windows.
This server only works on Windows and provides the following tools to your AI:
- Ability to enumerate windows/applications
- Ability to control keyboard/mouse (typing, clicking, etc)
- Ability to interrogate Windows APIs (via AutoHotkey) about windows (e.g., to get the text of a window, the position of its GUI controls, etc.)
- Screen capture & OCR functionality (useful when text is not exposed properly by Windows APIs/controls)
- Ability to get accurate window positioning and contextual information about computer monitors (e.g., know what windows are on your primary/secondary monitors)
- Ability to manipulate windows and other actions via AutoHotkey
In total, there are 33 tools currently exposed by the server, the above is just a simple overview.
While we work on documentation, exploring the source code in main.py is encouraged!
Usage
This project makes use of the Python MCP SDK with FastMCP. Please see the Python MCP SDK repo and documentation for detailed information.
Assuming you’ve already setup mcp CLI, you can install this MCP service in Claude Desktop with a simple mcp command:
mcp install main.py
This project depends on ahk-binary to provide the required AutoHotkey executables and the ahk
project to interface with AutoHotkey. It uses mss, easyocr, and numpy
for OCR functionality.
Contributing
The best way to contribute is right here on GitHub. Please feel free to open an issue to get started. Pull requests are also welcome, but it is strongly recommended to open an issue first, especially for significant changes.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →