MCP server that provides computer control capabilities, like mouse, keyboard, OCR, etc. using PyAutoGUI, RapidOCR, ONNXRuntime. Similar to 'computer-use' by Anthropic. With Zero External Dependencies.
Project description
Computer Control MCP Lands
🖥️ 一个强大的计算机控制MCP服务器,提供鼠标、键盘、OCR等计算机控制功能
📖 简介
Computer Control MCP Lands 是一个基于 Model Context Protocol (MCP) 的服务器,提供全面的计算机控制功能。它使用 PyAutoGUI、RapidOCR、ONNXRuntime 等技术,类似于 Anthropic 的 'computer-use' 功能,但具有零外部依赖的特点。
✨ 主要功能
🖱️ 鼠标控制
- 鼠标移动和点击
- 拖拽操作
- 滚轮控制
- 多种点击模式(左键、右键、双击)
⌨️ 键盘控制
- 文本输入
- 按键模拟
- 组合键支持
- 特殊键处理
📸 屏幕截图
- 全屏截图
- 窗口截图
- 区域截图
- 支持多显示器
🔍 OCR文字识别
- 高精度文字识别
- 支持中英文
- 坐标定位
- 置信度检测
- 边界框绘制
🪟 窗口管理
- 窗口列表获取
- 窗口激活
- 窗口查找
- 模糊匹配
🚀 快速开始
安装
pip install computer-control-mcp-lands
基本使用
作为MCP服务器运行
computer-control-mcp-server
作为命令行工具使用
computer-control-mcp --help
配置示例
在你的MCP客户端配置中添加:
{
"mcpServers": {
"computer-control": {
"command": "computer-control-mcp-server",
"args": []
}
}
}
🛠️ 可用工具
鼠标操作
click_screen(x, y)- 点击屏幕指定位置move_mouse(x, y)- 移动鼠标到指定位置drag_mouse(from_x, from_y, to_x, to_y)- 拖拽鼠标
键盘操作
type_text(text)- 输入文本press_key(key)- 按下指定按键
屏幕操作
take_screenshot()- 截取屏幕get_screen_size()- 获取屏幕尺寸
窗口管理
list_windows()- 列出所有窗口activate_window(title_pattern)- 激活指定窗口
📋 系统要求
- Python 3.12+
- Windows
🔧 依赖项
pyautogui- 鼠标键盘控制mcp[cli]- MCP协议支持pillow- 图像处理pygetwindow- 窗口管理fuzzywuzzy- 模糊匹配rapidocr- OCR文字识别onnxruntime- AI推理引擎opencv-python- 计算机视觉
🔒 安全说明
此工具具有完整的系统控制权限,请:
- 仅在受信任的环境中使用
- 避免在生产系统上运行未经测试的脚本
- 定期检查和更新依赖项
⭐ 如果这个项目对你有帮助,请给它一个星标!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file computer_control_mcp_lands-0.0.3.tar.gz.
File metadata
- Download URL: computer_control_mcp_lands-0.0.3.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a80706c7f599023d415f320f6e191e152006c6ba18932785a2a4611c1d91d8b
|
|
| MD5 |
e9e3a6ae8bd9eb2be04ea0d439c9a271
|
|
| BLAKE2b-256 |
e1b98dd1699475f3ec344a4ab854dea6f94f50a2c5004f2b8f9f2e33be3bc043
|
File details
Details for the file computer_control_mcp_lands-0.0.3-py3-none-any.whl.
File metadata
- Download URL: computer_control_mcp_lands-0.0.3-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
929cde83768016c2f0e7087ca7d09373ff28c10f81d8cce5730c5a429c8351e9
|
|
| MD5 |
82b12e08d4bc15039ddcd3ee0cfca9cc
|
|
| BLAKE2b-256 |
faafea9c227b724df7261b0fb0dabb62ee1a726808fbeb1e783ec4484bab59d3
|