Device MCP
MCP server by MetaMask Verified · npm:@metamask
Device MCP is an MCP server from MetaMask that lets AI assistants inspect and interact with mobile devices. It supports iOS, Android and remote Appium or BrowserStack devices. It is built for debugging, exploratory testing and self-healing E2E tests.
Install Device MCP
Built from the published package, never by AI.
claude mcp add device-mcp -- npx -y @metamask/device-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"device-mcp": {
"args": [
"-y",
"@metamask/device-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"device-mcp": {
"args": [
"-y",
"@metamask/device-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"device-mcp": {
"args": [
"-y",
"@metamask/device-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add device-mcp -- npx -y @metamask/device-mcp{
"mcpServers": {
"device-mcp": {
"args": [
"-y",
"@metamask/device-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add device-mcp npx -y @metamask/device-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the device-mcp block.
About
Device MCP is a Model Context Protocol server from MetaMask for mobile device interaction. It works with iOS simulators through simctl and IDB, with Android devices through ADB, and with remote devices through Appium and BrowserStack. The source says it gives LLM agents tools to inspect UI state, interact with elements, capture evidence and control app lifecycle.
The server communicates over stdio and defers device connection until the first tool call. It picks a backend from a .device-session file, DEVICE_ID, or DEVICE_PLATFORM, and asks the user to choose when several devices are connected. It is aimed at developers debugging locally or during Appium tests, and at teams building or healing E2E tests for MetaMask Mobile.
Written from the project's README and checked against it.
Tools it gives your assistant
device_list_devicesLists the available devices when several are connected.device_select_deviceSelects the device the server should use for later calls.
What you need
- Node.js ^20, ^22 or >=24
- Xcode Command Line Tools and IDB for local iOS
- ADB from Android SDK platform-tools for local Android
- Appium or a BrowserStack account for remote devices
Try asking
- List the mobile devices available to my AI assistant.
- Select the iPhone simulator and show me what is on screen.
- Open the Android emulator and check the app logs for errors.
Good to know
- Hermes CDP on Node 20 requires NODE_OPTIONS="--experimental-websocket".
- On iOS 17+ simulators, element extraction needs the modern idb client; legacy fb-idb does not read the UI hierarchy.
- With multiple devices and no DEVICE_ID set, the agent must pick a device before other tools work.
- The full tool list is not shown in the source excerpt.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Device MCP
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Device MCP: common questions
Which mobile platforms does Device MCP support?
The source says it supports iOS simulators through simctl and IDB, Android devices through ADB, and remote devices through Appium and BrowserStack.
Does it work with iOS 17 simulators?
Yes, but element extraction requires the modern idb client that supports the --api option. The legacy python fb-idb client will not read the UI hierarchy on newer runtimes.
How does it choose a device when several are connected?
With multiple devices and no DEVICE_ID set, the server enters an awaiting selection state. The agent can list devices and pick one with device_select_device.
How do I install Device MCP?
In Claude Code run claude mcp add device-mcp -- npx -y @metamask/device-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Device MCP the official server?
Device MCP is published by npm:@metamask from its verified domain in the official MCP Registry.
Is Device MCP free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Device MCP safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Device MCP?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Device MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
