原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Onsense

作者:hufirst版本 0.3.20i★ –i在你的电脑上运行
注册名称io.github.hufirst/onsense

安装

概览

作者提供的说明(英文原文)

Android phone camera, sensors & files for any MCP client — local, no cloud, no ADB.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 聊天与邮件

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "onsense": {
      "command": "uvx",
      "args": [
        "onsense",
        "serve"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add onsense -- uvx onsense serve

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "onsense": {
      "command": "uvx",
      "args": [
        "onsense",
        "serve"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "onsense": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "onsense",
        "serve"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

与“聊天与邮件”中的其他服务器比较i

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

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

常见问题

Onsense 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.20)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

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

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

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

作者:Vexa-ai广泛使用★ 29492个月前更新

在云端运行✓ vexa.ai

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

作者:anypost广泛使用↓ 5342/周★ 138534天前更新

电脑或云端✓ emailmd.dev

MCP WhatsApp Cloud

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

作者:codespar起步阶段↓ 63/周★ 2775个月前更新

在你的电脑上运行

作者的 README

打开 README

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

onsense — Phone Camera, Sensors & Files for PC AI Agents

Don't describe it. Let your AI see it. onsense is the PC-side MCP broker for the onSense Android app: run uvx onsense pair on your PC, and any MCP-capable AI — Claude Code, Claude Desktop, Codex, or your own agent — can see through your phone's camera, read its sensors, and move files & clipboard both ways. No cloud relay. No ADB.

*Claude Code, running on the PC, reads the phone's sensors and looks through its camera to answer — live, over local Wi-Fi.*

*…and the same with Codex. onSense is a standard MCP server, so any MCP client works.*


Architecture

Android phone (onSense app)           PC (this package)           AI client

HTTP provider :8080 ←→ stdio MCP broker Claude / Codex / … camera frames, photos, onsense serve natural-language or sensors, QR pairing onsense clip :8770 /onsense tool calls

  • The phone runs an HTTP provider on port 8080. It exposes camera frames, recent photos, and sensor readings, all gated by a pairing token.
  • The PC package (onsense) is a stdio MCP broker. It translates MCP tool calls from your AI client into HTTP requests to the phone.
  • Discovery uses mDNS (_onsense._tcp.local.). If the phone's IP changes, the broker rediscovers it automatically — no manual reconfiguration needed.
  • An optional clip bridge daemon on port 8770 lets the phone push camera frames, files, and clipboard content to the PC (and, if enabled, lets the phone pull from the PC clipboard).

Requirements

  • uv (provides uvx; downloads a managed Python automatically — no separate Python install needed)
  • The onSense Android app installed on a phone on the same local Wi-Fi network as your PC
  • An MCP-compatible AI client such as Claude Code, Codex, or any stdio MCP client

Quick Start

0. Fresh PC without uv? Use the app's setup helper (recommended)

On a clean PC, uvx doesn't exist yet and the command below will fail with *"'uvx' is not recognized"*. The easiest fix: install the onSense app first, tap "Start PC setup helper", and open the shown address on your PC. It gives you a one-line command that installs uv, pairs, and registers the MCP server in one go — and because the PC connects *out* to the phone, it also sidesteps the Windows firewall entirely.

Prefer installing uv yourself? One line:

# Windows (PowerShell)

irm https://astral.sh/uv/install.ps1 | iex $env:Path = "$env:USERPROFILE\.local\bin;$env:Path" # make uvx visible in this same shell

# macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh export PATH="$HOME/.local/bin:$PATH"

1. Pair your phone

Run this once. The PC prints a QR code; scan it from the onSense app ("Scan PC QR"). The phone pushes its address and token to the PC, which registers the MCP server automatically.

uvx onsense pair

After pairing, restart your AI client once so it picks up the new onsense MCP server.

2. Use it

Ask your AI client naturally:

"Take a photo of what's in front of my phone."

"What are the current sensor readings?"

"Show me the last 5 photos on my phone."

The MCP tools are called automatically. In Claude Code you can also use the bundled `/onsense` slash command (installed during pairing).

3. Diagnose problems
uvx onsense doctor           # checks Python, uv, MCP, Claude registration, mDNS, phone reachability

uvx onsense doctor --base http://192.168.1.5:8080 --token YOUR_PAIRING_TOKEN

Windows: QR scan times out?

The #1 cause is the Windows firewall dropping the phone's inbound connection:

  • If your Wi-Fi network profile is Public, inbound traffic is blocked hard. Switch it to Private (Settings → Network → your Wi-Fi → Network profile), or just use the app's PC setup helper, which needs no inbound port at all.
  • On a Private network, add a durable allow rule once (run as administrator):
  uvx onsense pair --fix-firewall

The first-run firewall popup is *program-path-scoped* and uvx's ephemeral paths silently invalidate it — the port-scoped rule above (TCP 8765–8774, Private) is what actually sticks.

  • If port 8765 is taken, pair automatically falls back to the next free port (up to 8774) and the QR reflects the real port — no action needed.

Subcommands

CommandWhat it does
uvx onsense pairDisplay a QR code on the PC; phone scans it and pushes {base, token}; registers MCP automatically
uvx onsense pair "onsense://pair?base=...&token=..."Parse a pairing URI directly (phone-displayed QR → manual copy)
uvx onsense pair --img screenshot.pngDecode a pairing QR from a screenshot file (requires opencv)
uvx onsense serveRun the MCP server (stdio). Also starts the clip daemon automatically unless --no-clip is passed
uvx onsense serve --no-clipRun the MCP server only, without starting the clip daemon
uvx onsense clipRun the clip bridge daemon standalone (port 8770)
uvx onsense clip --allow-pullEnable phone→pull: phone can GET /clip to retrieve the PC clipboard
uvx onsense clip --set-clipboardAuto-inject received content into the PC OS clipboard (off by default)
uvx onsense pair --fix-firewall(Windows, admin) Add the durable port-scoped firewall rule, then pair as usual
uvx onsense doctorDiagnose installation, connectivity, and phone reachability
uvx onsense statsShow local-only activation stats (--json, --reset). Nothing is uploaded automatically

Other MCP clients (Claude Desktop, Codex, …)

uvx onsense pair auto-registers the server with Claude Code (via claude mcp add) — this one-line auto-setup is Claude Code-specific. The MCP server itself is standard stdio MCP, so any MCP-compatible client works once you add it manually. Run uvx onsense pair once first: it saves your phone's address and token to ~/.onsense/pair.json, which the server reads at request time — so you don't put the token in each client's config, and the phone's IP is auto-tracked via mDNS.

Claude Desktop — add to claude_desktop_config.json:

{ "mcpServers": { "onsense": { "command": "uvx", "args": ["onsense", "serve"] } } }

Codex — register via the CLI (verified with Codex CLI 0.142.5):

codex mcp add onsense -- uvx onsense serve

Codex sandbox note: Codex's default sandbox blocks network access, so the MCP server can't reach your phone and tool calls fail silently. Run Codex with network access enabled (e.g. --sandbox danger-full-access, or a sandbox policy that permits network) so onsense can talk to the phone on your LAN.

or add to ~/.codex/config.toml:

[mcp_servers.onsense]

command = "uvx" args = ["onsense", "serve"]

Restart the client once after adding the server. Any other stdio MCP client works the same way — point it at uvx onsense serve.


MCP Tools

These tools are exposed to your AI client after pairing:

ToolDescription
get_live_frame()Capture the current camera frame from the phone (returns JPEG image)
read_sensors()Return phone sensor readings as JSON: battery level/charging state, ambient light (lux), accelerometer (x/y/z)
recent_photos(limit=10)List recent photos on the phone: id, name, date_added, size, width, height
get_photo(id, max_width=1024, save_original=False)Fetch a specific photo by id (downscaled to max_width); use ids from recent_photos. Also saves it to the same Downloads folder as get_reference and returns the path, so the image survives the conversation. save_original=True archives full resolution instead of the downscaled copy
rename_photo(path, name)Rename a fetched file to describe what the image actually shows (photo_1000024531.jpg → whiteboard_sprint_plan.jpg). The AI calls this right after viewing, so it costs no extra tokens
get_reference()Fetch whatever the phone has designated as its reference source — a live camera frame, a captured photo, or an arbitrary file (incl. non-images) — saved to disk with path + metadata. The core of the file/capture bridge
get_cam_fps()Read the phone's current camera FPS setting (15 = high-performance, 2 = balanced, 0 = on-demand)
set_cam_fps(fps)Set the phone's camera FPS: 15 (high-performance), 2 (balanced, recommended), or 0 (power-saving / on-demand)

If the phone's IP changes, the broker retries using mDNS autodiscovery before surfacing an error.


Clip Bridge (Phone ↔ PC File & Clipboard)

onsense serve automatically starts a clip daemon on port 8770. You can also run it standalone with onsense clip.

Phone → PC push (POST /clip)

The onSense Android app can push content to the PC:

  • Images are saved to disk as latest.jpg (in ONSENSE_CLIP_DIR, default /onsense/).
  • Text files are saved to disk.
  • Other files (video, PDF, etc.) are saved to disk by filename.
  • If --set-clipboard is active, images and text are also injected into the PC OS clipboard so you can paste with Ctrl+V immediately.

By default, --set-clipboard is off — files are saved to disk but the clipboard is not touched.

PC → Phone pull (GET /clip)

Off by default. Enable with:

uvx onsense clip --allow-pull

When enabled, the phone can GET /clip to retrieve the current PC clipboard content (copied files first, then images, then text). Returns 204 if the clipboard is empty.

Ports and environment variables
VariableDefaultPurpose
PHONE_BASE(from pairing)Phone HTTP base URL, e.g. http://192.168.1.5:8080
PHONE_TOKEN(from pairing)Pairing auth token
ONSENSE_CLIP_DIR /onsenseDirectory where pushed files are saved
ONSENSE_CLIP_MAX_MB200Maximum incoming file size in MB (0 = unlimited)
ONSENSE_CLIP_ALLOW_PULL0Set to 1 to enable PC→phone pull without the CLI flag
ONSENSE_CLIP_SET_CLIPBOARD0Set to 1 to auto-inject into OS clipboard without the CLI flag
ONSENSE_TEST_FRAME(unset)Local JPEG path returned by get_live_frame when phone is unreachable

Security

Local network only. The PC-side services bind to all interfaces but reject connections from non-private IP addresses at the application layer. They are not intended to be exposed to the internet.

HMAC request signing. The pairing token is never sent in cleartext. Every authenticated request is signed with HMAC-SHA256 over METHOD\npath\ntimestamp\nnonce\nalgorithm, keyed by a signing key derived from the pairing token via HKDF-SHA256 (a key separate from the encryption key), and carries X-Ts / X-Nonce / X-Sig / X-Enc headers. Servers verify in constant time, reject timestamps outside a ±300 s window, and reject reused nonces — so a sniffed request cannot be replayed and the token cannot be stolen off the wire. New Android installs generate a 128-bit random token, stored on the phone and in ~/.onsense/pair.json (chmod 600) after pairing. (The /health endpoint is unauthenticated.) See PROTOCOL.md for the exact wire format.

Pull and clipboard injection are off by default. GET /clip (phone pulls PC clipboard) and OS clipboard auto-injection (phone push → Ctrl+V) are disabled unl

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx