Skip to main content
Glama

screenshot-mcp

전체 모니터 스크린샷을 캡처하여 인라인(base64) 또는 저장된 파일로 반환하는 MCP 서버입니다. macOS, 네이티브 Linux(X11 및 Wayland), 네이티브 Windows 및 WSL2를 지원합니다.

도구

list_monitors

연결된 모든 모니터를 인덱스, 해상도 및 기본 상태와 함께 나열합니다. 모니터 인덱스를 찾으려면 먼저 이 도구를 호출하세요.

take_screenshot

하나의 모니터 스크린샷을 캡처합니다.

인수

유형

기본값

설명

monitor

integer

0

list_monitors에서 확인한 모니터 인덱스

return

"inline"

"path"

"inline" = 응답에 base64 PNG 포함(Claude가 확인 가능); "path" = 디스크에 저장하고 파일 경로 반환

path

string

임시 파일

출력 경로. return="path"일 때만 사용

팁: 초고해상도 모니터(4K, 5K)는 큰 base64 블롭을 생성합니다. 컨텍스트 제한에 도달하면 return="path"로 전환하고 Read 도구를 사용하여 파일을 확인하세요.

Related MCP server: GetScreen MCP Server

설치

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

플랫폼 요구 사항

플랫폼

요구 사항

macOS

추가 사항 없음 — screencapture 및 system_profiler(내장) 사용

네이티브 Linux / X11

scrot 또는 imagemagick: sudo apt install scrot

네이티브 Linux / Wayland

grim + wlr-randr: sudo apt install grim wlr-randr

네이티브 Windows

추가 사항 없음 — PowerShell + System.Drawing 사용

WSL2

추가 사항 없음 — Windows 측의 powershell.exe를 호출

Claude Code 설정

claude mcp add screenshot node /absolute/path/to/screenshot-mcp/dist/index.js

Claude Desktop 설정

claude_desktop_config.json에 추가하세요:

{
  "mcpServers": {
    "screenshot": {
      "command": "node",
      "args": ["/absolute/path/to/screenshot-mcp/dist/index.js"]
    }
  }
}

WSL2 작동 방식

WSL2는 Windows 디스플레이에 직접 액세스할 수 없습니다. 이 서버는 WSL을 감지하고(/proc/version 또는 WSL_DISTRO_NAME을 통해) powershell.exe를 호출하여 System.Windows.Forms.Screen 및 System.Drawing을 사용하는 캡처 스크립트를 실행합니다. PNG는 \wsl.localhost\... UNC 경로를 통해 Linux /tmp 파일 시스템에 기록된 후 다시 읽어옵니다.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables capturing screenshots of all connected monitors with automatic JPEG compression and multi-platform support including WSL environments. Supports quality adjustment and image resizing through simple natural language commands.
    1 npm
    ISC
  • A
    license
    B
    quality
    F
    maintenance
    Enables AI assistants running in WSL to capture Windows screenshots of full desktops, specific monitors, or individual windows by title or process name. It features DPI awareness, automatic path conversion between WSL and Windows, and customizable storage options.
    1
    3
    MIT