
admcp - Android Debug MCP
io.github.dima-xd由 GitHub 帳號 dima-xd 發布v1.0.0更新於 Nov 1, 2026
Local-first MCP server for Android debugging via ADB, JDI, LLDB, and Flutter.
概覽
本機 MCP 伺服器,讓 AI 助理透過 ADB、JDI、LLDB 與 Flutter 在實機或模擬器上檢視、操作並偵錯 Android 應用程式。
- 可以做什麼
- 列出並檢視裝置、探測工具鏈、開啟與描述工作區
- 建置、安裝並啟動應用程式,管理偵錯工作階段
- 檢視 UI 與 Compose 無障礙樹,尋找元素、點擊操作並截圖
- 啟動、查詢、停止並統計 logcat,包含當機訊號
- 連接 Java/Kotlin JDI、原生 LLDB 或 Flutter DAP 偵錯器,設定中斷點、單步執行、查看呼叫堆疊、變數與暫存器並求值運算式
- 擷取 Perfetto 追蹤與堆積傾印,取得、預覽並分析產出物與診斷資訊
- 適用情境
- 適合讓代理在已連接的 Android 實機或模擬器上重現問題、驗證介面變更、讀取當機記錄或單步偵錯,而不必由人在 Android Studio 中逐步點擊。鎖定 Android 開發者、代理建構者,以及需要可重現裝置證據的 QA 流程。
- 執行需求
- 以本機程序執行於 Windows、Linux 或 macOS,需要 JDK 21 與 Android SDK platform-tools(adb);多數工具還需連接裝置或模擬器。Flutter SDK、NDK 的 lldb/lldb-server 與 lldb-dap 為選用。透過 --platform-tools、--artifacts、--trust-workspace 等命令列選項設定。不需雲端帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 admcp - Android Debug MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
admcp
[admcp - Android debugging for AI agents]
admcp is a local-first Model Context Protocol (MCP) server for Android development. It connects any MCP stdio client to a real device or emulator and exposes 51 typed tools for UI inspection, screenshots, logcat, Java/Kotlin JDI debugging, native LLDB, Flutter/Dart DAP, Compose inspection, Perfetto traces, heap dumps, artifacts and evidence-based diagnostics.
No root. No cloud account required.
[MCP] [Android] [JDK] [Tools] [License]
Quick start | What it can do | Example prompts | Why admcp | Documentation
Status: v1, 51 tools, live-tested on a OnePlus CPH2747 (API 36, arm64-v8a). Full evidence and remaining limits: implementation status.
Quick start
- Install JDK 21 and Android SDK platform-tools (
adb). - Download
admcp-<version>.zipfrom GitHub Releases and unzip it. MCPB-compatible clients can installadmcp-<version>.mcpbfrom the same release instead. - Point your MCP client at
bin/admcp.baton Windows orbin/admcpon Linux and macOS.
Any MCP stdio client can use it. The JSON below uses the common mcpServers
shape; adapt the command and arguments to your client (Claude Code, Cursor,
VS Code, Codex, Gemini CLI, and similar).
On Linux and macOS, use /opt/admcp/admcp-<version>/bin/admcp as command.
Verify the install:
On Linux and macOS:
You should see catalog=51 registered=51 version=<version> on stderr. The
server then speaks MCP over stdio; stdout is reserved for protocol traffic.
What it can do
The full 51-tool contract is in docs/architecture/mcp-tool-catalog-v1.md. The catalog is validated by contract tests.
Example prompts
Once admcp is connected, ask your agent things like:
Why admcp
Many Android MCP tools are thin command wrappers. admcp keeps device, workspace, process and session state together, then exposes debugging primitives with typed schemas, artifacts and safety gates.
It is for:
- Android developers who want Claude Code, Cursor or another agent to inspect and debug a real device.
- Agent builders who need stable, typed Android actions instead of parsing adb strings.
- QA and automation workflows that need reproducible evidence from a device.
Android Studio is the better tool for a human sitting at the IDE. admcp is for the agent that needs to inspect, act and debug without a human driving every click.
How it works
The server runs on your machine next to the Android toolchain. It does not upload your project or device data anywhere.
Verified
186tests with0failures on the verified host.- The catalog registers all
51tools over MCP stdio. - Live device: OnePlus CPH2747, API 36, arm64-v8a.
- JDI: attach, breakpoints, step, stack, locals and read-only evaluation.
- LLDB: attach, breakpoints, stack, registers, bounded memory reads and modules.
- Flutter:
DART_DAPbreakpoints, stack, variables, step, pause and detach. - Compose: accessibility-tree inspection and verified UI actions.
- Performance: Perfetto capture/analysis and HPROF heap-dump capture.
- Evidence: logcat, crash buffer, artifacts, session timeline and diagnostics.
Device-dependent integration tests skip when no device is attached. See implementation status for the full acceptance evidence.
Requirements
- JDK 21.
- Android SDK platform-tools (
adb). - Windows, Linux or macOS.
- Optional: Android CLI, Flutter SDK, NDK
lldb/lldb-server,lldb-dapand a connected device or emulator.
Only debuggable developer builds are supported. Root and Android security bypasses are out of scope.
Build from source
Build, test and package from source
The Gradle wrapper is checked in; no local Gradle install is required.
Windows:
Linux and macOS:
The installable distribution is written to
app/admcp/build/install/admcp/. The release archive is built with
:app:admcp:distZip and written to
app/admcp/build/distributions/admcp-<version>.zip.
Releases are automated with semantic-release from Conventional Commits on
pushes to main or master: fix: is a patch release, feat: is a minor
release and BREAKING CHANGE: is a major release. No release PR or changelog is
generated.
Configuration
workspace_trust only succeeds for a canonical root passed to the server at
startup with --trust-workspace. A tool argument cannot self-assert approval.
Known limitations
- The verified device is a OnePlus CPH2747 on API 36; other OEM, API and transport combinations are not claimed.
- Simultaneous JDI and LLDB inspection is not reliable on the verified device.
Sequential switching works with
debug_attach(switchBackend=true). - Compose
TREEuses the accessibility hierarchy. Internal semantics, slot table and recomposition data require app instrumentation. - No host
trace_processor_shellis bundled, so trace analysis returns a bounded summary unless Perfetto SQL tooling is installed. - Crashlytics issue clusters require
android auth login; the local crash buffer remains the default evidence source. - Native LLDB needs a separately installed
lldb-dapand an ABI-matchedlldb-server. - The host confirmation dialog requires an interactive desktop. Headless servers fail closed to a one-shot token.
See implementation status for details and exact error behavior.
Security
- Only debuggable developer builds are supported.
- Project-controlled code runs only after an explicit workspace trust grant.
- Destructive UI actions require host confirmation or a one-shot token bound to the session and action.
- Artifact reads are confined to the store root, capped and redacted by default.
- The server is local-first: no cloud account is required.
Documentation
- Technical design
- Implementation status
- Tool catalog (Markdown)
- Tool catalog (JSON)
- MCP Registry publishing
Contributing
Issues and pull requests are welcome. The public tool catalog is versioned;
open an issue before adding or renaming a public tool. Run gradlew test
before sending a PR.
If admcp saves your agent time, a star helps more Android developers find it.
License
Apache License 2.0. See LICENSE.
來源:README.md,提交 94e5006
工具
0版本歷史
1- v1.0.0最新Nov 1, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分