home / mcp / specter mcp server
Provides a diagnostic and execution engine to build, test, debug, and interact with Android/iOS apps via MCP.
Configuration
View docs{
"mcpServers": {
"abd3lraouf-specter-mcp": {
"command": "specter-mcp",
"args": [],
"env": {
"SPECTER_DEBUG": "true",
"SPECTER_TIMEOUT": "60000",
"ANDROID_SDK_ROOT": "/path/to/android/sdk",
"SPECTER_LOG_LEVEL": "debug",
"SPECTER_IOS_DEVICE": "booted",
"SPECTER_ANDROID_DEVICE": "emulator-5554"
}
}
}
}Specter MCP is a diagnostic and execution engine that empowers AI agents to build, test, debug, and interact with Kotlin Multiplatform Mobile apps. It acts as the hands and eyes for your AI assistant, enabling actions like building apps, running tests, inspecting UI and app state, and analyzing crashes across Android and iOS.
You will connect an MCP client to Specter MCP to orchestrate mobile development tasks. Use it to build apps, run tests, capture UI context, inspect logs and app state, and drive automated E2E flows. The available commands expose functions such as building apps, launching them on devices, taking UI screenshots, and running Maestro test flows.
Prerequisites you need on your machine:
node --version)adb --version)xcrun --version)maestro --version)Choose your installation path below and follow the commands exactly.
# Option 1: Install the MCP client globally (recommended)
npm install -g specter-mcp
# Option 2: Install from source
# 1) Clone the repository
# 2) Install dependencies and build
# 3) Run the built server (see configuration for how to start)
# Quick setup for Android/iOS prerequisites (macOS shown as example)
export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk"
export PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools"
# macOS iOS tooling (if not already installed)
xcode-select --install
sudo xcodebuild -license accept
# Maestro (optional, for E2E tests)
curl -Ls "https://get.maestro.mobile.dev" | bashSpecter MCP can be run as a local stdio server or connected via a remote MCP endpoint. You can configure paths and environment variables to tailor how Specter communicates with your development environment.
Choose one of the following configuration snippets to connect your MCP client to Specter MCP.
{
"mcpServers": {
"specter_mcp": {
"command": "specter-mcp",
"args": []
}
}
}Configure debugging and platform specifics via environment variables. Common variables include enabling debug logs and pointing to your Android SDK path.
{
"env": {
"SPECTER_DEBUG": "true",
"SPECTER_LOG_LEVEL": "debug",
"ANDROID_SDK_ROOT": "/path/to/android/sdk"
}
}If you encounter path or tool issues, verify prerequisites and ensure the MCP client can execute the server binary. Re-check Android and iOS toolchains and confirm that the correct paths are set in your environment.
Build Android/iOS app (debug/release)
Install APK or .app on device
Launch installed app
Screenshot + UI hierarchy
Tap, swipe, input text
Run unit tests
Run Maestro E2E flows
Run Detekt, SwiftLint, ktlint
List emulators/simulators
Boot/shutdown devices
Clean build caches
Parse crash logs, symbolicate
Filter device logs
Read prefs, databases
Open deep links