npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mcpcn/screenshot-mcp

v1.0.2

Published

MCP Server for capturing screenshots on Windows & macOS with multi-monitor support

Readme

屏幕截图 MCP Server

一个用于截取电脑屏幕的 Model Context Protocol (MCP) 服务器,支持 Windows 和 macOS,支持多显示器环境。

功能特性

  • 🖥️ 跨平台支持:Windows 和 macOS
  • 🖼️ 多显示器支持:可截取所有显示器或指定单个显示器
  • 📋 显示器列表:查看当前连接的所有显示器信息
  • 🔢 Base64 输出:返回 PNG 格式的 base64 编码图片

安装

npm install

构建

npm run build

使用

作为 MCP 服务器运行

npm run mcp

MCP 配置

{
  "mcpServers": {
    "screenshot": {
      "command": "npx",
      "args": ["-y", "@anthropic/screenshot-mcp"]
    }
  }
}

可用工具

1. capture_screenshot

截取屏幕截图。

参数: | 参数 | 类型 | 必填 | 描述 | |------|------|------|------| | monitor | integer | 否 | 指定要截取的显示器编号(从0开始)。不传则截取所有显示器合成的画面 | | outputPath | string | 否 | 截图保存路径。可以是完整文件路径或目录路径。不传则默认保存到桌面 |

返回:

  • PNG 格式的 base64 编码图片
  • 截取的显示器信息
  • 保存的文件路径

示例:

// 截取所有显示器,保存到桌面(默认)
{}

// 截取第一个显示器,保存到桌面
{ "monitor": 0 }

// 截取第二个显示器,保存到桌面
{ "monitor": 1 }

// 截取所有显示器,保存到指定路径
{ "outputPath": "C:/screenshots/my_screenshot.png" }

// 截取指定显示器,保存到指定目录(自动生成文件名)
{ "monitor": 0, "outputPath": "C:/screenshots/" }

2. list_displays

列出所有可用的显示器。

参数:

返回:

  • 显示器数量
  • 每个显示器的编号、名称、分辨率

多显示器说明

在多显示器环境下:

  1. 不指定 monitor 参数:截取所有显示器合成的完整画面(横向拼接)
  2. 指定 monitor 参数:只截取指定编号的显示器

建议先使用 list_displays 工具查看当前有哪些显示器可用,再决定截取哪个。

平台特定说明

Windows

  • 使用 Windows 原生 API 进行截图
  • 完全支持多显示器

macOS

  • 使用 macOS 原生 API 进行截图
  • 完全支持多显示器
  • 首次使用可能需要授予屏幕录制权限

依赖

  • @modelcontextprotocol/sdk: MCP 协议 SDK
  • screenshot-desktop: 跨平台截图库

License

ISC