mcp-rn-devtools
Connects to React Native's Metro bundler debugger proxy to capture console logs, errors, network requests, and enables JavaScript evaluation, memory profiling, CPU profiling, and source map resolution.
Provides state inspection and action dispatch history through the optional SDK integration, allowing inspection of Redux store state and dispatching actions.
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., "@mcp-rn-devtoolsShow me recent network requests"
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.
mcp-rn-devtools
An MCP server that gives Claude (or any MCP host) real-time access to your running React Native app — including your Redux state and AsyncStorage, with zero app changes. Console logs, errors, network, state, storage, action log, navigation, performance profiling, and more.
Why this one
True zero-config state access. A runtime agent injected over the Chrome DevTools Protocol walks the React fiber tree to discover your Redux store — no SDK, no middleware, no exposing the store on a global. Reading AsyncStorage works the same way (native module proxy). Install the server, ask Claude about your state.
Headless. No desktop app to keep open, no toggle to remember. Works in fully autonomous agent workflows and CI.
Secrets redacted by default. Tokens, passwords, auth headers, and JWT-shaped strings are masked server-side before anything reaches the LLM (
MCP_RN_NO_REDACT=1to opt out).Built for agent loops.
clear_buffers→ reproduce → read.wait_for_logblocks until the app emits a matching log.get_state_diffshows exactly what changed between two moments.
Related MCP server: MCP Browser Logger
How It Works
Claude / MCP Host
│ MCP (stdio)
▼
mcp-rn-devtools (server)
├── CDP WebSocket ──► RN App (Hermes / Metro) ← zero config
│ └── runtime agent (injected): Redux discovery,
│ AsyncStorage, action log, navigation
└── SDK WebSocket ◄── mcp-rn-devtools-sdk ← optional enhancerLayer 1 — CDP + runtime agent (zero config): Connects via Chrome DevTools Protocol through Metro's debugger proxy. Captures console logs, errors, warnings, and network requests, and injects a runtime agent that discovers Redux stores / React Navigation / React Query by walking the fiber tree, reads and writes AsyncStorage through the native module proxy, and records every dispatched action. Also provides JS evaluation, memory/CPU profiling, and source map resolution. No app changes needed.
Layer 2 — SDK (optional enhancer): Install mcp-rn-devtools-sdk for what the agent can't reach: Zustand/custom stores, MMKV, per-component render profiling, navigation timing, and a second capture channel that survives CDP drops.
Installation
With Claude Code
claude mcp add rn-devtools -- npx -y mcp-rn-devtoolsOr add .mcp.json to your project root (shared with your team):
{
"mcpServers": {
"rn-devtools": {
"command": "npx",
"args": ["-y", "mcp-rn-devtools"]
}
}
}With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"rn-devtools": {
"command": "npx",
"args": ["-y", "mcp-rn-devtools"]
}
}
}Manual
npm install -g mcp-rn-devtools
mcp-rn-devtools --versionQuick Start
Start your React Native app — Metro must be running, Hermes engine (default since RN 0.70).
Add the MCP server to your Claude config (see above).
Ask Claude about your app:
"What's in my Redux store right now?"
"Read the AsyncStorage key persist:root"
"Clear the buffers, I'll reproduce the bug — then show me what happened"
"Dispatch auth/logout and show me the state diff"
"Profile the CPU for 3 seconds and show me the hot functions"
Available Tools
Source legend: agent = zero config, injected via CDP. CDP = zero config, protocol-level. SDK = requires
mcp-rn-devtools-sdkin the app. Read-only tools are annotated withreadOnlyHintso MCP hosts can auto-allow them.
State & Actions
Tool | Source | Description |
| agent + SDK | Redux store state with dot-path access and depth control. Stores discovered automatically |
| agent + SDK | What changed in the store since the last call (baseline → diff workflow) |
| agent + SDK | Dispatched actions with duration and changed slices — recorded automatically, no middleware |
| agent | Dispatch a Redux action to reproduce states or trigger flows |
Storage
Tool | Source | Description |
| agent + SDK | List AsyncStorage (zero-config) or MMKV (SDK) keys with search |
| agent + SDK | Read a storage value — secrets redacted by default |
Logging & Errors
Tool | Source | Description |
| CDP + SDK | Console output with level filter and search; capped for the LLM by default, |
| CDP + SDK | JS errors and exceptions with stack traces (5 frames by default, |
| CDP + SDK | LogBox warnings from console.warn, deduplicated across debugger reconnects |
| CDP + SDK | Block until a log matching a pattern appears — synchronize with app activity |
Network
Tool | Source | Description |
| CDP + SDK | HTTP requests; |
| CDP + SDK | Requests with status >= 400 or network errors, response bodies capped unless |
Diagnostics
Tool | Source | Description |
| — | Verdict first — |
| — | Targets on every Metro port (8081–8085) with who holds each one (→ this instance, ⊙ another instance, ✗ library runtime) |
| — | Pin a target by id (optionally with |
| — | Reset captured data before reproducing a scenario |
Navigation
Tool | Source | Description |
| agent + SDK | Current route and stack (React Navigation), discovered automatically |
| SDK | Screen transition timing with per-route summary |
Memory & Performance
Tool | Source | Description |
| CDP | Current heap usage (used / total / percentage) |
| CDP | Heap snapshot summary — object count, top retainers by size |
| CDP | CPU profile for N seconds — hot functions sorted by self time |
| CDP | Trigger garbage collection, return before/after heap comparison |
| SDK | Component render events — mount/update durations, slow renders |
Advanced
Tool | Source | Description |
| CDP | Execute JavaScript in the app: |
| CDP | Resolve bundled line:column to original source via Metro source maps |
Building on top of the core
The server exports its building blocks (ConnectionManager, SDKBridgeServer, the injected agent bridge, adb helpers) so tools can extend it in the same process — Hermes admits a single debugger, so extensions must share the CDP session rather than compete for it. Unrecognized SDK-channel messages are re-emitted as sdk-message events, and sendToClient() lets extensions answer.
The first product built this way is tapfix: a live QA loop for React Native (mark issues on-device or from a cockpit web UI, and an embedded coding agent fixes them on the fly). Its MCP server is a superset of this one.
Multiple sessions and multiple apps
Hermes admits one debugger per app instance, and every Claude Code session starts its own mcp-rn-devtools process. Ownership is settled per app on a device, not per machine:
Sessions on different apps coexist. Two emulators, two apps, two sessions: each holds its own debugger. Instances register in
~/.mcp-rn-devtools/instances/and ask each other to yield through a per-instance control endpoint — only the one holding that app is asked.The debugger follows the session in use for the same app. An instance attaches on its first tool call (
lazy, the default); if a sibling holds that app, it yields and gets it back on its own next tool call. An instance kicked by a sibling does not fight back.A session attaches to its own app. The server reads the app id from the repo it runs in (
android/app/build.gradleapplicationId, the iOS bundle id, or Expo'sapp.json;MCP_RN_APPoverrides) and finds that app across Metro ports 8081–8085 — a session in the wms repo attaches to wms even while picking runs on 8081.select_targetalso takes anappid.No orphans. The server exits when its MCP client goes away (stdin closes or the parent process dies).
health_checkshows the session app, who holds the debugger, the other instances and their apps, and who serves the SDK channel.list_targetsmarks targets held by other instances with ⊙.
Extensions that record continuously (tapfix) opt into connectMode: 'eager'. Instances older than 0.5 (no registry) are still asked to yield over the SDK port.
Secret Redaction
Every tool that outputs app data (state, storage values, network headers/bodies, action payloads) masks secrets server-side, before the data reaches the LLM:
Values under sensitive keys (
token,password,authorization,apiKey,session,cookie, …) →[REDACTED]JWT-shaped strings and
Bearer …tokens anywhere in text → masked
Redaction is a blocklist (defence in depth, not a guarantee) — audit what your app stores before pointing any LLM at it. Opt out with MCP_RN_NO_REDACT=1.
SDK Setup (optional)
The runtime agent covers Redux, AsyncStorage, actions, and navigation with zero config. Install the SDK only if you need Zustand/custom stores, MMKV, render profiling, or navigation timing:
npm install mcp-rn-devtools-sdk --save-devimport { RNDevtoolsProvider } from 'mcp-rn-devtools-sdk';
export default function App() {
return (
<RNDevtoolsProvider>
<YourApp />
</RNDevtoolsProvider>
);
}With Zustand / custom stores
const useAuthStore = create((set) => ({ /* ... */ }));
<RNDevtoolsProvider stateManagers={{ auth: useAuthStore }}>
<YourApp />
</RNDevtoolsProvider>State snapshots are pull-only: they're serialized only when a tool asks, so the SDK adds zero overhead while idle.
With MMKV
import { MMKV } from 'react-native-mmkv';
const storage = new MMKV();
<RNDevtoolsProvider mmkv={storage}>
<YourApp />
</RNDevtoolsProvider>Per-Component Render Profiling
import { RNDevtoolsProfiler } from 'mcp-rn-devtools-sdk';
<RNDevtoolsProfiler id="UserList">
<UserList />
</RNDevtoolsProfiler>Provider Props
Prop | Type | Description |
|
| React Navigation container ref for richer route tracking |
|
| Zustand/custom stores for state inspection |
|
| Middlewares created via |
|
| AsyncStorage instance (also available zero-config via agent) |
|
| MMKV instance for storage reading |
|
| WebSocket port (default: |
|
| Dev machine host — auto-detected from the bundle URL ( |
The SDK automatically strips itself from production builds via
__DEV__checks — zero overhead in release.
Configuration
Environment Variable | Default | Description |
|
| Metro bundler port (when it has no app, ports 8082–8085 are checked too) |
|
| SDK WebSocket port — also marks which instance owns the debugger |
|
|
|
| from the repo | App id prefix(es) this session works on, comma-separated (overrides the cwd detection) |
|
| Where instances register themselves for per-app ownership |
| - | Disable secret redaction |
| - | Skip the npm "newer version" lookup in |
| - | Enable debug logging |
Architecture Notes
Target selection: RN 0.76+ (Fusebox) no longer advertises
vm: 'Hermes'— the server picks the main runtime byreactNative.capabilities.prefersFuseboxFrontendand skips secondary runtimes like Reanimated's. Legacy targets still work via thevmfield.Kick-and-poll: CDP's
awaitPromisecan't resolve React Native's polyfilled Promises, so async in-app operations (AsyncStorage) fire a callback that writes to a result slot, which the server polls.Clock skew: log/error entries carry a server-clock
receivedAt— device clocks can drift seconds from the host, which would break "wait for new logs" cuts.Reconnection: exponential backoff, agent re-injected automatically after every bundle reload. A pinned target that keeps failing is unpinned after 3 attempts.
Console replay:
Runtime.enablereplays the runtime's console backlog on every reconnect; entries are deduplicated by (timestamp, message) so warnings do not inflate.globalin the evaluate scope: Hermes exposesglobalThisbut notglobaltoRuntime.evaluate(Metro only passesglobalto module factories). Injected scripts resolve the global object themselves andevaluate_jsaliasesglobalfor the duration of the call.Multi-Metro: a known session app is searched across ports 8081–8085 regardless of what the configured port serves. Without a session app: when nothing listens on the configured port and exactly one other port has an app, the server switches to it; a running Metro without an app is left alone (the app is about to appear there), and with several candidates it asks you to
select_target.Target identity: ownership is keyed by
reactNative.logicalDeviceId(RN 0.73+: a stable hash of app + device, shared by the app's main and Reanimated runtimes), falling back to app id + device name.Action log caveat: the agent wraps
store.dispatchat discovery time; components that captured a directdispatchreference before discovery bypass the log (rare — discovery runs at connect).
Compatibility
React Native: 0.71+ (validated against 0.80 / bridgeless / Fusebox)
Engine: Hermes (default since RN 0.70)
Platforms: iOS, Android
Node.js: 20+
MCP Hosts: Claude Code, Claude Desktop, or any MCP-compatible client
Development
mise install # node 22 + pnpm 9 from .mise.toml (pnpm 10+ breaks the build)
pnpm install
pnpm build # shared → server → sdk
pnpm test # vitest, includes fake Metro/Hermes integration tests
pnpm typecheck && pnpm lintRelease: bump version in the three packages/*/package.json, push, and publish a GitHub Release — publish.yml runs CI and pnpm -r publish.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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.
Related MCP Connectors
- AgentCatOAuthcom.agentcat
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
MCP server to assist with JxBrowser development.
MCP server for Appcircle mobile CI/CD platform.
The official MCP Server for the Mux API
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server that connects to your React Native application debugger22832MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that captures browser console logs and network requests via the Chrome DevTools Protocol. It allows users to monitor real-time logs, inspect network traffic, and execute JavaScript code directly in the browser context.-
- AlicenseAqualityCmaintenanceMCP server that gives AI coding agents hands, eyes and a mechanic's ear for React Native development.9142MIT
- AlicenseNot gradedqualityAmaintenanceA plugin-based MCP server for React Native runtime debugging, inspection, and automation via Chrome DevTools Protocol. Works with Expo, bare React Native, and any Metro + Hermes project without app code changes.59277MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/pablonortiz/mcp-rn-devtools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server