linzhi-524/linjian-peek-public

掌心窗 Public Clean:一个自部署的 Android + MCP 手机状态窗口,支持生活状态读取、授权截图、App 控制、系统通知和主动提醒规则。

What it solves

This project solves the problem of letting an AI assistant see and act on a real Android phone. It gives the user a personal "companion window" on the phone that shows status, screenshots, notifications, calendar, and more, while a backend and an MCP service let AI clients read the phone state, send commands, and trigger actions like opening apps, setting alarms, or starting focus mode. It is built for self-hosting and personal use, with no private data or binding baked in.

How it works

The system has three parts:

  • Android app (android/): shows the companion UI, takes screenshots, reads screen contents, monitors notifications and media, provides accessibility features like app blocking and screen break, and stores local data like diary and wallet records.
  • Python sync backend (server/): a zero-dependency HTTP server that stores device state and relays commands between the phone and the MCP service.
  • Node.js MCP server (mcp/): exposes the phone's capabilities to AI clients via tools like peek_screen, open_app, send_notification, list_guardian_days, start_focus_mode, and many more. AI clients connect to the MCP endpoint using Streamable HTTP or SSE.

The backend and MCP get a shared token and device ID. The Android app polls the backend for pending commands and uploads status updates. Access to sensitive features like screenshots and clicking is limited to authorized clients.

Who it's for

This is for tech-savvy individuals who want to give an AI assistant controlled access to their own Android device. It is also a public template for developers who want to build similar companion or automation apps. It requires basic ability to deploy a Python server and a Node.js service, either on Render, Railway, or a local network.

Highlights

  • Full MCP integration: AI can read screen, tap, input text, open apps, get weather, manage calendar, diary, wallet, and focus mode.
  • Self-hostable: deploy backend and MCP on Render, Railway, or locally; Android app connects to your own server.
  • Rich companion features: today window, diary with paper-style UI, guardian calendar, wallet with approval workflow, screen break, app blocking, home-return mode, and companion "care" actions.
  • Privacy-aware: diary text stays on-device, media status only reads title/artist/album/playing state, and wallet only monitors payment notifications locally.
  • Fixed signing and public versioning: clear upgrade path with a dedicated certificate.
  • Public template without private data: no hardcoded names, tokens, or personal service addresses.

Related

  • Project
  • Project
  • Project
  • Project