原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Pir MCP

作者:Solteris-Dev版本 0.1.0i★ 2i在你的电脑上运行
注册名称io.github.Solteris-Dev/pir-mcp

安装方法

What it does

Motion sensor for AI agents: tells when a screen region changes or goes still. Scores, never pixels.

  • Connects 在你的电脑上运行
  • Account or key No key needed
  • Category 其他

安装

选择你使用的 AI 应用,然后复制设置。

通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  3. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "pir": {
          "command": "npx",
          "args": [
            "-y",
            "pir-mcp"
          ]
        }
      }
    }
  4. 退出 Claude 再重新打开

  5. 试一试

    用 Pir MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Pir MCP,或回答中出现 Pir MCP 的工具名称,就表示连接成功

5 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • PIR_CAPTURE_CMD Screenshot command template writing binary PPM to stdout; {x} {y} {w} {h} substituted. Default: grim (wlroots).
  • PIR_SELECT_CMD Interactive rectangle selector printing 'x,y wxh'. Default: slurp. Empty disables the pick tools.
  • PIR_WINDOW_GEOMETRY_CMD Prints 'x,y wxh' for window {id}. Default: Hyprland via jq. Empty disables window regions.
  • PIR_PICK_WINDOW_CMD Interactive window pick printing the window id. Default: Hyprland + slurp.
  • PIR_MAX_WAIT_MS Cap for blocking calls, ms (default 540000); keep under the host's MCP tool timeout.

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Pir MCP

Pir MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Pir MCP 的应用

  • 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)

B · 其他 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --scope user pir -- npx -y pir-mcp
  4. 在 Claude Code 中输入 /mcp

    应能看到 Pir MCP 在列表中并显示已连接

  5. 试一试

    用 Pir MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Pir MCP,或回答中出现 Pir MCP 的工具名称,就表示连接成功

5 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • PIR_CAPTURE_CMD Screenshot command template writing binary PPM to stdout; {x} {y} {w} {h} substituted. Default: grim (wlroots).
  • PIR_SELECT_CMD Interactive rectangle selector printing 'x,y wxh'. Default: slurp. Empty disables the pick tools.
  • PIR_WINDOW_GEOMETRY_CMD Prints 'x,y wxh' for window {id}. Default: Hyprland via jq. Empty disables window regions.
  • PIR_PICK_WINDOW_CMD Interactive window pick printing the window id. Default: Hyprland + slurp.
  • PIR_MAX_WAIT_MS Cap for blocking calls, ms (default 540000); keep under the host's MCP tool timeout.

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 在 Cursor 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Pir MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Pir MCP,或回答中出现 Pir MCP 的工具名称,就表示连接成功

5 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • PIR_CAPTURE_CMD Screenshot command template writing binary PPM to stdout; {x} {y} {w} {h} substituted. Default: grim (wlroots).
  • PIR_SELECT_CMD Interactive rectangle selector printing 'x,y wxh'. Default: slurp. Empty disables the pick tools.
  • PIR_WINDOW_GEOMETRY_CMD Prints 'x,y wxh' for window {id}. Default: Hyprland via jq. Empty disables window regions.
  • PIR_PICK_WINDOW_CMD Interactive window pick printing the window id. Default: Hyprland + slurp.
  • PIR_MAX_WAIT_MS Cap for blocking calls, ms (default 540000); keep under the host's MCP tool timeout.

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 在 VS Code 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Pir MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Pir MCP,或回答中出现 Pir MCP 的工具名称,就表示连接成功

5 项可选设置(不填也能用)

上面的命令不填这些也能用。想调整时再按开发者的说明添加。

  • PIR_CAPTURE_CMD Screenshot command template writing binary PPM to stdout; {x} {y} {w} {h} substituted. Default: grim (wlroots).
  • PIR_SELECT_CMD Interactive rectangle selector printing 'x,y wxh'. Default: slurp. Empty disables the pick tools.
  • PIR_WINDOW_GEOMETRY_CMD Prints 'x,y wxh' for window {id}. Default: Hyprland via jq. Empty disables window regions.
  • PIR_PICK_WINDOW_CMD Interactive window pick printing the window id. Default: Hyprland + slurp.
  • PIR_MAX_WAIT_MS Cap for blocking calls, ms (default 540000); keep under the host's MCP tool timeout.

说明仍为英文原文。

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Pir MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user pir -- npx -y pir-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "pir": {
      "command": "npx",
      "args": [
        "-y",
        "pir-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "pir": {
      "command": "npx",
      "args": [
        "-y",
        "pir-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "pir": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pir-mcp"
      ]
    }
  }
}

