Android MCP Toolkit

Android MCP Toolkit

android-mcp-toolkit•bynam0101

A small MCP server for Android toolchain tasks such as SVG-to-VectorDrawable conversion, adb logcat access, and translation length difference estimation.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Converts SVG input or an SVG file into Android VectorDrawable XML, and can write the result to a specified output path.
  • •Reads adb logcat tails and can fetch crash logs, ANR logs, or clear logcat buffers, with optional package, PID, tag, and priority filters.
  • •Inspects the focused Android activity, captures the UI hierarchy as XML, saves screenshots, and simulates taps, text, swipes, and key events.
  • •Measures grapheme lengths of source and translated text and reports whether the percent change exceeds a configurable tolerance.

BEST FOR

  • •Turning SVGs exported from design tools into Android VectorDrawable XML for app resources.
  • •Debugging Android apps by capturing crashes and filtered logs without leaving an MCP client.
  • •Checking translated strings for risky length changes before layouts break.

ABOUT ANDROID-MCP-TOOLKIT

Android MCP Toolkit is cataloged as an MCP server attributed to nam0101. A small MCP server for Android toolchain tasks such as SVG-to-VectorDrawable conversion, adb logcat access, and translation length difference estimation. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Android MCP Toolkit are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8df31d387f5c · 采集于 2026-11-13 08:20:31 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Android MCP Toolkit for AI Agents

Small MCP server with three tools:

  • Fast SVG → Android VectorDrawable conversion (cached, file or inline).
  • adb logcat reader with package/pid/tag filters for quick crash triage.
  • Translation length difference estimator to flag risky length deltas before layout breaks.

Why this exists

The Mission: Bringing Native Android to the AI Agent Era

While the AI ecosystem flourishes with web-first tools, Android development often feels left behind. This MCP server is my answer to that gap—a dedicated bridge connecting AI Agents directly to the Android toolchain.

⚡ Zero-Friction Asset Conversion: Convert SVGs to VectorDrawables instantly without the overhead of launching Android Studio.

🔍 Direct Diagnostic Access: Empower agents to pull, filter, and analyze adb logcat streams (by package, PID, or tag) in real-time.

🤖 Agent-Native Architecture: Deliver structured, scriptable outputs that LLMs can parse and act upon efficiently.

🚀 Built for Extensibility: A solid foundation designed to grow, paving the way for future utilities like bitmap helpers and asset validation.

Pairing ideas

  • Figma MCP: grab SVGs from designs, feed to convert-svg-to-android-drawable to get XML for Android resources.
  • Debugging: while running the app, call read-adb-logcat with package name or tag to capture crashes and filtered logs without leaving the MCP client.

Previews

SVG to VectorDrawable

  • Figma request → SVG extraction
    Figma request via MCP
  • Flag conversion preview (single)
    Flag conversion preview
  • Batch flag review (side-by-side)
    Batch flag review
  • Batch run via MCP (console)
    Batch run via MCP

ADB logcat tool

  • Crash capture prompt (inputs + filters)
    Crash logcat prompt
  • Response preview (summarized logcat)
    Response gap prompt

Current tools

  • convert-svg-to-android-drawable

    • Inputs: svg (inline) or svgPath (file path). Optional: outputPath, floatPrecision (default 2), fillBlack (default false), xmlTag (default false), tint, cache (default true).
    • Output: VectorDrawable XML text; also writes to disk when outputPath is provided.
    • Performance: LRU cache (32 entries) keyed by SVG + options plus fast reuse in-session.
    • Converter: vendored fork in vendor/svg2vectordrawable with fixes for rgb()/rgba(), hsl()/hsla(), and named colors. Upstream license: vendor/svg2vectordrawable/LICENSE (MIT).
  • manage-logcat

    • Inputs:
      • action: read (default), crash, anr, or clear.
      • packageName: Optional. Resolves PID via adb shell pidof.
      • pid: Optional. Explicit PID.
      • tag: Optional. Filter by tag (e.g. MyApp).
      • priority: V, D, I, W, E, F, S (default V).
      • maxLines: Tail count (default 200, max 2000).
      • timeoutMs: Default 5000.
    • Behavior:
      • read: Fetches logcat tail.
      • crash: Fetches logcat -b crash.
      • anr: Fetches recent ActivityManager ANR logs + tail of /data/anr/traces.txt.
      • clear: clears logcat buffers.
  • get-current-activity

    • Inputs: timeoutMs (default 5000, max 15000).
    • Behavior: Inspects dumpsys window to find the currently focused app/window. Useful to verify state.
  • dump-ui-hierarchy

    • Inputs: timeoutMs (default 10000).
    • Behavior: Captures current UI hierarchy as XML via uiautomator.
  • take-screenshot

    • Inputs: outputPath (required), timeoutMs.
    • Behavior: Saves device screenshot to local file.
  • inject-input

    • Inputs: command (tap, text, swipe, keyevent, back, home), args (array), timeoutMs.
    • Optional: elementId or elementText (finds element center and taps it).
    • Behavior: Simulates user interaction suitable for testing flows.
  • estimate-text-length-difference

    • Inputs: sourceText (original), translatedText (to compare), tolerancePercent (default 30, max 500).
    • Behavior: Measures grapheme length of both strings, computes percent change, and reports whether it exceeds the tolerance (useful to catch translation length blowups that could break layouts).

Roadmap (planned)

  • Additional MCP tools for Android assets (e.g., batch conversions, validations, optimizers).
  • Optional resource prompts for common Android drawables/templates.

Quick start

  • npm install
  • npm run build
  • node dist/index.js (stdio MCP server)

Run via npx

  • Global: npx android-mcp-toolkit

Use in Cursor (MCP config)

Add to your Cursor settings JSON:

{
  "mcpServers": {
    "android-mcp-toolkit": {
      "command": "npx",
      "args": [
        "-y",
        "android-mcp-toolkit"
      ]
    }
  }
}

The npx call downloads the published package; no local path required.

Quick install via Cursor deep link:

  • cursor://anysphere.cursor-deeplink/mcp/install?name=android-mcp-toolkit&config=eyJjb21tYW5kIjoibnB4IC15IGFuZHJvaWQtbWNwLXRvb2xraXQifQ%3D%3D

Examples

  • Input SVG: sample_svg.svg
  • Output VectorDrawable: examples/sample_svg.xml

Notes

  • Transport: stdio via @modelcontextprotocol/sdk.
  • Base deps kept minimal; everything needed to convert SVGs is vendored/included.

Contact

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Android MCP Toolkit from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/android-mcp-toolkit)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools