窗口截图服务

MCP服务器用于捕获Windows桌面窗口的屏幕截图,适用于UI开发、调试视觉问题和设计迭代。

  • by ibuildrun
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 ibuildrun/screenshot-mcp

使用说明

屏幕截图mcp

MCP服务器,用于捕获windows上桌面窗口的屏幕截图。允许AI助手查看屏幕上的内容,这对UI开发、调试视觉问题和迭代设计非常有用。

特性

  • 屏幕截图_窗口 --按标题捕获特定窗口(部分匹配)
  • 屏幕截图_屏幕 --捕获整个屏幕
  • 截屏_地区 --捕获特定屏幕区域(x、y、宽度、高度)
  • 点击窗口 --单击窗口客户端区域内的某个位置
  • 获取窗口大小 --获取窗口的客户端区域大小
  • list_windows --列出所有可见的窗口及其标题和大小

以base64编码的JPEG格式返回图像,并自动调整大小和压缩。

需求

  • Windows 10/11
  • Python 3.10+

安装

pip install screenshot-mcp

或者从源代码安装:

git clone https://github.com/ibuildrun/screenshot-mcp.git
cd screenshot-mcp
pip install -e .

MCP配置

添加到您的 .kiro/settings/mcp.json:

{
  "mcpServers": {
    "screenshot": {
      "command": "screenshot-mcp",
      "disabled": false
    }
  }
}

或者使用uvx(无需安装):

{
  "mcpServers": {
    "screenshot": {
      "command": "uvx",
      "args": ["screenshot-mcp"],
      "disabled": false
    }
  }
}

使用示例

> list_windows
> screenshot_window "Teeworlds"
> screenshot_screen
> screenshot_region 0 0 800 600
> click_window "Teeworlds" 400 300
> get_window_size "Teeworlds"

许可证

麻省理工学院