SM

sethbang/mcp-screenshot-server

Browser automation

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

37 stars 16 forks Качество 86 Тренд 20Apache-2.0

sethbang/mcp-screenshot-server - кандидат на сервер MCP, импортированный из https://github.com/sethbang/mcp-screenshot-server.

Обзор

sethbang/mcp-screenshot-server - кандидат на сервер MCP, импортированный из https://github.com/sethbang/mcp-screenshot-server.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol), который предоставляет помощникам ИИ возможности скриншота — как захват веб-страницы через Puppeteer, так и кроссплатформенные скриншоты системы с использованием нативных инструментов ОС.

Особенности

**Скриншоты веб-страницы ** - Захват любого общедоступного URL-адреса с помощью безголового браузера Chromium Скриншоты кросс-платформенной системы — полноэкранный, оконный или региональный захват с использованием нативных инструментов ОС (macOS screencapture, Linux maim/scrot/gnome-screenshot/и т.д., Windows PowerShell+.NET) Security-First Design — SSRF-профилактика, защита пути прохождения, DNS-перебиндинговая защита, защита от инъекций команд и ограничение DoS MCP Native — Интегрируется непосредственно с Claude Desktop, Cursor и любым MCP-совместимым клиентом

Требования

Node.js >= 18.0.0 Chromium загружается автоматически Puppeteer на первом запуске

Требования к платформе take_system_screenshot

Обязательные инструменты / Required Tools

| macOS | screencapture (встроено) | Не требуется дополнительная установка

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Universal Screenshot MCP

An MCP (Model Context Protocol) server that provides AI assistants with screenshot capabilities — both web page capture via Puppeteer and cross-platform system screenshots using native OS tools.

Features

  • Web Page Screenshots — Capture any public URL using a headless Chromium browser
  • Cross-Platform System Screenshots — Fullscreen, window, or region capture using native OS tools (macOS screencapture, Linux maim/scrot/gnome-screenshot/etc., Windows PowerShell+.NET)
  • Security-First Design — SSRF prevention, path traversal protection, DNS rebinding defense, command injection prevention, and DoS limiting
  • MCP Native — Integrates directly with Claude Desktop, Cursor, and any MCP-compatible client

Requirements

  • Node.js >= 18.0.0
  • Chromium is downloaded automatically by Puppeteer on first run

Platform-Specific Requirements for take_system_screenshot

Platform Required Tools Notes
macOS screencapture (built-in) No additional installation needed
Linux One of: maim, scrot, gnome-screenshot, spectacle, grim, or import (ImageMagick) maim or scrot recommended for full feature support. For window-by-name capture, also install xdotool.
Windows powershell (built-in) Uses .NET System.Drawing — no additional installation needed

Linux Installation Examples

# Ubuntu/Debian (recommended)
sudo apt install maim xdotool

# Fedora
sudo dnf install maim xdotool

# Arch Linux
sudo pacman -S maim xdotool

# Wayland (Sway, etc.)
sudo apt install grim

After installing, you can verify your setup with:

npx universal-screenshot-mcp --doctor

This probes the host and prints copy-pasteable install commands for any missing tools, tailored to your detected distro.

Quick Start

Install from npm

npm install -g universal-screenshot-mcp

Or run directly with npx:

npx universal-screenshot-mcp

Install from Source

git clone https://github.com/sethbang/mcp-screenshot-server.git
cd mcp-screenshot-server
npm install
npm run build

Configure Your MCP Client

Add the server to your MCP client configuration. For Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "screenshot-server": {
      "command": "npx",
      "args": ["-y", "universal-screenshot-mcp"]
    }
  }
}

Or if installed from source:

{
  "mcpServers": {
Открыть полный README на GitHub

Установка

npx -y universal-screenshot-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "screenshot-server": { "command": "npx", "args": ["-y", "universal-screenshot-mcp"] } } }