Logotipo de Native Devtools

Native Devtools

Organización
vectora-foundry

MCP server for computer use & browser automation - screenshot, OCR, click, type, find_text, Chrome/Electron CDP, template matching. macOS, Windows & Android. Works with Claude, Cursor, and any MCP client.

Editorvectora-foundry
Repositorionative-devtools-mcp
IdiomaRust
Forks
16
Estrellas
133
Herramientas disponibles
0
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Native Devtools ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    133 estrellas y 16 forks en el repositorio enlazado.

native-devtools-mcp

An MCP server for computer use on native desktop and mobile apps — macOS, Windows, Android, and Chrome/Electron via CDP.

Version License Platform Downloads

Add to your client in one click:

Add to Cursor Install in VS Code

Claude Code: claude mcp add native-devtools -- npx -y native-devtools-mcp

native-devtools-mcp gives AI agents and MCP clients direct control over native desktop apps, Chrome/Electron browsers, and Android devices — screenshots, OCR, accessibility-first element lookup, input simulation, window management, Chrome DevTools Protocol (CDP), and ADB — all in one local server. Works with Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.

Quickstart

bash
npx -y native-devtools-mcp

🚀 Features

  • 👀 Computer Vision: Screenshots of screens, windows, or regions with built-in OCR (Vision on macOS, Windows Media OCR on Windows).
  • 🖱️ Input Simulation: Click, drag, scroll, type — global coordinates, window-relative, and screenshot-relative targeting.
  • 🎯 Element-Precise AX Dispatch (macOS): take_ax_snapshot → ax_click / ax_set_value / ax_select — dispatch against Accessibility-tree elements without moving the mouse or stealing focus. The preferred path for native macOS apps.
  • 🌐 Browser Automation (CDP): Chrome DevTools Protocol for Chrome and Electron apps (Signal, Discord, VS Code, Slack) — DOM-level click, fill, navigate, and JS evaluation without a separate Node.js server.
  • 📱 Android (ADB): Screenshots, uiautomator-based text lookup, input, and app management over USB or Wi-Fi.
  • 🧩 Template Matching: load_image + find_image for icons, toggles, and custom controls OCR can't identify.
  • 🪟 Window Management: List, focus, launch, and quit apps; record windows as timestamped JPEG frames.
  • 🔍 Hover Tracking: Observe user navigation patterns with dwell-filtered hover events — designed for LLMs watching a user work.
  • 🔒 Local & Private: 100% local execution. Screenshots and input never leave your machine.

🧭 Three Approaches to Interaction

Pick the approach that matches your target app.

ApproachBest forKey tools
Visual (universal)Any app — games, Qt, custom renderers, anything without an AX treetake_screenshot, find_text, click, type_text, find_image
AX Dispatch (macOS — preferred for native macOS apps)AppKit / SwiftUI apps — System Settings, Finder, Mail, Xcode, Notestake_ax_snapshot, ax_click, ax_set_value, ax_select
CDP (Chrome / Electron)Web content, Electron apps with --remote-debugging-portcdp_connect, cdp_find_elements, cdp_take_dom_snapshot, cdp_click, cdp_fill

For macOS native apps, AX Dispatch is the preferred path — it's element-precise, doesn't move the mouse, and doesn't steal focus. See the Native App AX Dispatch recipe.

There's also a fourth, niche path: AppDebugKit (app_connect / app_query / app_click) for apps instrumented with the AppDebugKit library. Mostly useful for developers testing their own apps.

🆚 How it compares

The most honest peers are other MCP servers for computer use. This table compares native-devtools-mcp against the leading MCP servers and two widely used non-MCP libraries.

Capabilitynative-devtools-mcpPlaywright MCPWindows-MCPAppiumpywinauto
Native macOS apps✅ AX + screenshots❌ browser only❌ Windows only❌ mobile focus❌ Windows only
Native Windows apps✅ UIA + input❌ browser only✅◐ limited✅
Web / DOM automation✅ via CDP✅◐ via Windows UIA◐ mobile-web❌
Electron apps✅ CDP + AX✅ first-class _electron◐ if UIA exposed❌◐ if UIA exposed
Android devices (ADB)✅ built-in◐ experimental❌✅ first-class❌
MCP-native✅✅✅❌❌
Local, no API key✅✅✅✅ self-hosted✅

Where native-devtools-mcp stands out: one local MCP server covering macOS + Windows + Chrome/Electron (CDP) + Android in the same session, plus element-precise macOS AX dispatch that doesn't move the cursor or steal focus.

