loading…
Search for a command to run...
loading…
MCP server for AI-powered React Native debugging - logs, REPL, state inspection
MCP server for AI-powered React Native debugging - logs, REPL, state inspection
Ships as the npm package
react-native-ai-devtools.
Give your AI assistant eyes and hands into your running React Native app. Like Chrome DevTools — but for AI agents.
ExecBro is the runtime bridge that gives your AI coding assistant live access to your React Native app — logs, network, component state, screenshots, taps, and JS execution. One MCP server, zero-config, zero SDK required, zero code changes to your app.
Have an idea or found something that could be better? Head over to GitHub Discussions to share feedback, request features, and vote on what gets built next.
console.log, warn, error, info, debug with filtering and search. Note: on a cold start (first app launch), logs emitted before the MCP server connects are missed — subsequent reloads capture everything. Install the optional SDK to buffer logs from the very first line of app startuptap tool with automatic fallback chain: fiber tree → accessibility → OCR → coordinates. Auto-detects platform, accepts pixels from screenshots. Returns post-tap screenshot and verifies visual change by defaultscan_metro automatically discovers and connects to all Bridgeless targets on each Metro portdevice parameter for targeting specific devices by name (case-insensitive substring match)No installation required — every client below uses npx to fetch the latest version on demand. Pick your agent:
After adding the server, fully restart the client (quit and relaunch, not just reload) so it picks up the new configuration.
# Global (all projects)
claude mcp add execbro --scope user -- npx react-native-ai-devtools
# Project-specific
claude mcp add execbro --scope project -- npx react-native-ai-devtools
Or edit ~/.claude.json (user) / .mcp.json (project) manually:
{
"mcpServers": {
"execbro": {
"type": "stdio",
"command": "npx",
"args": ["react-native-ai-devtools"]
}
}
}
Edit the config at:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"execbro": {
"command": "npx",
"args": ["-y", "react-native-ai-devtools"]
}
}
}
You can also open this file from Settings → Developer → Edit Config. Fully quit and relaunch Claude Desktop after saving.
codex mcp add execbro -- npx -y react-native-ai-devtools
Or edit ~/.codex/config.toml directly:
[mcp_servers.execbro]
command = "npx"
args = ["-y", "react-native-ai-devtools"]
Docs. Add via Cmd+Shift+P → "View: Open MCP Settings", or edit .cursor/mcp.json (project) / ~/.cursor/mcp.json (global):
{
"mcpServers": {
"execbro": {
"command": "npx",
"args": ["-y", "react-native-ai-devtools"]
}
}
}
Requires VS Code 1.102+ with Copilot (docs). Add via Cmd+Shift+P → "MCP: Add Server", or edit .vscode/mcp.json:
{
"servers": {
"execbro": {
"type": "stdio",
"command": "npx",
"args": ["-y", "react-native-ai-devtools"]
}
}
}
Docs. Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"execbro": {
"command": "npx",
"args": ["-y", "react-native-ai-devtools"]
}
}
}
Docs. Open the Agent Panel settings → "Add Custom Server", or add to settings.json:
{
"context_servers": {
"execbro": {
"command": "npx",
"args": ["-y", "react-native-ai-devtools"],
"env": {}
}
}
}
Edit ~/.gemini/settings.json (user) or .gemini/settings.json (project):
{
"mcpServers": {
"execbro": {
"command": "npx",
"args": ["-y", "react-native-ai-devtools"]
}
}
}
Android works out of the box — all device control tools use ADB, which ships with Android Studio. Verify it's available:
adb devices
iOS UI automation tools (tap, swipe, text input, accessibility queries) require a UI driver. Install one of the following:
Option A: AXe CLI (default)
AXe is a standalone CLI for iOS simulator automation. No daemon required — single binary, simple setup. Used by default; no IOS_DRIVER env var needed.
brew install cameroncooke/axe/axe
Verify: axe --version
Note: AXe text input only supports US keyboard layout characters.
Option B: IDB (alternative)
IDB (iOS Development Bridge) is a tool built by Meta for automating iOS Simulators. Requires a background daemon. Use this if you prefer IDB or hit AXe limitations.
brew install idb-companion
Verify: idb_companion --list 1
Opt in by setting IOS_DRIVER=idb in your MCP server configuration:
{
"mcpServers": {
"execbro": {
"type": "stdio",
"command": "npx",
"args": ["react-native-ai-devtools"],
"env": { "IOS_DRIVER": "idb" }
}
}
}
What works without a UI driver:
| Capability | Without AXe/IDB | With AXe/IDB |
|---|---|---|
| Screenshots | Yes (simctl) | Yes |
| App install/launch/terminate | Yes (simctl) | Yes |
| URL opening | Yes (simctl) | Yes |
| Boot simulator | Yes (simctl) | Yes |
| Tap / swipe / gestures | No | Yes |
| Text input | No | Yes |
| Accessibility tree queries | No | Yes |
| Element finding / waiting | No | Yes |
| Hardware buttons (Home, Lock) | No | Yes |
Troubleshooting: If you see errors like
"IDB is not installed"or"AXe is not installed"in tap results, install the appropriate driver with the commands above and retry.
brew install cameroncooke/axe/axe, default) or Facebook IDB (brew install idb-companion, opt in via IOS_DRIVER=idb) — required for tap, swipe, text input, accessibility on iOS SimulatorPre-built skills for common debugging workflows — session setup, log inspection, network debugging, and more. See the skills guide for the full list and installation instructions.
See the full tool reference for all tools with descriptions. Key tools:
| Tool | Description |
|---|---|
scan_metro |
Start here — scan for Metro servers and auto-connect |
get_logs / search_logs |
Capture and search console logs with filtering and summaries |
get_network_requests |
Monitor HTTP requests with method/status filtering |
get_screen_layout |
Screen map of visible components with positions, sizes, and text content |
tap |
Unified tap — auto-detects platform, tries fiber → accessibility → OCR → coordinates |
execute_in_app |
Run JS expressions in the app runtime (REPL-style) |
ios_screenshot / android_screenshot |
Take device screenshots |
Start your React Native app:
npm start
# or
expo start
In Claude Code, scan for Metro:
Use scan_metro to find and connect to Metro
Get logs:
Use get_logs to see recent console output
| Guide | Description |
|---|---|
| Console Logging | get_logs parameters, filtering, summary mode, TONL format, token optimization |
| Network Tracking | SDK setup for full capture, filtering, request details, statistics |
| App Inspection | Debug globals (Apollo, Redux, Expo Router), execute_in_app, limitations |
| Layout & Component Inspection | get_screen_layout, component tree, inspect_at_point, find_components |
| Device Interaction | Unified tap, platform-specific gestures, text input, key events |
| OCR Text Extraction | Cloud Vision OCR, offline fallback, language config, workflows |
| Claude Code Skills | Pre-built skills for session setup, debugging, and automation |
| Full Tool Reference | Complete list of all 40+ tools with descriptions |
| Version | Architecture | Engine | Status |
|---|---|---|---|
| Expo SDK 54+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
| RN 0.76+ | Bridgeless (New Arch) | Hermes | ✓ Fully supported |
| RN 0.73 - 0.75 | Bridge (Old Arch) | Hermes | ✓ Fully supported (best network capture via CDP) |
| RN 0.70 - 0.72 | Bridge (Old Arch) | Hermes / JSC | ✓ Supported |
| RN < 0.70 | Bridge | JSC | Not tested |
/json endpointRuntime.enable to receive Runtime.consoleAPICalled eventsRuntime.evaluate — captures all requests from startup with full headers and bodies, including cold-start events that CDP would missNetwork.enable (on supported targets) or injects a JS fetch interceptor as fallback. On cold start, events emitted before the CDP connection is established are lost; subsequent reloads capture everythingThe server does not auto-connect on startup. Call scan_metro to discover and connect to Metro servers. This prevents multiple MCP server instances (from parallel agent sessions) from competing for the single CDP WebSocket slot, which would cause connection thrashing and dropped tools.
When the MCP server process is terminated (SIGINT/SIGTERM), it closes all CDP WebSocket connections and cancels reconnection timers, freeing the CDP slot immediately for other sessions.
When the connection to Metro is lost (e.g., app restart, Metro restart, or network issues):
If there was a recent disconnect, get_logs and get_network_requests will include a warning:
[WARNING] Connection was restored 5s ago. Some logs may have been missed during the 3s gap.
Use get_connection_status to see detailed connection information:
=== Connection Status ===
--- React Native (Port 8081) ---
Status: CONNECTED
Connected since: 2:45:30 PM
Uptime: 5m 23s
Recent gaps: 1
- 2:43:15 PM (2s): Connection closed
npm start)The server prioritizes devices in this order:
clear_logs then trigger some actions in the appget_apps to verify connection statusreload_app — the subsequent reload captures everything from the beginning because the connection is already in place. To capture startup events on every launch, install the optional SDKThis package collects anonymous usage telemetry to help improve the product. No personal information is collected.
| Data | Purpose |
|---|---|
| Tool names | Which MCP tools are used most |
| Success/failure | Error rates for reliability improvements |
| Duration (ms) | Performance monitoring |
| Session start/end | Retention analysis |
| Platform | macOS/Linux/Windows distribution |
| Server version | Adoption of new versions |
Not collected: No file paths, code content, network data, or personally identifiable information.
On first tool use, the package automatically registers your installation with our backend. No account or login is required — the Tool works fully out of the box.
Why we do this: The product roadmap includes features that build on installation identity — project memory (your AI assistant gets smarter with every session by remembering navigation maps, element signatures, and debug patterns), cloud sync across machines, team collaboration with shared debugging context, and a Pro dashboard for managing installations and subscriptions. Auto-registration lays the groundwork so these features work seamlessly when they ship, without requiring a disruptive setup step later.
What is sent:
What is NOT sent: No source code, file paths, console logs, network data, component names, or any content from your app. The fingerprint exists solely to prevent installation hijacking — it ties your installation to your physical machine so no one else can claim it.
Registration is fire-and-forget — it never blocks your work, fails silently if the network is unavailable, and can be disabled entirely (see Opt-out below). See PRIVACY.md for full details on data handling, storage, and your rights.
To disable telemetry and auto-registration, add RN_DEBUGGER_TELEMETRY to the env field in your MCP server configuration:
{
"mcpServers": {
"execbro": {
"type": "stdio",
"command": "npx",
"args": ["react-native-ai-devtools"],
"env": { "RN_DEBUGGER_TELEMETRY": "false" }
}
}
}
All debugging tools work normally with telemetry disabled. For the complete privacy policy, see PRIVACY.md.
When the tap tool fails or produces no visible change on screen, the package uploads a small JSON bundle and up to three downscaled PNG screenshots (before, after, and after-with-marker showing exactly where the tap landed) to a 10-day-retention store so we can diagnose and fix tap reliability issues. We do not use this data to train AI models and do not share it with third parties. See PRIVACY.md for details.
To opt out while keeping the rest of the package working:
"env": { "RN_AI_DEVTOOLS_DISABLE_FAILURE_ARTIFACTS": "1" }
MIT
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"react-native-ai-debugger": {
"command": "npx",
"args": [
"-y",
"react-native-ai-debugger"
]
}
}
}pro tip
Just installed React Native Ai Debugger? Say to Claude: "remember why I installed React Native Ai Debuggerand what I want to try" — it'll save into your Vault.
how this works →