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: React Native Expo MCP
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-devtoolsQuick 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 |
| CDP + SDK | JS errors and exceptions with stack traces |
| CDP + SDK | LogBox warnings from console.warn |
| 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 |
Diagnostics
Tool | Source | Description |
| — | Connection status, discovered stores, counts — plus actionable diagnosis when disconnected |
| — | Debuggable targets registered with Metro (multi-device) |
| — | Pin a specific target when several devices/apps are connected |
| — | 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's global scope |
| CDP | Resolve bundled line:column to original source via Metro source maps |
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 |
|
| SDK WebSocket port |
| - | Disable secret redaction |
| - | 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.
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
License
MIT
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
- 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