tinqiao-oss/clawtouch-mcp 预览 preview

tinqiao-oss/clawtouch-mcp

ClawTouch MCP server — exposes a real USB-HID keyboard/mouse (Raspberry Pi Pico 2) as Model Context Protocol tools for any LLM agent. MIT.

Project Overview项目介绍

clawtouch-mcp is an open-source MCP server that enables any MCP-compatible AI agent client to send real hardware mouse and keyboard input to a target machine. It supports a wide range of clients including DeepSeek Harness, Claude Desktop, Cline, Continue, and Cursor, among others. Unlike software-injected synthetic input events, the server works by translating MCP tool calls into framed bytes sent over USB-CDC to a Raspberry Pi Pico 2 running open-source ClawTouch HID firmware, which then emits standard USB HID reports that the target OS recognizes as a genuine physical peripheral.

This tool is designed for use cases that require a genuine hardware input path, such as locked-down kiosk machines, user accessibility control, software compatibility testing, and remotely driven automated test rigs. It is particularly useful when software-based input injection fails due to OS permission restrictions or application-level compatibility blocks. To use it, you first flash the open-source ClawTouch HID firmware onto a Raspberry Pi Pico 2, then connect the board to your target machine via USB, install the clawtouch-mcp package from PyPI, and add the server config to your AI agent.

clawtouch-mcp is released under the MIT open-source license, and follows an open-core development model where only the core HID plumbing layer is open, while higher-level application features live in a closed-source commercial desktop product. It requires a working Python environment on the machine that runs the MCP server, and one Pico 2 hardware per target machine, so it is not a good fit for bulk multi-host operations. Contributors are welcome to submit PRs for bug fixes, new HID tools, documentation improvements, and client integration examples, but not for application-level features.

这是一个遵循Model Context Protocol(MCP)的服务器,可给任意兼容MCP的AI代理提供真实硬件级的鼠标键盘输入能力,兼容包括DSH、Claude Desktop、Cline、Continue、Cursor在内的多种代理客户端。它通过USB串口和运行ClawTouch HID开源固件的树莓派Pico 2硬件通信,将MCP工具调用转换为标准USB HID报告,让目标操作系统将输入识别为来自真实外接外设,而非软件注入的虚拟事件。

适合需要真实硬件输入路径的多种场景,包括公共自助设备、无障碍访问控制、软件兼容性测试或者远程测试机驱动。用户需要先准备好刷入ClawTouch HID开源固件的树莓派Pico 2硬件,将其连接到目标机器后,在自己常用的AI代理中配置好本MCP服务器,之后代理就能通过调用hid.click、hid.type等预置工具,实现对目标机器的真实输入操作。

本项目采用MIT开源许可证,属于开放核心开发模式,仅提供基础的HID传输链路,不包含上层代理逻辑和应用级功能,相关应用级功能放在闭源的桌面产品中。它要求运行机器有可用的Python环境,且必须额外准备对应硬件外设,本身不适合多主机批量操作这类场景,大规模商业部署需要联系官方获取企业支持。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 11 stars - an early-stage project星标 11,属于早期项目
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
  • Not DSH-native: a multi-platform tool that may require Node / Electron or another runtime first非 DSH 原生,是多平台兼容工具:可能要先装 Node / Electron 等运行时
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:tinqiao-oss/clawtouch-mcp

把 tinqiao-oss/clawtouch-mcp 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

English | 简体中文

clawtouch-mcp

Give your AI agent real hands. An MCP server that turns any MCP-compatible client — Claude Desktop, Cline, Continue, Cursor, OpenClaw, Hermes Agent and any other — into something that can move a real mouse and press real keys through a USB HID device.

PyPI version Python License: MIT Commercial: clawtouch.cn clawtouch-mcp MCP server

clawtouch-mcp data flow: an AI agent sends MCP tool calls over stdio JSON-RPC to clawtouch-mcp, which forwards framed bytes over USB-CDC to a Raspberry Pi Pico 2 running ClawTouch HID firmware, which emits standard USB HID reports to the target OS (Windows / macOS / Linux).


What is this?

A standalone Python process that speaks Model Context Protocol (MCP) over stdio and exposes mouse / keyboard primitives — hid.click, hid.type, hid.scroll, key combos, hid.screenshot — to whatever AI agent you already use. Under the hood it talks over USB serial to a ClawTouch HID device (a Raspberry Pi Pico 2 running the open ClawTouch HID firmware, or any turnkey ClawTouch box) and translates each tool call into a real USB HID report. The target OS sees a genuine physical keyboard and mouse — input arrives on the same driver path as any plugged-in peripheral, not as a software-injected synthetic event.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-pet-whale 下一个 Next dsh-session-pin →