Honest limits:

  • No Linux (contributions welcome — see Linux Desktop MCP for an AT-SPI2-based alternative in the meantime)
  • Browser automation is Chrome / Electron only via CDP — no Firefox, no WebKit (for those, use Playwright MCP)
  • Headed only — depends on real-machine permissions; not a headless CI test grid
  • No iOS

If you need just web automation, Playwright MCP is more mature. If you need just mobile (iOS + Android + deep device features), Appium is more mature. This server is for the cross-cutting native-desktop + Chrome/Electron + Android case.

📦 Installation

The install steps are identical on macOS and Windows.

Option 1: Run with npx (no install needed)

bash
npx -y native-devtools-mcp

Option 2: Global install

bash
npm install -g native-devtools-mcp

Option 3: Build from source (Rust)

Using the build script (clones, builds, and runs setup):

bash
curl -fsSL https://raw.githubusercontent.com/sh3ll3x3c/native-devtools-mcp/master/scripts/build-from-source.sh | bash

Or manually:

bash
git clone https://github.com/sh3ll3x3c/native-devtools-mcp
cd native-devtools-mcp
cargo build --release
# Binary: ./target/release/native-devtools-mcp

Manual configuration (without the setup wizard)

macOS — Claude Desktop

Config file: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "native-devtools": {
      "command": "/Applications/NativeDevtools.app/Contents/MacOS/native-devtools-mcp"
    }
  }
}

Windows — Claude Desktop

Config file: %APPDATA%\Claude\claude_desktop_config.json

Claude Code, Cursor, and other MCP clients

json
{
  "mcpServers": {
    "native-devtools": {
      "command": "npx",
      "args": ["-y", "native-devtools-mcp"]
    }
  }
}

Requires Node.js 18+.

macOS permissions: the server needs Accessibility and Screen Recording permissions. The setup wizard opens the right System Settings panes for you. Without both, clicks silently fail and screenshots return a black rectangle.

Linux is not supported yet. The server uses platform-specific APIs (Core Graphics + Accessibility on macOS, Win32 + UI Automation on Windows) that don't exist on Linux. Contributions welcome — X11/Wayland screenshot, input, and AT-SPI paths would be a good first issue.

🏁 Getting Started

After installing, run the setup wizard:

bash
npx native-devtools-mcp setup

This will:

  1. Check permissions (macOS) — verifies Accessibility and Screen Recording, opens System Settings if needed.
  2. Detect your MCP clients — finds Claude Desktop, Claude Code, and Cursor.
  3. Write the configuration — generates the correct JSON config and offers to write it for you.

Then restart your MCP client and you're ready to go.

Claude Desktop on macOS requires the signed app bundle (Gatekeeper blocks npx). Download NativeDevtools-X.X.X.dmg from GitHub Releases, drag to /Applications, then run setup — it will detect the app and configure Claude Desktop to use it.

VS Code, Windsurf, and other clients: setup doesn't auto-detect these yet. Run setup for the permission checks, then see the manual configuration above for the JSON config snippet.

Claude Code tip: To avoid approving every tool call (clicks, screenshots), add this to .claude/settings.local.json:

json
{ "permissions": { "allow": ["mcp__native-devtools__*"] } }

⚠️ Operational safety

  • Hands off: when the agent is "driving" (clicking / typing), don't move your mouse or type. Real hardware inputs conflict with simulated ones and clicks land in the wrong place.
  • Focus matters: ensure the window you want the agent to use is visible. If a popup steals focus mid-flow, the agent may type into the wrong window unless it re-checks first.
  • Prefer AX Dispatch on macOS when you want to keep using the machine — AX calls don't move the cursor and don't steal focus from whatever window is active.

📚 Recipes and Examples

🌐 Browser Automation (CDP)

Connect to Chrome or Electron apps via the Chrome DevTools Protocol for DOM-level automation — more reliable than coordinate-based clicking for web content.

bash
# Launch Chrome with remote debugging
launch_app(app_name="Google Chrome", args=["--remote-debugging-port=9222", "--user-data-dir=/tmp/chrome-profile"])

# Connect and automate
cdp_connect(port=9222)
cdp_navigate(url="https://example.com")
cdp_find_elements(query="search")    # DOM walker with element UIDs (d1, d2, ...)
cdp_fill(uid="d1", value="search query")
cdp_press_key(key="Enter")
cdp_wait_for(text=["Results"])

18 CDP tools — DOM snapshot, find elements, click, hover, fill, type, press key, navigate, handle dialogs, manage tabs, evaluate JS, element inspection, and more. Works with Chrome 136+, Chromium, and Electron apps (Signal, Discord, VS Code, Slack). See AGENTS.md for the full tool reference.