需要你填写的值

  • PIR_CAPTURE_CMD env
    Screenshot command template writing binary PPM to stdout; {x} {y} {w} {h} substituted. Default: grim (wlroots).
  • PIR_SELECT_CMD env
    Interactive rectangle selector printing 'x,y wxh'. Default: slurp. Empty disables the pick tools.
  • PIR_WINDOW_GEOMETRY_CMD env
    Prints 'x,y wxh' for window {id}. Default: Hyprland via jq. Empty disables window regions.
  • PIR_PICK_WINDOW_CMD env
    Interactive window pick printing the window id. Default: Hyprland + slurp.
  • PIR_MAX_WAIT_MS env
    Cap for blocking calls, ms (default 540000); keep under the host's MCP tool timeout.

说明仍为英文原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
35/周
连接方式
在你的电脑上运行
最新版本i
0.1.0
分类i
其他
发布到注册中心i
2026年9月17日
代码最后更新i
2026年10月12日
作者
Solteris-Dev
软件包
npm: pir-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Solteris-Dev 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于33天前

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 19791 个服务器的 91%
  • 发布到注册中心的时间比此分类中其他 19791 个服务器的 42% 更新
  • 基础检查结果等于或优于此分类中其他 19791 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Pir MCP 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于33天前,最新版本(0.1.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:World Monitor, Claude Flow, Windmill

同类别的其他选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.

作者:koala73广泛使用★ 9.1万今天更新

在云端运行✓ 服务方 · worldmonitor.app

Claude Flow

AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.

作者:ruvnet广泛使用↓ 1.4万/周★ 8.2万14个月前更新

在你的电脑上运行

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

作者:windmill-labs广泛使用★ 1.9万前天更新

在云端运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

pir-mcp

A motion sensor for AI agents.

*"Gives your LLM agents enough info to be a helpful "watcher" without being a privacy nightmare like Windows Recall"* *-Solteris-Dev*

A PIR sensor tells you *that* something moved, never *what*. This is the same idea for a screen: an MCP server that watches named rectangles and answers "did this change?" and "has this gone still?" with a number, a size and a timestamp. No tool in it returns pixels, image files, or anything that could be turned back into a picture.

It exists because an agent driving a desktop keeps needing the same two things: *wake me when the build output moves* and *tell me if this status bar has stopped ticking*. Both are motion questions. Neither needs a screenshot.

What it does

  • `pir_pick_region` ask the person at the screen to draw the rectangle, the way a regional screenshot works (slurp, slop). The human chooses what is sensed; the agent gets the geometry. Use this whenever someone is there.
  • `pir_pick_mask` the same gesture for a patch inside a region to ignore (a clock, a spinner, a caret).
  • `pir_define_region` the scriptable path: name a rectangle by global layout coordinates, with optional masks.
  • `pir_pick_window` / `pir_define_window` watch a window instead of a fixed rectangle. Its geometry is looked up again before every capture, so the region follows the window when it moves; a resize counts as maximal change. The pick offers your visible windows as boxes to click.
  • `pir_sample` capture once, score against the previous sample of that region. Cheap; also the way to check the capture command works.
  • `pir_wait_for_change` block until the region departs from how it looked when the call began, or time out. A doorbell.
  • `pir_wait_for_stillness` block until nothing has changed for still_for_ms, or time out. A short window means "the animation settled, safe to act". A long window on something that should keep changing means it is frozen, and still=true is the alarm.
  • `pir_list_regions`, `pir_remove_region` housekeeping.

Every comparison reports two numbers over a coarse grid of averaged colour cells (at most 64 across, each at least 4 px), both 0 for identical and 1 for black against white:

  • `rmse` over the whole grid: did the region as a whole move? A cursor edge or an antialiased caret scores about 0.02; a dialog opening 0.1 or more. This is the default metric, threshold 0.05.
  • `peak` the single most-changed cell: did *anything* in it move? A clock digit flipping inside a 1920-wide status bar scores rmse 0.018 (invisible to the default) but peak 0.145. Use metric=peak for a small thing that should tick inside a larger region.

Averaging is what makes this a sensor rather than a camera: 64 cells cannot be read.

What it deliberately does not do

  • It never returns image data. There is no snapshot tool and none is planned. If an agent needs to *see*, use the screenshot tool your environment already has, so that choice stays explicit and yours.
  • It never writes frames to disk. A capture lives in memory for the milliseconds it takes to reduce it to a grid, and only the grid of the last sample is kept per region.
  • It does not capture on its own. Every sample is a tool call the agent made, visible in the transcript, and pir_pick_region carries a purpose line the agent has to write down before you draw.

What it *does* reveal, so you can decide whether that is acceptable: that a given rectangle changed, at a given time, by a given magnitude. On a region covering a chat window that is presence information. Choose regions accordingly; the server has no opinion.

The capture itself is delegated to a command you configure, run with your privileges. The default is grim, so nothing here has screen access that you did not already give to grim.

Install

It is on npm as pir-mcp and in the official MCP Registry as io.github.Solteris-Dev/pir-mcp, so most clients can run it with npx -y pir-mcp and no clone:

claude mcp add -s user pir -- npx -y pir-mcp

From source:

git clone https://github.com/Solteris-Dev/pir-mcp

cd pir-mcp && npm install && npm run build

Requires Node 20+ and a screenshot tool that can write binary PPM to stdout.

Capture command

PIR_CAPTURE_CMD is a template; {x} {y} {w} {h} are substituted and the result runs under sh -c. It must print a binary PPM (P6) to stdout.

environmentcommand
wlroots / Hyprland / Sway (default)grim -g "{x},{y} {w}x{h}" -t ppm -
X11 with maim`maim -g {w}x{h}+{x}+{y} -f png \magick png:- ppm:-`
X11 with ImageMagickimport -window root -crop {w}x{h}+{x}+{y} +repage ppm:-
macOS`screencapture -x -R{x},{y},{w},{h} -t png /dev/stdout \magick png:- ppm:-`

Coordinates are whatever the capture tool uses. On a wlroots layout that is the global layout, so an output placed left of the primary has negative x.

Selector command

PIR_SELECT_CMD runs when an agent calls pir_pick_region or pir_pick_mask and must print x,y wxh. Set it to an empty string to remove those tools entirely.

environmentcommand
wlroots / Hyprland / Sway (default)slurp -f "%x,%y %wx%h"
X11slop -f "%x,%y %wx%h"
macOSsee contrib/macos (untested)
Window commands

PIR_WINDOW_GEOMETRY_CMD gets {id} substituted and must print x,y wxh for that window; PIR_PICK_WINDOW_CMD must print the id of the window the person chose. Both default to Hyprland (via jq and slurp -r). Set either to an empty string to remove the corresponding tools. Window ids are limited to [A-Za-z0-9_.:-] before they reach a shell.

environmentgeometrypick
Hyprland (default)`hyprctl -j clients \jq -r --arg id "{id}" '.[] \select(.address==$id) \"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"'`visible windows as slurp boxes, prints the address
Sway`swaymsg -t get_tree \jq -r '.. \select(.id? == {id}) \"\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"'``swaymsg -t get_tree \jq -r '.. \select(.visible? == true) \"\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height) \(.id)"' \slurp -r -f '%l'`
X11`xdotool getwindowgeometry --shell {id} \awk -F= '/^X/{x=$2}/^Y/{y=$2}/^WIDTH/{w=$2}/^HEIGHT/{h=$2}END{print x","y" "w"x"h}'`xdotool selectwindow

Only the Hyprland pair has been run; the others are written from the tools' documentation.

Claude Code
claude mcp add -s user pir -- npx -y pir-mcp

or, from a source checkout:

claude mcp add -s user pir -- node /path/to/pir-mcp/dist/stdio.js

Blocking calls default to 55 s and are capped by PIR_MAX_WAIT_MS (540 s). Keep the cap under your host's MCP tool timeout; an agent that needs to watch for longer just calls again.

Other settings
variabledefaultmeaning
PIR_REGIONSunsetJSON file of regions to define at startup
PIR_THRESHOLD0.05default change threshold
PIR_INTERVAL_MS500default sampling period
PIR_DEFAULT_WAIT_MS55000default timeout for blocking calls
PIR_MAX_WAIT_MS540000cap for blocking calls
PIR_CAPTURE_TIMEOUT_MS10000how long one capture may take
PIR_SELECT_TIMEOUT_MS60000how long the person has to draw a selection
PIR_MAX_CELLS64grid resolution on the long side; smaller is coarser and more private

A regions file looks like:

[

{ "name": "bar", "x": 0, "y": 0, "w": 1920, "h": 26, "masks": [{ "x": 1690, "y": 0, "w": 110, "h": 26 }] } ]

Example

The case that produced this: a status bar that occasionally froze for hours while its process looked healthy. The clock in it should change every minute, so a bar that is still for three minutes is a frozen bar.

pir_pick_region         name=bar purpose="watch the status bar for a freeze"

pir_wait_for_stillness name=bar still_for_ms=180000 metric=peak timeout_ms=540000

still=true comes back only if the bar stopped; otherwise the call returns still=false at the timeout and the agent calls again. Nothing on the screen was ever seen, and the person drew the rectangle themselves.

Contributing starting points

contrib/macos/ holds an AppKit rectangle selector and capture recipe, written blind and untested. If you run it on a real Mac, fix what breaks and send it back.

Tests

npm test

License

MIT.