Android Camera MCP

v0.5.0
io.github.sinhsac/android-camera-mcp Checked 4 days ago Published 4 days ago

Private LAN-first Android remote camera for AI agents: 15 tools, on-device OCR & controls.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

camera_list

List connected Android camera agents, online status and capabilities. Call this before any capture. Devices without a recent heartbeat are marked offline.

camera_info

Detailed info for a device: per-camera capabilities (zoom range, exposure range, flash, manual focus), active camera, stream, queue, battery/thermal and pending commands.

ParameterTypeDescription
device_id *string

camera_status

Ask the phone for its live state: idle/capturing/streaming, active camera, battery, charging, thermal status and app uptime.

ParameterTypeDescription
device_id *string

camera_capture

Capture a JPEG still, optionally cropped on the phone, and return it. Calls are queued per phone; a capture within ~1.5 s of the previous one waits for the cooldown automatically. Size: the image is downscaled to fit within max_dimension on its long edge (default 1600) and within width x height if given. Aspect ratio is kept and the image is never upscaled. Use max_dimension=0 for the full sensor resolution (large and slow). camera_id: switch to this camera before capturing (see camera_info). flash_mode: off | auto | on (if the c…

ParameterTypeDescription
device_id *string
camera_id
crop_h
crop_w
crop_x
crop_y
exposure_compensation
flash_mode
focus_mode
height
jpeg_qualityinteger
max_dimensioninteger
preset
torch
width
zoom_ratio

camera_preview

Fast low-resolution frame (default 640 px long edge) to check framing before a full capture. Taken from the live camera feed without the still-capture sequence, so it is much faster than camera_capture. max_dimension: 160-1280. crop_*: optional normalized ROI cropped on the phone (same coords as camera_capture) — useful to verify a region before a high-res crop.

ParameterTypeDescription
device_id *string
crop_h
crop_w
crop_x
crop_y
jpeg_qualityinteger
max_dimensioninteger

camera_analyze

On-device scene analysis: OCR, barcodes and exposure/focus hints. Runs entirely on the phone (ML Kit). By default returns structured text only — no JPEG — so it is cheap to call often. text_blocks / barcodes include normalized boxes (x,y,w,h in 0..1) you can pass to camera_capture as crop_* to fetch a high-res ROI. stats.exposure is dark|ok|bright; stats.focus is blurry|soft|sharp. still=true forces a full still instead of a live preview frame. include_image=true also returns the analyzed JPEG (larger payload).

ParameterTypeDescription
device_id *string
barcodesboolean
crop_h
crop_w
crop_x
crop_y
include_imageboolean
max_dimensioninteger
ocrboolean
statsboolean
stillboolean

camera_stream_start

Start a temporary low-FPS preview stream. Then read frames with camera_stream_frame and end with camera_stream_stop. fps: 0.2-5. max_dimension: 160-1280. duration_s: 5-300 (auto stop). idle_timeout_s: 5-120; the stream stops when no frame is requested for this long. The gateway only keeps the newest frame.

ParameterTypeDescription
device_id *string
duration_snumber
fpsnumber
idle_timeout_snumber
jpeg_qualityinteger
max_dimensioninteger

camera_stream_frame

Newest frame of the active stream. after_sequence: pass the sequence of the last frame you saw to wait (up to wait_s, max 30) for a newer one. Omit it to get the latest frame immediately.

ParameterTypeDescription
device_id *string
after_sequence
wait_snumber

camera_stream_stop

Stop the preview stream. Safe to call when nothing is streaming.

ParameterTypeDescription
device_id *string

camera_set_zoom

Set the zoom ratio on the active camera. The phone clamps it to the supported range (see zoom_range in camera_info; values below 1.0 are possible on cameras with an ultra-wide range).

ParameterTypeDescription
device_id *string
zoom_ratio *number

camera_set_torch

Enable or disable the torch (continuous light) on the active camera.

ParameterTypeDescription
device_id *string
enabled *boolean

camera_set_flash

Set flash mode for later captures: off | auto | on.

ParameterTypeDescription
device_id *string
mode *string

camera_set_focus

Set focus mode. continuous: camera keeps focusing on its own (default). auto: run one autofocus scan at the image center now. manual: fixed focus; distance 0.0 = infinity (far) ... 1.0 = closest focus distance. Only works if camera_info shows manual_focus=true for the active camera; otherwise UNSUPPORTED_CONTROL is returned.

ParameterTypeDescription
device_id *string
distance
modestring

camera_set_exposure

Set exposure compensation in EV steps (range in camera_info), or omit the value to return to 0 (plain auto exposure).

ParameterTypeDescription
device_id *string
exposure_compensation

camera_select_lens

Switch the active camera/lens. camera_id must be one listed in camera_info (cameras[].id). Capabilities are refreshed after the switch.

ParameterTypeDescription
camera_id *string
device_id *string