convert-svg-to-android-drawable
Convert SVG markup or files into Android VectorDrawable XML quickly, optionally writing to disk.
Convert an SVG into a VectorDrawable, flag a translation that will overflow its layout, and read the screen, the logs and the ANRs off a handset — from one Android toolkit of 7 tools.
LABSCO SUMMARY
The device half is deliberately consolidated: manage-logcat covers reading, crash capture, ANR checks and clearing behind one action parameter, and inject-input covers taps, text, swipes and key events either by raw command or by element. estimate-text-length-difference is the unusual one — it sets translated text against the source with a tolerancePercent defaulting to 30%, which catches an overflowing string at the point it is written rather than after someone screenshots the broken screen.
An Android toolkit that puts two build-side jobs — asset conversion and localisation length — next to device inspection over logcat, dumpsys and uiautomator.
A connected Android device or emulator for the logcat, dumpsys, uiautomator, screenshot and input tools; each of those takes a timeoutMs and acts on the attached device. The SVG conversion and the translation length check need neither — they work on markup, file paths and strings. No credentials.
One command — npx -y android-mcp-toolkit
USE CASES
Hand over the SVG markup or a file path and take back VectorDrawable XML, tinted or forced to black fill, written where the resources live.
Compare the translated string against the source before it ships, with the tolerance set to whatever your tightest screen can actually absorb.
Pull the ANR check and the crash lines out of logcat, confirm which window actually had focus, and keep the screen as a file for the ticket.
Dump the hierarchy as XML, pick out the element you want, and send the tap, the text or the key event to it by ID rather than by coordinates.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
convert-svg-to-android-drawableConvert SVG markup or files into Android VectorDrawable XML quickly, optionally writing to disk.
dump-ui-hierarchyCapture the current UI hierarchy as XML using uiautomator.
estimate-text-length-differenceCompare original and translated text lengths to detect layout risk; configurable tolerancePercent (default 30%).
get-current-activityInspect current focused app/window via dumpsys window.
inject-inputSimulate user input interactions (tap, text, swipe, keyevents) or click by UI element.
manage-logcatUnified tool to read logs, capture crashes, check ANRs, and clear buffers.
take-screenshotCapture device screenshot and save to a local file.
BEFORE YOU INSTALL
7 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"android-mcp-toolkit": {
"command": "npx",
"args": [
"-y",
"android-mcp-toolkit"
]
}
}
}npx -y android-mcp-toolkit