Token导航 LogoToken导航TokenDH.com
Computor Use MCP logo
运维云端stdio官方级别未说明来源级核验

Computor Use MCP

MCP Server

一个提供计算机交互工具的MCP服务器,支持macOS系统下的鼠标、键盘和辅助功能自动化控制。

工具数

13

提示词数

0

GitHub Stars

0

资源数

0
自动化控制PythonCursorCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

HananiahKao

提供方

HananiahKao

最后核验

2026/5/17 20:22

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python3 -m venv venv

详细介绍

Computer Use MCP Server

An MCP (Model Context Protocol) server that provides computer interaction tools for automation and control. This server enables programmatic control of mouse, keyboard, and accessibility features on macOS systems.

Features

  • Mouse Control: Click, double-click, right-click, move, and scroll operations
  • Keyboard Input: Type text and execute keyboard shortcuts
  • Timing Controls: Wait/delay functionality for automation sequencing
  • Accessibility Integration: Advanced macOS Accessibility API tools for UI automation
  • Cross-Language Architecture: TypeScript/Node.js server with Python tool implementations

Installation

Prerequisites

  • Node.js (for the server)
  • Python 3.7+ (for the tools)
  • macOS (required for pyobjc accessibility features)
  • GitHub CLI (gh) for license management

Setup Steps

  1. Clone the repository:
   git clone https://github.com/HananiahKao/computor-use-MCP.git
   cd computor-use-MCP
  1. Install Node.js dependencies:
   cd computer-use-mcp-server
   npm install
  1. Build the project:
   npm run build
  1. Set up Python virtual environment:
   python3 -m venv venv
   source venv/bin/activate
   pip install -r tools/requirements.txt

Add License

gh repo license add MIT

Usage

Running the Server

node build/index.js

The server communicates via stdio and should be connected to an MCP client.

Integration with MCP Clients

This server is designed to work with MCP-compatible clients. Configure your client to launch the server and communicate via the Model Context Protocol.

Available Tools

Mouse Operations

  • click (x: number, y: number)

- Click the left mouse button at specified screen coordinates

  • double_click (x: number, y: number)

- Double-click the left mouse button at specified coordinates

  • right_click (x: number, y: number)

- Right-click at specified coordinates

  • move (x: number, y: number)

- Move mouse cursor to coordinates without clicking

  • scroll (dy: number, dx?: number, x?: number, y?: number, repeat?: number, interval?: number)

- Scroll at current or specified position - dy: Vertical scroll (positive: up, negative: down) - dx: Horizontal scroll (positive: right, negative: left)

Keyboard Operations

  • type (text: string, delay_per_char?: number)

- Type text at current cursor position - Supports natural typing with configurable delay

  • press_shortcut (keys: string[])

- Execute keyboard shortcut (e.g., ['cmd', 'c'] for copy)

Timing and Control

  • wait (seconds: number)

- Pause execution for specified duration

Accessibility (AX) Tools

  • ax_select (selector?: string, debug?: boolean)

- Query UI elements using CSS-like selectors - Returns JSON representation of found elements

  • ax_highlight (element_path: string, duration?: number, color?: string)

- Visually highlight an accessibility element - Useful for debugging UI automation

  • ax_attributes (element_path: string)

- Get all accessibility attributes for an element

  • ax_wait_until (element_path: string, timeout?: number)

- Wait until an accessibility element exists

Testing/Sample Tool

  • greet (name?: string)

- Return a friendly greeting message - Useful for testing server connectivity

Development

Build Commands

npm run build      # Compile TypeScript
npm run dev        # Watch mode compilation

Project Structure

computer-use-mcp-server/
├── src/index.ts       # Main server implementation
├── build/             # Compiled JavaScript output
├── tools/             # Python tool implementations
│   ├── requirements.txt
│   └── *.py
├── package.json
├── tsconfig.json
└── venv/              # Python virtual environment

Requirements

  • Platform: macOS (due to pyobjc accessibility APIs)
  • Python Libraries: pynput (input control), pyobjc (accessibility)
  • Node.js: For the MCP server framework
  • TypeScript: For type-safe development

Contributing

Contributions welcome! Please ensure code follows the project's clean code principles:

  • Clear, readable function names
  • Separation of concerns
  • Proper error handling
  • Comprehensive documentation

License

MIT License - see LICENSE file for details

Acknowledgments

目录标签

目录标签

自动化控制PythonCursor本地部署macOS工具键盘鼠标控制辅助功能集成跨语言架构

支持客户端

Cursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

13

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP