expo-devtools-mcp
Provides tools to control and inspect an Expo/React Native app over a WebSocket connection: take screenshots, fetch console logs, navigate to Expo Router routes, scroll, tap registered interactive elements, fill text inputs, capture an accessibility tree with element UIDs, and read Zustand store state.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
expo-devtools-mcp
A Model Context Protocol (MCP) server for debugging Expo/React Native apps with Claude Code (or any MCP-compatible AI assistant).
Control your React Native app directly from your AI assistant - take screenshots, read logs, navigate, and more.

Features
Command | Description |
| Capture the current screen |
| Get console logs from the app |
| Navigate to any Expo Router route |
| Scroll up/down/left/right |
| Tap on registered elements |
| Fill text inputs |
| Get accessibility tree with element UIDs |
| Read Zustand store state |
| Check if app is connected |
Related MCP server: React Native Debugger MCP Server
Quick Start
1. Install the MCP server
npm install -g expo-devtools-mcpOr add to your Claude Code MCP config (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"expo-devtools": {
"command": "npx",
"args": ["expo-devtools-mcp"],
"env": {
"EXPO_DEVTOOLS_PORT": "19876"
}
}
}
}2. Install the client in your Expo app
cd your-expo-app
npx expo install expo-devtools-client expo-file-system react-native-view-shot3. Wrap your app with DevToolsProvider
// app/_layout.tsx
import { DevToolsProvider } from 'expo-devtools-client';
export default function RootLayout() {
return (
<DevToolsProvider>
<Stack />
</DevToolsProvider>
);
}4. Start your app and connect
# Terminal 1: Start Expo
npx expo start
# Terminal 2: Start Claude Code
claudeThe app will automatically connect to the MCP server. You'll see in Metro logs:
[DevTools] Connected to MCP server!Configuration
Environment Variables
Variable | Default | Description |
|
| WebSocket server port |
| Auto-detected | Your computer's IP address |
Client Options
<DevToolsProvider
enabled={__DEV__} // Only enable in dev mode (default: true)
port={19876} // WebSocket port (default: 19876)
host="192.168.1.100" // Override auto-detected IP
autoConnect={true} // Auto-connect on mount (default: true)
reconnectInterval={3000} // Reconnection delay in ms (default: 3000)
>
{children}
</DevToolsProvider>Usage Examples
Take a screenshot
Claude: take a screenshot of the app
→ [Shows current screen]Navigate to a screen
Claude: navigate to the settings screen
→ Navigated to: /settingsDebug with logs
Claude: show me the recent console logs
→ [LOG] User logged in
→ [ERROR] API call failed: 401Check app state
Claude: what's in the auth store?
→ { user: { id: 1, email: "..." }, isAuthenticated: true }Advanced: Register Interactive Elements
To enable tap and fill commands, register your interactive elements:
import { useDevTools } from 'expo-devtools-client';
function LoginScreen() {
const { registerElement } = useDevTools();
const [email, setEmail] = useState('');
return (
<TextInput
ref={(ref) => registerElement({
ref,
type: 'textinput',
accessibilityLabel: 'Email input',
onChangeText: setEmail,
})}
value={email}
onChangeText={setEmail}
/>
);
}Advanced: Register Zustand Stores
To enable get_state command:
import { useDevTools } from 'expo-devtools-client';
import { useAuthStore } from './stores/authStore';
function App() {
const { registerStore } = useDevTools();
useEffect(() => {
registerStore('auth', useAuthStore.getState);
}, []);
return <MyApp />;
}How It Works
┌─────────────────┐ WebSocket ┌─────────────────┐
│ Claude Code │ ◄─────────────────────────► │ Expo App │
│ (MCP Client) │ │ (DevToolsClient)│
└────────┬────────┘ └─────────────────┘
│
│ MCP Protocol
▼
┌─────────────────┐
│ MCP Server │
│ (This package) │
└─────────────────┘The MCP server runs on your computer and listens for WebSocket connections
Your Expo app connects to the MCP server via WebSocket
Claude Code sends commands through MCP protocol
Commands are forwarded to the app, results returned to Claude
Troubleshooting
"Not connected to Expo Go app"
Make sure your phone/simulator is on the same network as your computer
Check the IP address in the DevToolsProvider logs
Try setting the host explicitly:
<DevToolsProvider host="YOUR_IP">
Screenshot returns small/corrupted image
Make sure you have expo-file-system installed:
npx expo install expo-file-systemConnection drops frequently
Increase the reconnect interval:
<DevToolsProvider reconnectInterval={5000}>Requirements
Expo SDK 51+
React Native 0.74+
Node.js 18+
Claude Code or any MCP-compatible client
Contributing
Contributions welcome! Please read CONTRIBUTING.md first.
License
MIT - see LICENSE
Credits
Created by @fysnerd
Inspired by Chrome DevTools MCP
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Drive real devices from your AI Coding tool. Embed a client SDK (Unity, Godot, Flutter, iOS/macOS, Android, React Native, Web) in your app, then capture screenshots, traverse the UI tree, inject taps and key events, and run automated test tasks on the physical device over a secure relay.
Let Claude, ChatGPT and other agents use your Android phone: see the screen, tap, type, open apps.
Drive and test your React Native and Expo apps end-to-end on iOS and Android. Supports real devices, simulators, and emulators. Snapshots, taps, typing, swipes, screenshots, deep links, reloads, builds and runtime errors.
Open a React Native app in a simulated phone: read the screen, tap, type, set device state.
Related MCP Servers
- AlicenseAqualityBmaintenanceLets MCP-capable AI agents control an Expo / React Native app running live in Expo Go on a real phone, reading a compact token-cheap outline of the visible screen and performing taps, text entry, scrolling, toggles and navigation. Also exposes screenshots, layout, console logs, network requests and hardware keys, and attaches new JS errors and failed requests to the action that caused them.1791 npm3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents such as Cursor and Claude Desktop to read a running debugger's captured console logs and network sessions, inspect full request/response payloads, diagnose crashes and failed API calls, and trigger React Native reloads or the developer menu.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to drive, inspect, and debug paired web and Expo apps by running registered actions, reading app state, inspecting network calls and errors, and capturing pixel-exact panel screenshots.MIT
- AlicenseBqualityBmaintenanceLets coding agents drive a running React Native or Expo dev build from inside: each tool the app registers (screen snapshot, press and fill, state stores, network mocks, navigation) becomes an MCP tool. bridge.restore undoes everything the agent changed.19434 npm4MIT