PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversos-automationcapture-win-mcp
返回「os-automation」

capture-win-mcp

modelscope·@huegli/capture-win-mcp

os-automation0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

capture-win-mcp

MCP (Model Context Protocol) server for capturing macOS windows and tracking Spaces. This server provides tools for AI assistants to interact with macOS windows through yabai and the built-in screencapture utility.

** Quick Start Guide** | ** Distribution Guide** | ** Developer Docs**

Features

  • List Windows: Get detailed information about all windows organized by macOS Space (virtual desktop)
  • Capture Window: Take screenshots of specific windows by their ID

Prerequisites

  • macOS (tested on macOS 15+)
  • Python 3.12 or higher
  • yabai window manager

Installing yabai

brew install koekeishiya/formulae/yabai
yabai --start-service

Installation

Method 1: Install from GitHub (Recommended)

Using uv:

uv pip install git+https://github.com/huegli/capture-win-mcp.git

Using pip:

pip install git+https://github.com/huegli/capture-win-mcp.git

Method 2: Install from PyPI

Once published to PyPI:

# Using uv
uv pip install capture-win-mcp

# Using pip
pip install capture-win-mcp

Method 3: Install from Source (For Development)

# Clone the repository
git clone https://github.com/huegli/capture-win-mcp.git
cd capture-win-mcp

# Create virtual environment
uv venv  # or: python3 -m venv venv
source .venv/bin/activate

# Install in editable mode
uv pip install -e .  # or: pip install -e .

Usage

As an MCP Server

Claude Desktop Configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

If installed via pip/uv (recommended):

{
  "mcpServers": {
    "capture-win": {
      "command": "capture-win-mcp"
    }
  }
}

If running from source directory:

{
  "mcpServers": {
    "capture-win": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/capture-win-mcp",
        "run",
        "capture-win-mcp"
      ]
    }
  }
}

If using a specific Python environment:

{
  "mcpServers": {
    "capture-win": {
      "command": "/path/to/venv/bin/capture-win-mcp"
    }
  }
}

After adding the configuration, restart Claude Desktop for the changes to take effect.

Available Tools

list_windows

Lists all windows organized by macOS Space.

Parameters:

  • format (optional): Output format - "json" (default) or "summary"

Example:

{
  "format": "summary"
}

Returns: Window and Space information including:

  • Space index, label, visibility status
  • Window ID, title, app name, position, size
  • Window counts per Space

capture_window

Captures a screenshot of a specific window.

Parameters:

  • window_id (required): The window ID to capture (get this from list_windows)
  • include_shadow (optional): Include window shadow in capture (default: true)

Example:

{
  "window_id": 12345,
  "include_shadow": false
}

Returns: Base64-encoded PNG image of the window

Standalone Usage

You can also use the original window tracking functionality:

# Show windows by space
python main.py

# Show spaces summary
python main.py --spaces

# Export to JSON
python main.py --export output.json

Development

# Create virtual environment
python3 -m venv venv
source venv/bin/activate

# Install in development mode
pip install -e .

# Run the MCP server
python -m capture_win_mcp.server

Architecture

  • capture_win_mcp/tracker.py: EnhancedSpaceTracker class that interfaces with yabai
  • capture_win_mcp/server.py: MCP server implementation with tools
  • main.py: Standalone CLI tool for window tracking

Troubleshooting

"yabai not found" error

Make sure yabai is installed and running:

brew install koekeishiya/formulae/yabai
yabai --start-service

Window capture fails

  • Ensure the window ID is valid (use list_windows first)
  • Check that macOS Screen Recording permissions are granted
  • Some system windows may not be capturable

License

MIT

相关 MCP Servers(来自「os-automation」)

串口智控

一座通过串行通信将物理硬件设备与人工智能大语言模型连接起来的桥梁,允许用户使用自然语言命令控制硬件。

@mcp2everything/mcp2serial

代码运行器

用于运行代码片段并显示结果的MCP服务器。

@formulahendry/mcp-server-code-runner

Android MCP 控制服务器

一个通过ADB实现对Android设备程序化控制的服务器,提供截图捕获、UI布局分析和包管理等功能,这些功能可以被像Claude Desktop这样的MCP客户端使用。

@minhalvp/android-mcp-server

Claude代码工具

Claude Code作为模型上下文协议(MCP)服务器的一种实现,通过标准的MCP接口启用Claude的软件工程能力(代码生成、编辑、评审和文件操作)。

@auchenberg/claude-code-mcp

Cursor MCP 安装器

用于Cursor IDE的模型上下文协议(MCP)服务器,可简化其他MCP服务器的安装和配置。

@matthewdcage/cursor-mcp-installer

Docker容器管理平台

一个MCP服务器,允许通过自然语言管理Docker容器,使用户能够在不自行运行命令的情况下组合、检查和调试容器。

@ckreiling/mcp-server-docker

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/huegli-capture-win-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

brew install koekeishiya/formulae/yabai yabai --start-service ``` ## Installation ### Method 1: Install from GitHub (Recommended) Using `uv`: ```bash uv pip install git+https://github.com/huegli/capture-win-mcp.git

基本信息

分类
os-automation / app-automation / multimedia-processing
运行方式
No
许可证
MIT License
详情文件
huegli-capture-win-mcp.md