React Native MCP Server
Supports Android native automation via adb for touch injection and screenshots, enabling gesture control and visual verification on Android emulators and devices.
Automatically detects Expo projects and provides setup guides for Expo Go, Dev Client, and Expo Router, enabling full MCP tooling for Expo-based React Native apps.
Supports iOS simulator automation via idb for touch injection and screenshots, enabling gesture control and visual verification on iOS simulators.
Provides inspection and automation of React Native applications, including access to the React Fiber tree, real-time state inspection, render profiling, and network mocking.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@React Native MCP ServerTap the 'Login' button and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
React Native MCP Server
MCP(Model Context Protocol) server for React Native app automation and monitoring. Works with Cursor, Claude Desktop, Claude Code, GitHub Copilot, Windsurf, and any MCP-compatible client.
What makes this different
React Fiber tree access — Query and inspect components via the actual Fiber tree, not screenshots or accessibility labels
State inspection — Read React hooks (useState, Zustand, etc.) of any component in real time
Render profiling — Track mounts, re-renders, and unnecessary renders without React DevTools
Network mocking — Intercept XHR/fetch and inject mock responses at runtime
49 MCP tools — Tap, swipe, screenshot, assert, eval, clear(target), and more across 12 categories
Zero native module — Pure JS runtime + host CLI tools (adb/idb). No linking, no native code
YAML E2E testing — Write scenarios in YAML and run in CI without AI
Documentation
Guide | Description |
5-minute setup guide | |
Expo-specific setup (Dev Client, Expo Go, Expo Router) | |
All 49 tools with parameters and examples | |
Real-world usage scenarios | |
How it works under the hood | |
Connection issues and fixes | |
DevTools + Component Tree in the sidebar | |
YAML scenario testing |
Quick Start (CLI init)
The fastest way to set up React Native MCP in your project:
npx -y @ohah/react-native-mcp-server initWhat it does
The init command runs through these steps:
Step 1 — Project Detection (automatic)
Reads package.json, lock files, and config files to detect:
React Native version (
dependencies.react-native)Expo (
dependencies.expo,app.json,app.config.ts)Babel config location (
babel.config.js,.babelrc, etc.)Package manager (
bun.lock→ bun,yarn.lock→ yarn,pnpm-lock.yaml→ pnpm, otherwise npm)
Detecting project...
✓ React Native 0.83.1
✓ Expo detected (expo@~52.0.0)
✓ Package manager: bunStep 2 — MCP Client Selection (interactive prompt)
Asks which MCP client you use. This determines where the server config file is created.
? Which MCP client do you use?
1. Cursor
2. Claude Code (CLI)
3. Claude Desktop
4. Windsurf
5. Antigravity
> 1Client | Config location |
Cursor |
|
Claude Code |
|
Claude Desktop |
|
Windsurf |
|
Antigravity |
|
Step 3 — Apply Changes (automatic)
babel.config.js — Appends
@ohah/react-native-mcp-server/babel-presetto thepresetsarray. Skipped if already present.MCP config — Creates or merges the server entry into the client config file. Existing settings are preserved.
.gitignore — Appends
/results/if not already present.
Step 4 — Run your app and start using MCP tools
# Bare RN
npx react-native start
# Expo
npx expo startOptions
# Non-interactive mode — skip prompts, use Cursor as default client
npx -y @ohah/react-native-mcp-server init -y
# Specify client explicitly
npx -y @ohah/react-native-mcp-server init --client cursor
npx -y @ohah/react-native-mcp-server init --client claude-code
# Help
npx -y @ohah/react-native-mcp-server init --helpRunning init multiple times is safe — each step checks if the change is already applied.
Monorepo: Run init from the repo root. It adds @ohah/react-native-mcp-server to the detected app package’s devDependencies and runs install from the root. See CLI Init for options like --no-install.
Usage
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"react-native-mcp": {
"command": "npx",
"args": ["-y", "@ohah/react-native-mcp-server"]
}
}
}Claude Desktop / Claude Code
# Claude Code CLI (recommended)
claude mcp add --transport stdio react-native-mcp -- npx -y @ohah/react-native-mcp-serverOr edit ~/Library/Application Support/Claude/claude_desktop_config.json with the same JSON structure.
GitHub Copilot CLI
Run /mcp add react-native-mcp in Copilot CLI, or edit ~/.copilot/mcp-config.json.
VS Code Extension (DevTools)
Install React Native MCP DevTools from the Marketplace, or in VS Code: Ctrl+Shift+X (Extensions) → search React Native MCP DevTools → Install. Gives you Console, Network, State, Renders, and Component Tree in the sidebar. See VS Code Extension for local .vsix install.
For detailed client setup, see Cursor / Claude / Copilot.
Required: Native Tools (idb / adb)
The MCP server uses idb (iOS) and adb (Android) for native touch injection and screenshots.
# Android
brew install --cask android-platform-tools # or install Android Studio
adb devices # verify
# iOS Simulator
brew tap facebook/fb && brew install idb-companion
pip3 install fb-idb
idb list-targets # verifyidb is macOS-only, simulators only. See idb Setup Guide for details.
Architecture
React Native App (iOS/Android)
↓ (WebSocket)
└─ Runtime (auto-injected via Babel preset)
↓
MCP Server (developer's machine, port 12300)
↓ (stdio/MCP protocol)
Cursor / Claude Desktop / Copilot CLISee Architecture for the full design.
Development
Tools: mise (see
.mise.toml), oxlint/oxfmt for linting/formattingScripts:
bun run build- Build the serverbun run mcp- Run MCP serverbun run dev- Watch modebun run test- Run testsbun run test:mcp- Spawn server, callevaluate_scriptvia stdio
License
MIT © ohah
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ohah/react-native-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server