metro-mcp is an MCP server for React Native apps that connects to a running Metro dev server and Hermes via Chrome DevTools Protocol to expose debugging, inspection, automation, and test-recording capabilities. It supports Expo, bare React Native, and other Metro+Hermes projects without requiring app code changes for core features.
From the registry: MCP server for React Native/Expo runtime debugging, inspection, and automation via Metro/CDP
Please install the `metro-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Node.js 18+ or Bun 1.0+** — Node.js 18+ or Bun 1.0+
- **React Native project with Metro** — A running React Native/Expo app with Metro dev server and Hermes engine
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","metro-mcp"]
- optional environment variables:
- `METRO_MCP_PROXY_PORT`: Fixed CDP proxy port (example: `9222`)
- `METRO_MCP_PROXY_ENABLED`: Enable/disable CDP proxy (example: `true`)
Note: Use --port flag for custom Metro port (e.g., 19000 for Expo).
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.METRO_MCP_PROXY_PORTSets the fixed port used by the built-in CDP proxyMETRO_MCP_PROXY_ENABLEDEnables or disables the built-in CDP proxyReal-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.