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,000train +300unseen-engine OOD screens). - Zero PyTorch at runtime: Lightweight
onnxruntime+pillow+numpyengine (5.8 MBQDQ INT8 ONNX,7.4 msCPU p50 on Apple M5 Pro,1.000val /0.891OOD mAP@50) with automaticCoreML/CUDA/DirectML/CPUprovider selection. - Zero-config weights: Automatically downloads & SHA-256 verifies
v0.1.0ONNX weights fromBradprobert/elementon 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: Acceptsimage_pathorimage_base64, optionaldevice_width/device_height,platform(android|ios),scale_factor(3.0for@3xiOS pt),min_confidence,merge, andoutput_format(compact|tap_only|json).get_model_info: Reports loadedmanifest.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.
Links
- GitHub Repository: https://github.com/Bradprobert/element
- Live Interactive Showcase: https://bradprobert.github.io/element/
- Pre-Trained Weights (
v0.1.0): https://github.com/Bradprobert/element/releases/tag/v0.1.0
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.