Skip to main content

Android Camera MCP

Turn any Android 10+ phone into a private, LAN-first remote camera for AI agents via the Model Context Protocol (MCP).

This Python package provides the Camera Gateway daemon (TCP :8765 for phones, local control API 127.0.0.1:8766) and the MCP Server (stdio) exposing 15 camera tools for Claude Desktop, Cursor, Kiro, Antigravity, and custom LLM agents — with zero cloud dependency.

Install

Requires Python 3.10+.

# Run directly with uvx (no manual venv required)
uvx android-camera-mcp --help

# Or install with pip
pip install android-camera-mcp

# Optional: include mDNS / LAN auto-discovery (_android-camera-mcp._tcp)
pip install "android-camera-mcp[mdns]"

Quick Start

1. Install the Android Companion App

Download and install the latest Android Camera Agent APK (Android 10 / API 29+) from GitHub Releases.

2. Start the Camera Gateway Daemon

Run one long-lived gateway process on your computer so restarting or running multiple MCP clients never drops the phone connection:

# With pip install
android-camera-mcp gateway

# Or with uvx (including optional mDNS discovery)
uvx --from "android-camera-mcp[mdns]" android-camera-mcp gateway

# Optional flags
android-camera-mcp gateway --port 8765 --api-port 8766 --log-file ~/.android-camera-mcp/gateway.log -v

Open Android Camera Agent on your phone, tap Discover (with mdns extra installed) or enter your computer's LAN IP and port 8765, then tap Connect.

3. Configure Your MCP Client

Add android-camera to your MCP client configuration (Claude Desktop, Cursor, Kiro, Antigravity, etc.):

{
  "mcpServers": {
    "android-camera": {
      "command": "uvx",
      "args": ["android-camera-mcp"]
    }
  }
}

Or if installed via pip install android-camera-mcp:

{
  "mcpServers": {
    "android-camera": {
      "command": "android-camera-mcp",
      "args": ["mcp"]
    }
  }
}

Optional environment variables for the MCP process:

  • ANDROID_CAMERA_API_HOST (default 127.0.0.1)
  • ANDROID_CAMERA_API_PORT (default 8766)

Available MCP Tools (15)

Tool Description
camera_list List connected Android agents, online status, cameras, and battery/thermal health
camera_info Per-camera capabilities (zoom/EV ranges, flash, manual focus), active lens, queue, pending commands
camera_status Live phone state: idle/capturing/streaming, battery, temperature, thermal status, uptime
camera_capture Upright JPEG still (1600px default; max_dimension=0 full sensor), presets, phone-side ROI crop
camera_preview Fast 640px live-feed frame for framing checks (supports ROI crop)
camera_analyze Offline on-device ML Kit OCR, barcode scanning, and exposure/focus stats (structured JSON, no large JPEG)
camera_stream_start Start temporary low-FPS preview stream (with duration and idle auto-stop)
camera_stream_frame Read newest stream frame, optionally waiting for one newer than after_sequence
camera_stream_stop Stop the active stream (idempotent)
camera_set_zoom Set zoom ratio on the active camera (clamped to supported bounds, including <1.0x ultra-wide)
camera_set_torch Toggle continuous flashlight/torch on or off
camera_set_flash Set flash mode (off / auto / on)
camera_set_focus Configure continuous AF, one-shot auto AF, or manual focus distance (0.0–1.0)
camera_set_exposure Set EV compensation steps (or omit to reset to auto exposure)
camera_select_lens Switch active camera/lens by camera_id

Development & Tests

cd server
pip install -e ".[dev,mdns]"
python -m pytest -q

License

MIT License — see LICENSE.

Metadata

Release files for android-camera-mcp 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for android-camera-mcp 0.5.0
File Size Uploaded Provenance Actions
android_camera_mcp-0.5.0.tar.gz 42.0 kB With provenance Details for android_camera_mcp-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for android-camera-mcp 0.5.0
File Interpreter ABI Platform Actions
android_camera_mcp-0.5.0-py3-none-any.whl Python 3 none any Details for android_camera_mcp-0.5.0-py3-none-any.whl

Total release size: 85.8 kB

Release files / android_camera_mcp-0.5.0.tar.gz

Download URL android_camera_mcp-0.5.0.tar.gz
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e10bf0b13c2d725e555d50ffbd66560fdd0c3d03f72a84c1c06540a0bfef1535
BLAKE2b-256 checksum
How to use checksums
60e3ba0db9bebb979c5b042654fc86f03fb40833a6287aed33e838281f11d296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / android_camera_mcp-0.5.0-py3-none-any.whl

Download URL android_camera_mcp-0.5.0-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fd66db0de49032089a9f43534705572ce5f20d048a98e8878ca04cf07ecf2f1
BLAKE2b-256 checksum
How to use checksums
06fd3b842b4933ad9d835fcc74b4e66df9221ccb0d28e10cb5afa0670de11acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for android-camera-mcp 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for android_camera_mcp-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page