Server data from the Official MCP Registry
MCP server for React Native/Expo runtime debugging, inspection, and automation via Metro/CDP
MCP server for React Native/Expo runtime debugging, inspection, and automation via Metro/CDP
Valid MCP server (1 strong, 1 medium validity signals). 3 known CVEs in dependencies (0 critical, 3 high severity) Package registry verified. Imported from the Official MCP Registry.
4 files analyzed · 4 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-steve228uk-metro-mcp": {
"args": [
"-y",
"metro-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
A plugin-based MCP server for React Native runtime debugging, inspection, and automation. Connects to Metro bundler via Chrome DevTools Protocol — no app code changes needed for most features.
Works with Expo, bare React Native, and any project using Metro + Hermes.
claude mcp add metro-mcp -- npx -y metro-mcp
# or with Bun
claude mcp add metro-mcp -- bunx metro-mcp
codex mcp add metro-mcp -- npx -y metro-mcp
# or with Bun
codex mcp add metro-mcp -- bunx metro-mcp
Codex stores MCP servers in ~/.codex/config.toml by default, and the Codex CLI and IDE extension share that configuration.
If you prefer to configure it manually:
[mcp_servers.metro-mcp]
command = "npx"
args = ["-y", "metro-mcp"]
{
"mcpServers": {
"metro-mcp": {
"command": "npx",
"args": ["-y", "metro-mcp"]
}
}
}
Or with Bun:
{
"mcpServers": {
"metro-mcp": {
"command": "bunx",
"args": ["metro-mcp"]
}
}
}
codex mcp add metro-mcp -- npx -y metro-mcp --port 19000
# or
claude mcp add metro-mcp -- npx -y metro-mcp --port 19000
xcrun simctl is used for most operations)adb on your PATHbrew install idb-companion. Tools will tell you when IDB is needed.metro-mcp connects to your running Metro dev server the same way Chrome DevTools does:
No app modifications required for core debugging features.
| Plugin | Tools | Description |
|---|---|---|
| console | 2 | Console log collection with filtering |
| network | 6 | Network request tracking, response body inspection, and stats |
| errors | 3 | Runtime exception collection + Metro bundle error detection |
| evaluate | 1 | Execute JavaScript in the app runtime |
| device | 4 | Device management, connection status, and app reload |
| environment | 4 | Build flags, platform constants, env vars, and Expo config inspection |
| source | 1 | Stack trace symbolication |
| redux | 3 | Redux state inspection and action dispatch |
| components | 5 | React component tree inspection |
| storage | 3 | AsyncStorage reading |
| simulator | 6 | iOS simulator / Android device control |
| deeplink | 2 | Cross-platform deep link testing |
| permissions | 5 | Inspect and manage app permissions on iOS Simulator and Android Emulator |
| ui-interact | 6 | UI automation (tap, swipe, type) |
| navigation | 4 | React Navigation / Expo Router state |
| accessibility | 3 | Accessibility auditing |
| commands | 2 | Custom app commands |
| automation | 3 | Wait/polling helpers for async state changes |
| profiler | 9 | CPU profiling (React DevTools hook) + heap sampling + render tracking |
| test-recorder | 7 | Record interactions and generate Appium, Maestro, or Detox tests |
| filesystem | 5 | Browse and read files in app sandbox directories (Documents, caches, SQLite DBs) |
| devtools | 1 | Open Chrome DevTools alongside the MCP via CDP proxy |
| debug-globals | 1 | Auto-discover Redux stores, Apollo Client, and other debug globals |
| inspect-point | 1 | Coordinate-based React component inspection (experimental) |
| statusline | 1 | Claude Code status bar integration |
→ See the full tools reference.
Hermes (the React Native JavaScript engine) only allows a single CDP debugger connection at a time. Since metro-mcp uses that connection, pressing "j" in Metro or tapping "Open Debugger" in the dev menu will steal the connection and disconnect the MCP.
metro-mcp solves this with a built-in CDP proxy that multiplexes the single Hermes connection, allowing Chrome DevTools and the MCP to work simultaneously.
Use the open_devtools MCP tool instead of the usual methods. It opens the same React Native DevTools frontend (rn_fusebox) that Metro uses, but routes the WebSocket connection through the proxy so both can coexist.
The tool automatically finds Chrome or Edge using the same detection as Metro and opens a standalone DevTools window.
| Method | What happens |
|---|---|
| Pressing "j" in Metro terminal | Disconnects the MCP |
| "Open Debugger" in the dev menu | Disconnects the MCP |
open_devtools MCP tool | Works alongside the MCP |
The CDP proxy is enabled by default. To change the port or disable it:
# Set a fixed proxy port
METRO_MCP_PROXY_PORT=9222 npx metro-mcp
# Disable the proxy entirely
METRO_MCP_PROXY_ENABLED=false npx metro-mcp
Get live Metro CDP connection status in your Claude Code status bar.
Run setup_statusline in Claude Code — it writes a script to ~/.claude/metro-mcp-statusline.sh, then ask Claude to add it to your status bar:
/statusline add the script at ~/.claude/metro-mcp-statusline.sh
The status bar segment shows three states:
| State | Display |
|---|---|
| Not running | Metro ○ (dimmed) |
| Running, not connected | Metro ● (red) |
| Connected | Metro ● localhost:8081 (green) |
Record real user interactions (taps, text entry, scrolls) and generate production-ready tests — no app code changes required.
Describe a flow and the AI navigates the app, then generates the test:
"Write an Appium test for the guest checkout flow — start by tapping 'Start Shopping' on the welcome screen and end when the cart screen is visible."
The AI calls start_test_recording, navigates using tap_element/type_text/swipe, then generates a complete test with real selectors observed from the fiber tree.
start_test_recording → inject interceptors
(interact with the app)
stop_test_recording → retrieve event log
generate_test_from_recording format=appium
Supports Appium (WebdriverIO), Maestro YAML, and Detox.
→ See the testing guide for full details, format examples, and tips.
Register custom commands and expose state to the MCP server — no package needed. Add this to your app entry point in dev mode:
if (__DEV__) {
globalThis.__METRO_BRIDGE__ = {
commands: {
// Run custom actions from the MCP client
login: async ({ email, password }) => {
return await authService.login(email, password);
},
resetOnboarding: () => {
AsyncStorage.removeItem('onboarding_completed');
},
switchUser: ({ userId }) => {
store.dispatch(switchUser(userId));
},
},
state: {
// Expose state snapshots readable via get_redux_state
userStore: () => useUserStore.getState(),
},
};
}
Use list_commands and run_command to call these from the MCP client.
For enhanced features like real-time Redux action tracking, navigation events, performance marks, and React render profiling, install metro-bridge — see the client SDK docs and profiling guide.
See configuration docs for environment variables, CLI arguments, and config file options.
metro-mcp is fully extensible. See the plugins guide to build your own tools and resources.
MIT
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.