RobotGo MCP Server

RobotGo MCP Server

robotgo-mcp•bylian-yang

A Go-based MCP server that uses the robotgo automation library to let AI clients control desktop mouse, keyboard, screen, clipboard, processes and windows.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Controls the mouse, including moving, clicking, scrolling, dragging and getting position.
  • •Controls the keyboard with text typing, single key taps, hotkey combos, and press/release.
  • •Captures screenshots, reports screen size, and reads pixel colors.
  • •Manages clipboard content, processes and windows.

BEST FOR

  • •AI clients such as Claude Desktop that need to automate the desktop via MCP.
  • •Remote desktop automation access over SSE with Bearer Token authentication.

ABOUT ROBOTGO-MCP

RobotGo MCP Server is cataloged as an MCP server attributed to lian-yang. A Go-based MCP server that uses the robotgo automation library to let AI clients control desktop mouse, keyboard, screen, clipboard, processes and windows. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for RobotGo MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transports does the server support?

It supports stdio and SSE transports, with optional Bearer Token authentication for SSE.

Which platforms does it run on?

It requires Go 1.21+ and GCC; on macOS it needs Accessibility permission and on Linux extra X11 libraries may be required.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ceea3b987232 · 采集于 2026-11-13 11:05:46 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

RobotGo MCP Server

一个基于 Go 语言的 MCP (Model Context Protocol) 服务器,使用 robotgo 自动化库实现桌面自动化功能。这个服务允许 AI 客户端(如 Claude Desktop)通过 MCP 协议控制鼠标、键盘、屏幕等桌面元素。

✨ 特性

  • 🖱️ 鼠标控制: 移动、点击、滚动、拖拽
  • ⌨️ 键盘控制: 输入文本、按键、组合键
  • 📸 屏幕操作: 截图、获取屏幕尺寸、获取像素颜色
  • 📋 剪贴板: 读写剪贴板内容
  • 🔄 进程管理: 列出、查找、终止进程
  • 🪟 窗口管理: 获取、激活、关闭、最小化、最大化窗口
  • 🔌 双传输模式: 支持 stdio 和 SSE 传输
  • 🔐 SSE 认证: Bearer Token 认证支持
  • 📊 结构化日志: JSON 格式日志输出

🚀 快速开始

安装

使用 go install(推荐):

go install github.com/lian-yang/robotgo-mcp/cmd/robotgo-mcp@latest

安装后,可执行文件会在 $GOPATH/bin 或 $HOME/go/bin 目录中。

从源码构建:

# 克隆仓库
git clone https://github.com/lian-yang/robotgo-mcp.git
cd robotgo-mcp

# 编译
make build

运行

stdio 模式(推荐用于 Claude Desktop):

./robotgo-mcp --transport=stdio

SSE 模式(用于远程访问):

./robotgo-mcp --transport=sse --port=8080 --auth-token=your-secret-token

配置 Claude Desktop

在 Claude Desktop 配置文件中添加:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "robotgo": {
      "command": "/path/to/robotgo-mcp",
      "args": ["--transport=stdio"]
    }
  }
}

📖 使用示例

屏幕截图

使用 screen:capture 工具截取整个屏幕

鼠标操作

使用 mouse:move 移动鼠标到坐标 (100, 200)
使用 mouse:click 点击鼠标左键
使用 mouse:scroll 向下滚动 10 个单位

键盘输入

使用 keyboard:type 输入 "Hello, World!"
使用 keyboard:hotkey 执行 Ctrl+C 复制操作

进程管理

使用 process:list 列出所有进程
使用 process:find 查找名称包含 "chrome" 的进程
使用 process:kill 终止 PID 为 1234 的进程

🛠️ 可用工具

屏幕工具 (Screen)

  • screen:capture - 截取屏幕或指定区域
  • screen:get_size - 获取屏幕尺寸
  • screen:get_pixel - 获取指定位置像素颜色

鼠标工具 (Mouse)

  • mouse:move - 移动鼠标
  • mouse:click - 点击鼠标按钮
  • mouse:scroll - 滚动鼠标滚轮
  • mouse:drag - 拖拽鼠标
  • mouse:get_position - 获取鼠标位置

键盘工具 (Keyboard)

  • keyboard:type - 输入文本
  • keyboard:tap - 按下并释放单个键
  • keyboard:hotkey - 执行组合键
  • keyboard:press - 按下并保持
  • keyboard:release - 释放按键

剪贴板工具 (Clipboard)

  • clipboard:get - 读取剪贴板
  • clipboard:set - 写入剪贴板
  • clipboard:clear - 清空剪贴板

进程工具 (Process)

  • process:list - 列出所有进程
  • process:find - 查找进程
  • process:kill - 终止进程

窗口工具 (Window)

  • window:get_active - 获取活动窗口
  • window:set_active - 设置活动窗口
  • window:close - 关闭窗口
  • window:minimize - 最小化窗口
  • window:maximize - 最大化窗口
  • window:get_title - 获取窗口标题

完整文档请查看 docs/tools.md

⚙️ 配置

命令行参数

参数环境变量默认值说明
--transportROBOTGO_TRANSPORTstdio传输方式 (stdio/sse)
--portROBOTGO_PORT8080SSE 端口
--hostROBOTGO_HOST127.0.0.1SSE 绑定地址
--auth-tokenROBOTGO_AUTH_TOKEN""SSE 认证令牌
--log-levelROBOTGO_LOG_LEVELinfo日志级别
--debug-false启用调试模式

🔧 开发

系统要求

  • Go 1.21+
  • GCC (robotgo 依赖)

构建

go build -o robotgo-mcp ./cmd/robotgo-mcp

测试

# 使用 MCP Inspector 测试
npx @modelcontextprotocol/inspector ./robotgo-mcp

# 手动测试
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | ./robotgo-mcp

⚠️ 权限说明

macOS

在 macOS 上,需要授予辅助功能权限:

  1. 系统偏好设置 → 安全性与隐私 → 隐私
  2. 选择"辅助功能"
  3. 添加终端或您的应用程序到列表中

Linux

在 Linux 上,可能需要安装额外的依赖:

# Ubuntu/Debian
sudo apt-get install libx11-dev libxrandr-dev libxtst-dev

# Fedora
sudo dnf install libX11-devel libXrandr-devel libXtst-devel

Windows

Windows 通常不需要额外配置。

📝 许可证

MIT License

🤝 贡献

欢迎提交 Issue 和 Pull Request!

🙏 致谢

  • robotgo - Go 跨平台桌面自动化库
  • mcp-go - Go 语言的 MCP SDK

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for RobotGo MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/robotgo-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools