Back to Home

screen2claude

Verified Safe

by zetaphoenix888-byte

Overview

Captures the active window screenshot on Windows and facilitates its analysis by an AI, either by sending it to an external HTTP endpoint or directly to an MCP client (like Claude Code) for local LLM processing.

Installation

Run Command
npm run start

Environment Variables

  • S2C_CONFIG
  • PORT
  • AUTH_TOKEN
  • CLAUDE_MODEL
  • MAX_TOKENS
  • ANTHROPIC_API_KEY
  • SAVE_IMAGE

Security Notes

The server's core screenshot capture mechanism (PowerShell -EncodedCommand) helps mitigate command injection risks from the script content itself. No obvious direct code injection vulnerabilities from user input were found. However, the SSE server in `sse-server.ts` uses `Access-Control-Allow-Origin: *`, which is a permissive CORS policy, potentially allowing any origin to connect, though MCP SDK handles the protocol. Configuration files (`config.json`) should be secured as they can contain sensitive `auth_token`s. The `save_screenshots` feature writes to a configurable directory, which if misconfigured, could lead to unintended file writes.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens75000
Stars0
Forks0
Last Update2025-11-27

Tags

MCPScreenshotUI AnalysisNode.jsWindows