Metro MCP
一個基於插件的 MCP 伺服器,用於 React Native 執行時除錯、檢查與自動化。透過 Chrome DevTools Protocol 連接至 Metro bundler,大多數功能無需修改應用程式碼。
文件
metro-mcpThe MCP server for React Native & Expo
Connect Claude, Cursor, VS Code, OpenCode, Codex or any MCP-compatible AI agent to your running app. Inspect components, track network requests, record tests, and more — no app code changes needed.
Tools Reference
View on GitHub
Claude
You|
Claude
Claude
You|
Claude
Quick Install
Multiple AgentsClaude CodeCodexOpenCodeCursorVS Code
npx add-mcp metro-mcp --all -g -y
🔌
Zero setup
Connects to Metro via Chrome DevTools Protocol. No app modifications required for core debugging features.
🧩
Plugin-based
Every capability is a plugin. Extend metro-mcp with local files or npm packages using the definePlugin API.
🤖
AI-native
Designed as an MCP server — expose tools, resources, and prompts directly to Claude, Cursor, VS Code, OpenCode, Codex and more.
🧪
Test recording
Record real user interactions and generate Appium, Maestro, or Detox tests with accurate selectors automatically.
📊
Profiling
CPU profiling via Hermes CDP and React Profiler integration to find performance hotspots fast.
🛠️
Full control
Inspect components, dispatch Redux actions, navigate, take screenshots, run JS — all from your AI agent.