Skip to main content

element-mcp

Sub-10ms, zero-token local UI vision over MCP stdio for Android & iOS agents.

element-mcp locates 13 mobile UI element classes (button, text_input, checkbox, radio, toggle, icon, text_label, image, tab, list_item, card, dropdown, spinner) and returns device-scaled (x, y) tap coordinates plus compact prompt lists (215 tokens vs 1,545+ for cloud screenshot prompts, -86.1%).

  • Apache-2.0 clean-room: Trained exclusively on open-source UI libraries & Figma designs (4,000 train + 300 unseen-engine OOD screens).
  • Zero PyTorch at runtime: Lightweight onnxruntime + pillow + numpy engine (5.8 MB QDQ INT8 ONNX, 7.4 ms CPU p50 on Apple M5 Pro, 1.000 val / 0.891 OOD mAP@50) with automatic CoreML / CUDA / DirectML / CPU provider selection.
  • Zero-config weights: Automatically downloads & SHA-256 verifies v0.1.0 ONNX weights from Bradprobert/element on first run.
  • No ADB coupling: Returns coordinates only; your agent or device runner decides how to tap.

Install & Run

# Run directly with uvx
uvx element-mcp

# Or install with pip
pip install element-mcp
element-mcp

Optional CLI flags & environment overrides:

# Pre-fetch v0.1.0 INT8 weights + manifest.json into ~/.cache/element-mcp
element-mcp --download-weights

# Or point at a local exported weights directory
element-mcp --model-dir /path/to/element/figma-ui-trainer/artifacts/v0.1.0

Client Configuration (Claude Desktop / Cursor / Windsurf / Antigravity)

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

Or if installed via pip install element-mcp:

{
  "mcpServers": {
    "element": {
      "command": "element-mcp"
    }
  }
}

Exposed MCP Tools

  • find_interactable_elements: Accepts image_path or image_base64, optional device_width/device_height, platform (android | ios), scale_factor (3.0 for @3x iOS pt), min_confidence, merge, and output_format (compact | tap_only | json).
  • get_model_info: Reports loaded manifest.json, active ONNX Runtime execution provider, input shape ([384, 640]), and latency profile.
  • render_wireframe_svg: Returns an annotated SVG wireframe overlay of detected elements for visual debugging.

Metadata

Release files for element-mcp 0.1.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 element-mcp 0.1.0
File Size Uploaded Provenance Actions
element_mcp-0.1.0.tar.gz 13.6 kB With provenance Details for element_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for element-mcp 0.1.0
File Interpreter ABI Platform Actions
element_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for element_mcp-0.1.0-py3-none-any.whl

Total release size: 27.2 kB

Release files / element_mcp-0.1.0.tar.gz

Download URL element_mcp-0.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ede1e991ae85e19a8942328c8c21047bf9575f07c58b1428c2cfb205fa1da7b
BLAKE2b-256 checksum
How to use checksums
b7c826568ab14854925bb168749dbde3d3061d3a9a1b733699af64a5f5cf40f7
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 / element_mcp-0.1.0-py3-none-any.whl

Download URL element_mcp-0.1.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
219c91a35e8e0a2878a14e6932c0f520f34ad57b40db84e2a10a117498137c04
BLAKE2b-256 checksum
How to use checksums
ec3b015ff4b1dd5e70480fc5706107187167a5c2b9e38d26e302df84d44d9256
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 element-mcp 0.1.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 element_mcp-0.1.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.1.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