Chrome 136+ note: requires --user-data-dir=<path> alongside --remote-debugging-port — Chrome silently ignores the debug port with the default profile. Electron apps only need --remote-debugging-port.

📱 Android Support

Android support is built-in. The server communicates with Android devices over ADB (USB or Wi-Fi), providing screenshots, input simulation, UI element search, and app management.

Prerequisites

  1. ADB installed on the host (brew install android-platform-tools on macOS, or via Android SDK).
  2. USB debugging enabled on the device (Settings > Developer options > USB debugging).
  3. ADB server running — starts automatically when you run adb devices.

Tools

All Android tools are prefixed with android_ and appear dynamically after connecting to a device:

ToolDescription
android_list_devicesList all ADB-connected devices (always available)
android_connectConnect to a device by serial number
android_disconnectDisconnect from the current device
android_screenshotCapture the device screen
android_find_textFind UI elements by text (via uiautomator)
android_clickTap at screen coordinates
android_swipeSwipe between two points
android_type_textType text on the device
android_press_keyPress a key (e.g., KEYCODE_HOME, KEYCODE_BACK)
android_launch_appLaunch an app by package name
android_list_appsList installed packages
android_get_display_infoGet screen resolution and density
android_get_current_activityGet the current foreground activity

Typical workflow

android_list_devices           → find your device serial
android_connect(serial="...")  → connect (unlocks android_* tools)
android_screenshot             → see what's on screen
android_find_text(text="OK")   → locate a button
android_click(x=..., y=...)    → tap it

MIUI / HyperOS (Xiaomi, Redmi, POCO devices): input injection (android_click, android_type_text, android_press_key, android_swipe) and android_find_text (via uiautomator) require an additional security toggle:

Settings > Developer options > USB debugging (Security settings) — enable this toggle. MIUI may require you to sign in with a Mi account to enable it.

Without this, you'll see INJECT_EVENTS permission errors for input tools and could not get idle state errors for android_find_text. Screenshot and device info tools work without this toggle.

Wireless ADB: to connect without a USB cable, first connect via USB and run:

bash
adb tcpip 5555
adb connect <phone-ip>:5555

Then use the <phone-ip>:5555 serial in android_connect.

Smoke tests: verify all Android tools against a real connected device. They are #[ignore]d by default:

bash
cargo test --test android_smoke_tests -- --ignored --test-threads=1

Tests must run sequentially since they share a single physical device. The device must be unlocked and awake.

🔐 Security & Trust

This tool requires Accessibility and Screen Recording permissions — that's a lot of trust. Here's how to verify it deserves it.

Verify your binary

bash
native-devtools-mcp verify

Computes the SHA-256 hash of the running binary and checks it against the official checksums published on the GitHub Releases page. If the hash matches, you're running an unmodified official build.

Audit the code

SECURITY_AUDIT.md documents exactly which permissions are used, where in the source code, and includes an LLM audit prompt you can paste into any AI model for an independent security review.

What this server does NOT do

  • No unsolicited network access. The server never phones home. Network is only used when the MCP client explicitly invokes app_connect (WebSocket to a local debug server) or when you run the verify subcommand (fetches checksums from GitHub).
  • No file scanning. Does not read or index your files. The only file reads are load_image (a path the MCP client explicitly provides) and short-lived temp files for screenshots (deleted immediately after capture).
  • No background persistence. Exits when the MCP client disconnects.
  • No data exfiltration. Screenshots are returned to the MCP client via stdout, never stored or transmitted elsewhere.

❓ FAQ

Does it work on Linux? Not yet — macOS, Windows, and Android only. The server uses Core Graphics + Accessibility APIs on macOS and Win32 + UI Automation on Windows. An X11/Wayland + AT-SPI port would be a welcome contribution.

Does it need an API key? No. The server runs entirely locally and makes no outbound API calls. Your MCP client may need its own LLM API key (Anthropic, OpenAI, etc.), but the server itself does not.

How is this different from Claude Computer Use? Claude Computer Use is an Anthropic API beta tool — it works with Claude Opus, Sonnet, and Haiku behind a beta header and requires an Anthropic API key. It operates via screenshots + coordinate-based mouse/keyboard actions. native-devtools-mcp is model-agnostic (anything that speaks MCP), runs 100% locally with no API dependency, and adds element-precise macOS AX dispatch, Chrome DevTools Protocol, and Android over ADB.

Does it work with local models (Ollama, LM Studio, etc.)? Yes — as long as the client speaks MCP. Any MCP-compatible client can connect. Non-MCP clients can wrap the server behind a bridge.

Is it free / open source? Yes, MIT-licensed. See LICENSE.

