MCP Screenshot Server

MCP Screenshot Server

Enables LLMs to capture and analyze screenshots of your screen, windows, or regions with smart detection capabilities. Features natural language queries, automatic window targeting, and text enhancement for UI debugging and visual inspection.

Category
访问服务器

README

MCP Screenshot Server

A FastMCP server that captures screenshots and returns them as images for visual analysis by LLMs. Perfect for UI debugging, troubleshooting, and visual inspection of applications.

⚠️ SECURITY WARNING

This MCP server can capture and record your screen content. It has access to everything visible on your display, including sensitive information like passwords, private messages, financial data, and confidential documents.

Recommendations:

  • Only enable this MCP server when you specifically need screenshot functionality
  • Disable it when working with sensitive information
  • Be aware that any connected LLM can request screenshots of your current screen
  • Consider using window-specific capture instead of full-screen capture when possible

You have been warned. Use responsibly.

Features

  • 🤖 Enhanced Smart Capture: Natural language queries like "what am I watching on YouTube" with auto-zoom
  • 🧠 Smart Capture: Automatically finds the most relevant window (browsers, media, dev tools)
  • 🎯 Context-Aware: Provide hints like "youtube", "code", "browser" for targeted capture
  • 📱 Active Window Capture: Automatically capture the focused window
  • 📋 Window Management: List, activate, and capture specific windows by ID
  • 📐 Region Capture: Capture specific rectangular areas
  • 🔍 Text Enhancement: OpenCV-powered image processing for better text readability
  • ⚡ Quality Modes: Optimize for overview, readable text, or pixel-perfect detail
  • 🔧 Permission Checking: Verify macOS permissions and available functionality
  • 💻 Cross-Platform: macOS (native), Windows/Linux (fallback)
  • 🚫 Ultra-Wide Friendly: Avoids massive full-screen captures by default

Installation

# Clone and setup
git clone https://github.com/yourusername/mcp-screenshot.git
cd mcp-screenshot
uv venv --python 3.12
uv add fastmcp pillow pyautogui opencv-python numpy

# Run the server
uv run python server.py

MCP Configuration

Local/stdio Configuration

{
  "mcpServers": {
    "screenshot": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-screenshot", "python", "server.py"]
    }
  }
}

Configuration Locations:

  • VS Code: .vscode/mcp.json (project) or user settings
  • Claude Desktop: claude_desktop_config.json
  • Cursor: .cursor/mcp.json (project) or ~/.cursor/mcp.json (user)

Tools

screenshot_smart_enhanced 🤖 NEW PRIMARY TOOL

Enhanced smart screenshot with natural language understanding and auto-zoom.

  • query: Natural language query like "what am I watching on YouTube" or "show me my code"
  • auto_zoom: Automatically capture focused regions if initial screenshot is unclear
  • quality_mode: "overview" (0.4x), "readable" (0.8x), "detail" (1.0x)
  • enhance_text: Apply sharpening/contrast for text readability
  • format: "png" or "jpeg"

Enhanced Logic:

  1. Parses natural language intent (media consumption, development, communication)
  2. Intelligently finds matching windows based on user query
  3. Auto-activates target window for clean capture
  4. Auto-zooms into interesting content regions if needed
  5. Provides contextual response messages

screenshot_smartSTANDARD SMART TOOL

Intelligently finds and captures the most relevant window automatically.

  • context: Optional hint ("youtube", "browser", "code", "slack", etc.)
  • Same quality/enhancement options as enhanced version

Smart Logic:

  1. Looks for windows matching context hint
  2. Falls back to active window if relevant
  3. Prioritizes browsers, media apps, development tools
  4. Avoids tiny/system windows
  5. Last resort: center region (not full screen!)

screenshot_full ⚠️ AVOID ON ULTRA-WIDE

Capture entire desktop/screen (use sparingly).

  • Same parameters as smart capture
  • Default: quality_mode="overview" to handle large screens

screenshot_active_window

Capture currently focused window.

  • Same parameters as screenshot_full
  • Default: quality_mode="readable"

screenshot_region

Capture specific rectangular area.

  • x, y: Top-left coordinates
  • width, height: Region dimensions
  • Same quality/enhancement options
  • Default: quality_mode="detail"

check_permissions 🔧 NEW DIAGNOSTIC TOOL

Check what macOS permissions are available and what functionality works. Returns detailed permission status and available features.

list_windows

Get list of all open windows with IDs and bounds. Returns structured data with window information for use with screenshot_window.

activate_window 🔧 NEW UTILITY

Activate/focus a specific window by bringing it to front.

  • window_id: Window identifier from list_windows

screenshot_window

Capture specific window by ID from list_windows.

  • window_id: Window identifier
  • Same quality/enhancement options
  • Automatically activates window first for clean capture

Quality Modes

  • overview (0.4x scale): Quick layout checks, fits ultra-wide screens
  • readable (0.8x scale): Text stays legible, good for debugging
  • detail (1.0x scale): Full resolution for pixel-perfect analysis

Text Enhancement

Automatic image processing for better LLM readability:

  • OpenCV sharpening filters
  • Contrast enhancement
  • Unsharp masking
  • Optimized for text recognition

Platform Support

  • macOS: Native screencapture + AppleScript for window management
  • Windows/Linux: PyAutoGUI fallback (basic functionality)

Permissions

macOS Permissions Required:

  1. Screen Recording: System Preferences > Security & Privacy > Privacy > Screen Recording

    • Add Terminal, Cursor, or whatever app runs the MCP server
    • Required for: All screenshot capture functionality
  2. Accessibility: System Preferences > Security & Privacy > Privacy > Accessibility

    • Add Terminal, Cursor, or whatever app runs the MCP server
    • Required for: Window listing (list_windows) and selective window capture
    • Note: Smart capture works without this (uses active window detection)

Without Accessibility permissions:

  • screenshot_smart works (uses active window)
  • screenshot_active_window works
  • screenshot_full and screenshot_region work
  • list_windows returns empty (can't enumerate all windows)
  • screenshot_window won't work (needs window list)

Examples

# Enhanced smart capture (recommended):
"What am I watching on YouTube?"
"Show me what I'm working on" 
"What am I listening to?"
"Show me my conversation"

# Standard smart capture:
"Take a smart screenshot of what I'm watching on YouTube"
"Show me what's in my browser"
"Capture my development environment" 
"Take a smart screenshot with context 'slack'"

# Utility tools:
"Check my macOS permissions"
"Show me all open windows"
"Activate window ID 5"
"Screenshot window ID 3 in detail mode"  
"Capture region at coordinates 100,100 with size 800x600"
"Take full screen screenshot in overview mode"  # Last resort

The server returns images directly to the LLM context for immediate visual analysis.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选