
CCPhoto — Phone Camera Bridge
io.github.stepankaiser由 GitHub 帳號 stepankaiser 發布v0.3.1更新於 Oct 24, 2026
Phone camera bridge for Claude Code — photos, live video, voice, and generative UI
概覽
透過區域網路把手機鏡頭接到 Claude Code,讓助理拍照、觀看即時視訊並在手機上顯示內容。
- 可以做什麼
- CCPhoto 在本機執行 MCP 伺服器並顯示 QR 碼,用手機掃描後瀏覽器會開啟拍照頁面,照片會傳回 Claude。工具包括 capture_photo、wait_for_photo、get_latest_photo、list_photos、send_to_phone、start_livestream 與 get_live_frame。它也支援照片標註、語音輸入與語音回覆,以及在手機上呈現生成式介面。
- 適用情境
- 適合讓 Claude 透過手機鏡頭查看實物、白板、標籤或電路板,也適合把手機當成顯示說明與圖解的副螢幕。在需要雙手操作、不方便使用電腦鏡頭的情境中特別有用。
- 執行需求
- 以本機 Node.js 程序執行,通常透過 npx ccphoto 或全域安裝 npm 套件啟動。電腦與手機需在同一個區域網路,手機瀏覽器需能存取相機。即時視訊需要 HTTPS。選用環境變數 CCPHOTO_DIR 可覆寫照片儲存目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CCPhoto — Phone Camera Bridge,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
CCPhoto
[npm version] [License: MIT] [Node.js]
Bridge your phone camera to Claude Code over the local network.
CCPhoto is an MCP server that lets you take photos on your phone and send them directly to Claude Code. Point your phone at a circuit board, a whiteboard, a label -- anything -- and Claude sees it instantly. No app install required; your phone's browser camera does all the work.
Quick Start
Then in Claude Code, just say "take a photo" -- Claude handles the rest.
How It Works
- Claude calls the
capture_photoMCP tool. - A QR code appears in your terminal.
- Scan it with your phone -- a camera page opens in your browser.
- Take a photo -- Claude receives the image directly.
No app install needed. The phone's native camera is accessed through the
<input capture> HTML attribute.
Always-On Mode
The server starts on the first capture_photo call and stays running for the
entire session. Your phone stays connected -- there is no need to re-scan the
QR code. Take as many photos as you like, and retrieve any of them by asking
Claude.
Photo Request Notifications
When your phone is already connected and Claude calls capture_photo again, the
phone receives an SSE push notification. The capture button pulses to let you
know Claude is waiting for a new photo. Just tap and shoot.
Bidirectional Messaging
Claude can send content to your phone using the send_to_phone tool. Text, markdown,
and images appear in a collapsible panel on the phone. This turns your phone into a
reference screen -- Claude can display wiring instructions, pinout diagrams, or code
snippets while you work with both hands.
Photo Annotations
After taking a photo, an annotation screen appears where you can draw on the image before sending it. Use colored pens (red, blue, green, white) to circle components, draw arrows, or highlight areas of interest. Tap "Send" to upload the annotated image, or "Skip" to send the original photo without annotations.
Live Video Assistant
Start a semi-real-time video stream from your phone camera. Claude watches the live feed (one frame every 3 seconds) and provides guidance in real-time -- point the camera where Claude asks, and receive instructions on your phone screen.
Requires HTTPS (for camera access). On Android Chrome, accept the certificate warning once. Currently Android/Chrome only; iOS support planned.
Voice Interaction
Tap the microphone button on your phone to speak to Claude. Speech is
transcribed using the browser's built-in Speech Recognition API and sent as
text. Claude can respond with spoken audio using send_to_phone with
speak: true -- the phone speaks the response aloud via Text-to-Speech.
This enables hands-free workflows: ask a question while holding a soldering iron, and hear the answer without looking at a screen. The mic button appears only on browsers that support Speech Recognition (Android Chrome).
Generative UI
Claude can generate rich, contextual UI on your phone based on what it sees. Point your camera at a product, component, recipe, or anything -- Claude analyzes it and sends a custom interactive interface to your phone display.
12 component types: Card, Text, Image, Metric, MetricGrid, Checklist, StepByStep, Alert, Table, Timer, Badge, and Divider. Claude composes these into contextual layouts -- a plant care card with watering checklist, a circuit component table with pin diagrams, or a step-by-step repair guide with timers.
Use send_to_phone with the ui_spec parameter to generate custom UI.
Installation
npx (recommended, no install)
Global install
From source
If you prefer to register the MCP server manually instead of using --setup:
MCP Tools Reference
Standalone CLI Mode
CCPhoto can also run independently, without Claude Code:
A QR code is printed to the terminal. Scan it, take photos, and they are saved to disk. The server stays running for multiple captures.
CLI Options
Configuration
Security
- Session token -- A cryptographically random 32-character hex token is generated for each server session. Every request must include the token.
- Timing-safe comparison -- Token validation uses
crypto.timingSafeEqualto prevent timing attacks. - Local network only -- The server binds to your local network IP. No data leaves your network.
- No external services -- Photos are transferred directly between your phone and the server over HTTP on your LAN. Nothing is uploaded to the cloud.
Troubleshooting
Could not detect local network IP
Make sure your computer is connected to WiFi (not just Ethernet in some configurations). CCPhoto needs a LAN IP address that your phone can reach.
QR code does not scan
Try increasing your terminal font size or reducing the terminal width so the QR code renders at a scannable resolution. You can also copy the URL printed below the QR code and type it into your phone's browser manually.
Phone camera does not open
The camera capture feature requires HTTPS on some browsers, but most mobile browsers allow it on plain HTTP for local network addresses. If your browser blocks camera access, try using Safari (iOS) or Chrome (Android).
Upload fails
Verify that your phone and computer are on the same WiFi network. Corporate networks with client isolation may block device-to-device traffic. Try a personal hotspot or home network instead.
Development
Tests use the Node.js built-in test runner and require the tsx dev dependency
for TypeScript execution.
Project structure:
Roadmap
- Real domain + Let's Encrypt certs -- Use a registered domain with valid certificates for zero browser warnings on any device, including iOS Safari.
- iOS live video support -- Live video streaming currently works on Android/Chrome. iOS Safari support requires trusted certificates.
- AR overlays on camera feed -- Draw annotations directly on the live camera view in real-time.
- Multi-camera support -- Connect multiple phones simultaneously for different viewing angles.
- WebRTC streaming -- Replace HTTP frame polling with WebRTC when Claude's vision processing latency improves.
Contributing
Contributions are welcome.
- Fork the repository
- Create a feature branch (
git checkout -b my-feature) - Make your changes
- Run
npm testto verify nothing is broken - Commit your changes (
git commit -m "Add my feature") - Push to your branch (
git push origin my-feature) - Open a pull request
When reporting a bug, please include your Node.js version, OS, and the steps to reproduce the issue.
License
來源:README.md,提交 6e5eeef
工具
0版本歷史
1- v0.3.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分