Does it record what I'm doing? No — unless you explicitly call start_recording, which writes to a directory you specify and stops on stop_recording. Hover tracking likewise runs only while start_hover_tracking is active. Nothing is recorded or sent anywhere otherwise.

How does it compare to Playwright or Playwright MCP? Playwright is the mature choice for pure web automation — Chromium, Firefox, and WebKit, plus first-class Electron support via _electron.launch() and experimental Android automation. Playwright MCP wraps it as an MCP server for AI agents. If you only need web / Electron automation, use Playwright MCP. native-devtools-mcp covers native macOS / Windows apps and Android devices in addition to Chrome/Electron, in one local MCP server — which Playwright MCP does not.

🏗️ Architecture

OSFeatureAPI Used
macOSScreenshotsscreencapture (CLI)
InputCGEvent (CoreGraphics)
Text Search (find_text)Accessibility API (primary), Vision OCR (fallback)
AX Snapshot + Dispatch (take_ax_snapshot / ax_click / ax_set_value / ax_select)Accessibility API — AX tree walk, AXPress action, kAXValueAttribute write, AXSelectedRows write (focus-preserving, no mouse movement)
Element Inspection (element_at_point)AXUIElementCopyElementAtPosition + AX tree walk fallback
Hover Tracking (start_hover_tracking)CGEvent cursor + Accessibility API polling
Screen Recording (start_recording)CGWindowListCreateImage at configurable fps
OCRVNRecognizeTextRequest (Vision Framework)
WindowsScreenshotsBitBlt (GDI)
InputSendInput (Win32)
Text Search (find_text)UI Automation (primary), WinRT OCR (fallback)
Element Inspection (element_at_point)IUIAutomation::ElementFromPoint
Hover Tracking (start_hover_tracking)GetCursorPos + UI Automation polling
Screen Recording (start_recording)BitBlt (GDI) at configurable fps
OCRWindows.Media.Ocr (WinRT)
AndroidScreenshotsscreencap / ADB framebuffer
Inputadb shell input (tap, swipe, text, keyevent)
Text Search (find_text)uiautomator dump (accessibility tree)
Device Communicationadb_client crate (native Rust ADB protocol)
Chrome / ElectronDOM-level automationChrome DevTools Protocol via chromiumoxide

Screenshot Coordinate Precision

Screenshots include metadata for accurate coordinate conversion:

  • screenshot_origin_x/y: Screen-space origin of the captured area (in points)
  • screenshot_scale: Display scale factor (e.g., 2.0 for Retina displays)
  • screenshot_pixel_width/height: Actual pixel dimensions of the image
  • screenshot_window_id: Window ID (for window captures)

Coordinate conversion:

screen_x = screenshot_origin_x + (pixel_x / screenshot_scale)
screen_y = screenshot_origin_y + (pixel_y / screenshot_scale)

Implementation notes:

  • Window captures (macOS): uses screencapture -o which excludes window shadow. Captured dimensions match kCGWindowBounds × scale exactly, so click coordinates derived from screenshots land on intended UI elements.
  • Region captures: origin coordinates are aligned to integers to match the actual captured area.

🪟 Windows Notes

Works out of the box on Windows 10/11.

  • Uses standard Win32 APIs (GDI, SendInput).
  • find_text uses UI Automation (UIA) as the primary search mechanism, querying the accessibility tree for element names. This is the same accessibility-first approach used on macOS. Falls back to OCR automatically when UIA finds no matches.
  • OCR uses the built-in Windows Media OCR engine (offline).
  • Cannot interact with "Run as Administrator" windows unless the MCP server itself is also running as Administrator.
  • Screen recording uses GDI/BitBlt at configurable fps (default 5). For higher fps or game capture, DXGI Desktop Duplication API would provide hardware-accelerated capture — a planned future upgrade.

🤖 For AI Agents

Agent-oriented usage — intent definitions, schema examples, reasoning patterns — lives in AGENTS.md. It's a compact, token-optimized reference designed for ingestion by LLMs (Claude, Gemini, GPT, local models). If you're an AI agent reading this README to decide whether to use the server, go there next.

⭐ Star History

📜 License

MIT © sh3ll3x3c

Usa el MCP de Native Devtools con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Native Devtools, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Native Devtools como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Native Devtools.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "native-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Native Devtools y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Native Devtools.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Native Devtools para ayudarme con esta tarea?
Native Devtools
Claro. Lo he leído.
Esto he encontrado usando Native Devtools.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Native Devtools?

Native Devtools es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Native Devtools con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Native Devtools con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Native Devtools con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Native Devtools conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Native Devtools a TypingMind?

Native Devtools funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Native Devtools en TypingMind?

Native Devtools ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Native Devtools?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Native Devtools requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