replicant-mcp
io.github.thecombatwombat由 GitHub 账号 thecombatwombat 发布v1.6.7更新于 Oct 24, 2026
Android MCP server for AI-assisted development. Build, test, emulate, and automate.
概览
让 AI 助手在模拟器或已连接设备上构建、测试、安装并操作 Android 应用。
- 可以做什么
- 这是一个 Android 开发用 MCP 服务器,可构建 APK 与 bundle、运行单元测试和仪器化测试,并管理模拟器(创建、启动、停止、清除数据、快照)。它能安装、启动应用并清除应用数据,按包名、标签、级别和时间过滤 logcat,还提供以无障碍树优先的 UI 自动化,例如按文本查找元素、点击、输入文本和截图。此外可做环境健康检查,并通过渐进式披露控制 token 消耗。
- 适用场景
- 适合让助手直接在 Android 项目中工作:编译与测试构建、在模拟器或设备上复现 UI 流程、查看过滤后的日志、排查崩溃,而无需复制粘贴命令输出。最适合已经配置好 Android 工具链的开发者。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js 18+。需要 Android SDK,且 adb 与 emulator 在 PATH 中,或设置 ANDROID_HOME;构建工具需要带 gradlew 的项目。可选环境变量 REPLICANT_CONFIG、REPLICANT_LOG_LEVEL、REPLICANT_LOG_FORMAT 用于配置与日志。仅支持桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 replicant-mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
replicant-mcp
Let AI build, test, and debug your Android apps.
[CI] [npm] [Node.js] [License: MIT] [Ask DeepWiki] [replicant-mcp MCP server]
replicant-mcp is a Model Context Protocol server that gives AI assistants like Claude the ability to interact with your Android development environment. Build APKs, launch emulators, install apps, navigate UIs, and debug crashes—all through natural conversation.
Demo
Why replicant-mcp?
Features
Coming Soon
- Custom build commands (project-specific overrides, auto-detect gradlew)
- Video capture (start/stop recording, duration-based capture)
Quick Start
Prerequisites
- Node.js 18+
- Android SDK with
adbandemulatorin your PATH - An Android project with
gradlew(for build tools)
Installing prerequisites (macOS via Homebrew)
If you don't already have these tools, install them with Homebrew:
Node.js 18+
Physical-device only — just adb, sufficient if you never run an emulator:
adb lands directly on your PATH; no further config needed.
Full Android SDK — needed for emulator workflows or building APKs via the gradle-* tools. Run the steps in order:
Persist ANDROID_HOME and put the SDK binaries on your PATH by appending to ~/.zshrc (or ~/.bashrc):
Installation
After installation, run the built-in diagnostics to verify your environment:
Updating
Setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Claude Code
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
OpenAI Codex CLI
Add to ~/.codex/config.toml:
Or via CLI:
Note: Ensure
adbandemulatorare in your PATH, or setANDROID_HOMEenvironment variable. On macOS:~/Library/Android/sdk, on Linux:~/Android/Sdk.
Example
Design
replicant-mcp uses progressive disclosure (summaries first, details on demand) to minimize token usage, and accessibility-first UI automation for faster, cheaper, more reliable interactions than screenshot-based approaches. See docs/architecture.md for details.
More Info
- Configuration: Set
REPLICANT_CONFIGfor advanced options. See docs/configuration.md. - Logging: Set
REPLICANT_LOG_LEVEL(error,warn,info,debug) andREPLICANT_LOG_FORMAT(jsonfor structured output) to control server logging. Logs are written to stderr. - Troubleshooting: Common issues and solutions in docs/troubleshooting.md.
- Tool documentation: Ask Claude to call
rtfmwith a category like "build", "adb", "emulator", or "ui".
Documentation
Contributing
See CONTRIBUTING.md for development setup and guidelines.
Acknowledgments
- Inspired by xc-mcp for iOS
- Built on the Model Context Protocol
License
Questions? Open an issue
来源:README.md,提交 9d24a45
工具
0版本历史
1- v1.6.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分