mcp-android-server-python copilot-instructions.md

Instructions for an MCP server that lets an AI agent control Android devices through uiautomator2. MCP is a way for an agent to discover and use external tools.

In plain words
What is it for?
Use it to check the server and ADB, connect to devices, inspect installed or active apps, start and stop apps, control the screen, unlock devices, and press hardware keys.
Why use it?
It gives the agent a clear list of device-control actions instead of requiring each action to be described from scratch.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/nim444/mcp-android-server-python/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/nim444/mcp-android-server-python

Made for: GitHub Copilot.

Per session 590 This file is loaded in full into every session.
When invoked 590 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00590 $0.00590
Opus 5 $0.00295 $0.00295
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 2d ago against content hash d4da36d02f28, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-android-server-python copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP Android Agent

This project provides an MCP (Model Context Protocol) server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.

Available MCP Tools

Tool Name Description
mcp_health Check if the MCP server is running properly
connect_device Connect to an Android device and get basic info
get_installed_apps List all installed apps with version and package info
get_current_app Get info about the app currently in the foreground
start_app Start an app by its package name
stop_app Stop an app by its package name
stop_all_apps Stop all currently running apps
screen_on Turn on the screen
screen_off Turn off the screen
get_device_info Get detailed device info: serial, resolution, battery, etc.
press_key Simulate hardware key press (e.g. home, back, menu, etc.)
unlock_screen Unlock the screen (turn on and swipe if necessary)
check_adb Check if ADB is installed and list connected devices
wait_for_screen_on Wait asynchronously until the screen is turned on
click Tap on an element by text, resourceId, or description
long_click Perform a long click on an element
send_text Input text into currently focused field (optionally clearing before)
get_element_info Get info on UI elements (text, bounds, clickable, etc.)
swipe Swipe from one coordinate to another
wait_for_element Wait for an element to appear on screen
screenshot Take and save a screenshot from the device
scroll_to Scroll until a given element becomes visible
drag Drag an element to a specific screen location
get_toast Get the last toast message shown on screen
clear_app_data Clear user data/cache of a specified app
wait_activity Wait until a specific activity appears
dump_hierarchy Dump the UI hierarchy of the current screen as XML

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 39 lines · 590 tokens per session scan A d4da36d02f28

Subscribe to this mod's changes

mcp-android-server-python copilot-instructions.md is an instructions file published in the GitHub repository nim444/mcp-android-server-python (59 stars, last pushed 9mo ago), licensed MIT. It adds 590 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories