KM

kazuph/mcp-screenshot

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 6 forks 质量 71 趋势 14MIT

MCP 截图功能仓库

概览

一个MCP服务器,用于截图并进行OCR文本识别。 - 截图截图(左半、右半、全屏)- OCR文本识别(支持日语和英语)- 多种输出格式(JSON、Markdown、竖屏、横屏) 1. 读出 - 主要OCR引擎 - 高精度日文文本识别 - 作为API服务器运行 2. Tesseract.js - 备用OCR引擎 - 当读得无法使用时使用 - 支持日文和英文识别 将以下配置添加到您的claude_desktop_config.json中: 你可以这样指导Claude来使用它: 选项:- 区域:截图区域('left'/'right'/'full',默认:'left') - 格式:输出格式('json'/'markdown'/'vertical'/'horizontal',默认:'markdown')

概述(AI 翻译)

一个MCP服务器,用于截图并进行OCR文本识别。

特色

  • 截图截取(左半、右半、全屏)
  • OCR文本识别(支持日语和英语)
  • 多种输出格式(JSON、Markdown、纵向、横向)

OCR引擎

该服务器使用两种OCR引擎:

  1. 读道
  • 主要OCR引擎
  • 高精度日语文本识别
  • 作为API服务器运行
  1. Tesseract.js
  • 备用OCR引擎
  • 当读得无法使用时使用
  • 支持日语和英语的识别

安装

Claude Desktop Configuration

在你的claude_desktop_config.json中添加以下配置:

环境变量

变量名 描述 默认值
OCR_API_URL 读得库API基础网址 http://localhost:8000

使用示例

你可以这样指导Claude来使用它:

工具规格

捕获

截图并进行OCR。

选项:

  • region:截图区域(“左”/“右”/“满”,默认为“左”)
  • format:输出格式(‘json’/‘markdown’/‘vertical’/‘horizontal’,默认:‘markdown’)

许可证

麻省理工学院

作者

本页由 AI 翻译,技术细节请以原文为准。

README

MCP Screenshot

An MCP server that captures screenshots and performs OCR text recognition.

Features

  • Screenshot capture (left half, right half, full screen)
  • OCR text recognition (supports Japanese and English)
  • Multiple output formats (JSON, Markdown, vertical, horizontal)

OCR Engines

This server uses two OCR engines:

  1. yomitoku

    • Primary OCR engine
    • High-accuracy Japanese text recognition
    • Runs as an API server
  2. Tesseract.js

    • Fallback OCR engine
    • Used when yomitoku is unavailable
    • Supports both Japanese and English recognition

Installation

npx -y @kazuph/mcp-screenshot

Claude Desktop Configuration

Add the following configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "screenshot": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-screenshot"],
      "env": {
        "OCR_API_URL": "http://localhost:8000"  // yomitoku API base URL
      }
    }
  }
}

Environment Variables

Variable Name Description Default Value
OCR_API_URL yomitoku API base URL http://localhost:8000

Usage Example

You can use it by instructing Claude like this:

Please take a screenshot of the left half of the screen and recognize the text in it.

Tool Specification

capture

Takes a screenshot and performs OCR.

Options:

  • region: Screenshot area (‘left’/‘right’/‘full’, default: ‘left’)
  • format: Output format (‘json’/‘markdown’/‘vertical’/‘horizontal’, default: ‘markdown’)

License

MIT

Author

kazuph

在 GitHub 查看完整 README

安装

npx -y @kazuph/mcp-screenshot
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "screenshot": { "command": "npx", "args": ["-y", "@kazuph/mcp-screenshot"], "env": { "OCR_API_URL": "http://localhost:8000" // yomitoku API base URL } } } }