Skip to main content

截图服务器

这个项目是一个截图服务器,使用Python编写。它提供了以下主要功能:

  1. 截图功能:通过调用take_screenshot_image工具,可以截取用户屏幕的截图,并将其返回为图像数据。
  2. 图像处理:使用Pillow库对截取的图像进行处理和显示。
  3. MCP服务器:通过MCP协议与客户端进行通信,提供截图服务。

使用方法

  1. 确保已安装Python和所需的依赖项。
$ uv sync
  1. 运行clint.py文件,启动截图服务器。
$ uv run clint.py
  1. 使用MCP客户端调用take_screenshot_image工具,获取屏幕截图。

依赖项

  • Python 3.x
  • Pillow库
  • MCP协议相关库

MCP配置

{
  "mcpServers": {
    "mcp-server": {
      "command": "/Users/username/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/username/MCP",
        "run",
        "screenshot.py"
      ]
    }
  }
}

文件结构

  • screenshot.py:提供截图功能的MCP服务器。
  • clint.py:MCP客户端,用于调用截图服务器的工具。
  • README.md:项目说明文档。

Metadata

Release files for screenshot-server 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for screenshot-server 0.1.3
File Size Uploaded
screenshot_server-0.1.3.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for screenshot-server 0.1.3
File Interpreter ABI Platform
screenshot_server-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / screenshot_server-0.1.3.tar.gz

Download URL screenshot_server-0.1.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89aa699f6306d0daf2b14ddfb444688bde9694697319e707f6f247e6d76170f7
BLAKE2b-256 checksum
How to use checksums
8b20cbb7f2133d37e3a5248d17aff1eda682c1075cb368e966383db8409ac59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / screenshot_server-0.1.3-py3-none-any.whl

Download URL screenshot_server-0.1.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ccd54c3bf41c10171bf1a8315ac20d1687a35822ceac78d643a41d44d69f69c
BLAKE2b-256 checksum
How to use checksums
8fad7ec2819002f04eb5757113cc45ef10f7ccd784adab79735d9ab16c9f8413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page