Dev Tools for Android (DTA) MCP logo

Dev Tools for Android (DTA) MCP

Community
yamsergey

MCP server which expose Android's app runtimes to coding agents.

Publisheryamsergey
Repositorydta
LanguageJava
Forks
3
Stars
51
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Dev Tools for Android (DTA) MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    51 stars and 3 forks from the linked repository.

Development Tools for Android (DTA)

Maven Central JetBrains Marketplace Snyk Security

A toolkit that gives AI assistants direct access to Android devices through the Model Context Protocol. Your coding agent can see the screen, read network traffic, inspect layout trees, mock responses, and interact with the app — from Android Studio, the terminal, or any MCP client.

Video overview

Article: Debugging Android Apps with AI

Quick Start

Option A: Android Studio Plugin

Or: Settings → Plugins → Marketplace → search "DTA"

The plugin embeds the daemon, auto-injects sidekick into debug builds, and provides a 4-tab inspector (Layout, Network, WebSocket, MCP) — no CLI or manual setup needed.

Option B: CLI

bash
brew tap yamsergey/packages
brew install dta-cli

Requirements: Java 21+

Auto-inject (recommended)

No project changes needed. Use the CLI or the MCP run_app tool to build and launch your app with sidekick injected automatically:

bash
dta-cli run --project /path/to/your/android/project

This runs Gradle with an init script that adds dta-sidekick as a debugImplementation dependency, builds the APK, installs it on the device, and launches the main activity. Your AI assistant can do the same via the run_app MCP tool.

Manual (alternative)

If you prefer to add sidekick to your build files directly:

gradle
dependencies {
    debugImplementation 'io.github.yamsergey:dta-sidekick:0.9.36'
}

Sidekick auto-initializes via AndroidX Startup — no code changes beyond the dependency.

Connect your AI assistant

With the AS plugin: open the MCP tab, enable the server, pick your agent from the dropdown — it shows the exact config snippet to copy-paste. Works with Claude Code, Cursor, Android Studio Gemini, Claude Desktop, VS Code, and others.

Without the plugin (CLI only):

Claude Code

bash
claude mcp add dta -- dta-cli mcp

Cursor

Add DTA to Cursor

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "dta": {
      "command": "dta-cli",
      "args": ["mcp"]
    }
  }
}

What Can Your Agent Do?

Screen Analysis

DTA returns the real UI hierarchy — view classes, bounds, positions, layout parameters, Compose-specific data (composable names, recomposition counts), and DOM trees from WebViews and Chrome Custom Tabs. Unlike adb shell uiautomator dump which gives a semantic accessibility tree, your agent gets the full picture.

Network Analysis

Sidekick auto-records from app launch — HTTP requests (OkHttp), WebSocket connections, Chrome Custom Tab traffic, and WebView network requests. No "start recording" button, no missed requests. Your agent can query the full history at any point.

Mocking

Create mock rules for HTTP and WebSocket from captured data or from scratch. Plug in custom adapters for programmatic control:

kotlin
Sidekick.configure(
    SidekickConfig.builder()
        .httpMockAdapter { transaction, proposedResponse ->
            proposedResponse.withBody("""{"message": "mocked"}""")
        }
        .build()
)

Build & Launch

The run_app tool builds an APK with sidekick auto-injected, installs it, and launches the main activity — all from a single MCP call. No manual Gradle setup. If the tool is blocked by your environment's sandbox, it returns the exact shell commands as a fallback.

Verification

The agent can tap, swipe, input text, and press keys — then check the screen state and network traffic to confirm behavior. A full inspect-mock-interact-verify loop without leaving the conversation.

Android Studio Plugin

The DTA Inspector tool window provides four tabs:

TabFeatures
LayoutUI tree + device screenshot with hover highlighting, click-to-select, bidirectional selection sync
NetworkHTTP request table with headers, bodies, timing; Custom Tab + WebView traffic
WebSocketConnection list → message list → message detail
MCPEnable HTTP server, pick port, per-agent config snippets with copy-to-clipboard

The plugin auto-injects dta-sidekick into debug builds via a Gradle init script — no changes to your project files.

Inspector Web Interface

bash
dta-cli inspector-web

Open http://localhost:8080 for visual inspection with the same capabilities — layout tree, network, WebSocket, mock rule editor.

The web inspector enables bidirectional communication between developer and agent — select elements with a click instead of describing them in words.

MCP Transports

TransportCommandUse case
stdiodta-cli mcpClaude Desktop, Cursor, any stdio MCP client
HTTPdta-cli mcp serve --http --port 12321AS Gemini, Claude Code HTTP, any Streamable HTTP client
PluginEnable in MCP tabHTTP server embedded in AS, no CLI needed

Modules

ModuleDescription
dta-pluginAndroid Studio plugin (4-tab inspector + embedded daemon + MCP server)
dta-cliCLI interface (mcp, inspector-web, run, inspect commands)
dta-mcpMCP server (stdio + HTTP transport, tool definitions)
dta-daemonJavalin HTTP daemon (sidekick connection, CDP watcher, layout enrichment)
dta-sidekickIn-app inspection library (Android AAR, auto-init via AndroidX Startup)
tools-androidCore Gradle Tooling API integration
workspace-kotlinworkspace.json converter for Kotlin Language Server

CLI Reference

bash
dta-cli --help
dta-cli <command> --help

License

Apache License 2.0 — see LICENSE.txt

Use Dev Tools for Android (DTA) MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Dev Tools for Android (DTA) MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Dev Tools for Android (DTA) MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Dev Tools for Android (DTA) MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "dta": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Dev Tools for Android (DTA) MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Dev Tools for Android (DTA) MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Dev Tools for Android (DTA) MCP to help me with this task?
Dev Tools for Android (DTA) MCP
Sure. I read it.
Here is what I found using Dev Tools for Android (DTA) MCP.

Frequently asked questions

What is the Dev Tools for Android (DTA) MCP MCP server used for?

Dev Tools for Android (DTA) MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Dev Tools for Android (DTA) MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Dev Tools for Android (DTA) MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Dev Tools for Android (DTA) MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Dev Tools for Android (DTA) MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Dev Tools for Android (DTA) MCP MCP to TypingMind?

Dev Tools for Android (DTA) MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Dev Tools for Android (DTA) MCP MCP provide in TypingMind?

Dev Tools for Android (DTA) MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Dev Tools for Android (DTA) MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Dev Tools for Android (DTA) MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