Screen Vision MCP Server

Screen Vision MCP Server

Enables screen capture, OCR text extraction, and automated clicking on macOS through MCP. Supports fullscreen, window, and region capture with optional text recognition and monitoring.

Category
访问服务器

README

Screen Vision MCP Server

A Model Context Protocol (MCP) server that provides comprehensive screen capture, OCR, and visual understanding capabilities for macOS.

Features

  • capture_fullscreen: Capture the entire screen
  • capture_window: Capture specific application windows
  • capture_region: Capture defined screen regions
  • extract_text_from_screen: OCR text extraction from screenshots
  • find_text_on_screen: Locate text on screen and return coordinates
  • get_window_list: List all open windows with details
  • get_screen_info: Get display and screen information
  • click_at_position: Automated clicking at specific coordinates
  • monitor_screen_region: Monitor regions for changes over time
  • Screenshot resource management and retrieval

Installation

Quick Install

npm install -g screen-vision-mcp

From Source

  1. Clone the repository:

    git clone https://github.com/TIMBOTGPT/screen-vision-mcp.git
    cd screen-vision-mcp
    
  2. Install dependencies:

    npm install
    
  3. Test the server:

    npm start
    

Usage with Claude Desktop

Add this server to your Claude Desktop MCP configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "screen-vision": {
      "command": "npx",
      "args": ["-y", "screen-vision-mcp"],
      "description": "Screen capture and vision analysis"
    }
  }
}

Or if installed locally:

{
  "mcpServers": {
    "screen-vision": {
      "command": "node",
      "args": ["/path/to/screen-vision-mcp/index.js"],
      "description": "Screen capture and vision analysis"
    }
  }
}

Available Tools

capture_fullscreen

Capture the entire screen.

Parameters:

  • save_path (optional): Custom save path for the screenshot

Example:

{
  "name": "capture_fullscreen",
  "arguments": {
    "save_path": "/path/to/save/screenshot.png"
  }
}

capture_window

Capture a specific application window.

Parameters:

  • app_name (required): Name of the application (e.g., "Safari", "Terminal")
  • save_path (optional): Custom save path

Example:

{
  "name": "capture_window",
  "arguments": {
    "app_name": "Safari",
    "save_path": "/path/to/save/window.png"
  }
}

capture_region

Capture a specific region of the screen.

Parameters:

  • x (required): X coordinate
  • y (required): Y coordinate
  • width (required): Width of region
  • height (required): Height of region
  • save_path (optional): Custom save path

extract_text_from_screen

Capture screen and extract text using OCR.

Parameters:

  • region (optional): Specific region to capture
    • x, y, width, height: Region coordinates

find_text_on_screen

Find text on screen and return its location.

Parameters:

  • text (required): Text to search for
  • case_sensitive (optional): Whether search should be case sensitive (default: false)

get_window_list

Get list of all open windows with their positions.

get_screen_info

Get information about available screens/displays.

click_at_position

Click at a specific screen position.

Parameters:

  • x (required): X coordinate
  • y (required): Y coordinate
  • button (optional): Mouse button ('left', 'right', 'middle', default: 'left')
  • double_click (optional): Whether to double-click (default: false)

monitor_screen_region

Monitor a screen region for changes over time.

Parameters:

  • x, y, width, height (required): Region to monitor
  • duration_seconds (optional): How long to monitor (max 30 seconds, default: 5)
  • interval_ms (optional): Check interval in milliseconds (default: 1000)

Requirements

  • macOS (uses native screencapture command)
  • Node.js 16+
  • Claude Desktop with MCP support
  • Screen recording permissions for automation features

Permissions

On first use, macOS may request permissions for:

  • Screen recording
  • Accessibility (for clicking automation)
  • File system access (for saving screenshots)

Grant these permissions in System Preferences > Security & Privacy.

Screenshots Storage

Screenshots are automatically saved to a screenshots/ directory within the server folder. You can:

  • Access screenshots via the resource URI system
  • Specify custom save paths for individual captures
  • View saved screenshots through Claude's resource system

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Run tests
npm test

Advanced Features

OCR Integration

The server includes hooks for macOS Vision framework integration for advanced OCR capabilities. Full OCR requires additional setup with native macOS Vision APIs.

Automation

The clicking and monitoring features enable automation workflows when combined with other MCP servers.

Security

  • All screen captures require explicit permission
  • File system access is controlled by macOS permissions
  • No network access required for core functionality

License

MIT License - see LICENSE file for details

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions, please use the GitHub Issues page.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选