Metro MCP
MCP server for React Native and Expo that connects AI agents to running apps for debugging, inspection, and automated testing via Metro/CDP.
Metro MCP is an AI-native debugging and automation server for React Native and Expo applications. It exposes a Model Context Protocol (MCP) interface that allows AI agents (such as Claude, Cursor, or VS Code agents) to interact directly with a running mobile app through the Metro bundler and Chrome DevTools Protocol.
The system enables deep runtime inspection without requiring modifications to the app code. Through the MCP interface, agents can access the React component tree, inspect Redux state, observe network requests, trigger UI interactions, capture screenshots, and even record user flows for automated test generation.
Metro MCP effectively turns a running React Native application into an inspectable, controllable environment for AI agents. It bridges developer tools like Metro, Hermes profiling, and React DevTools into a unified command surface that can be used programmatically.
It is built around a plugin-based architecture where each capability (network inspection, UI interaction, profiling, storage access, etc.) is exposed as a structured tool callable by MCP clients. This makes it suitable for automated debugging, test generation, performance profiling, and agent-driven QA workflows.
Key features include:
- MCP server for React Native and Expo debugging workflows
- Live inspection of React component trees and app state
- Network request monitoring and analysis via Metro/CDP
- UI interaction tools for tapping, typing, and navigation
- Automated test recording and generation (Appium, Detox, Maestro)
- Performance profiling with Hermes and React Profiler integration
- No-code instrumentation (no app modifications required for core features)
Common use cases include:
- AI-assisted debugging of React Native apps
- Automated mobile QA
- Real-time inspection of running apps
- Performance profiling
- Generating end-to-end tests from recorded sessions
- Building agent-driven development workflows for mobile applications
Metro MCP is developed by Stephen Radford as an open-source tool focused on AI-native React Native development infrastructure.
Comments
0Markdown is supported.