Expose devices as an MCP service
MCP (Model Context Protocol) is a protocol standard that lets AI models interact with external tools and capabilities.
Midscene provides MCP services that expose atomic operations in Midscene Agent (each Action in the Action Space) as MCP tools. Upper-layer Agents can use natural language to inspect the UI, precisely operate UI elements, and run automation tasks without needing to understand the underlying implementation.
Because Midscene Agent relies on a vision model, configure the environment variables required by Midscene inside the MCP service instead of reusing the upstream Agent's model configuration.
MCP tool list
View execution reports
After each interaction finishes, Midscene generates a task report. You can open it directly in the command line:
The report includes detailed interaction information such as screenshots, operation logs, and error details to help with debugging and troubleshooting.
Configure MCP
Browser Bridge Mode
@midscene/web-bridge-mcp exposes the Chrome extension Bridge Mode as an MCP service.
Environment preparation
Refer to Chrome Bridge Mode to ensure the browser extension starts correctly and that you have clicked Allow connection in Bridge Mode.
Configuration
Add the Midscene Web Bridge MCP server (@midscene/web-bridge-mcp) in your MCP client. For model configuration parameters, see Model strategy.
iOS MCP service
Environment preparation
- AI model service: Prepare an OpenAI API Key or another supported AI model service. See Model strategy for more details.
- Device setup: Follow iOS Getting Started to configure WebDriverAgent, certificates, and device connections, and make sure WebDriverAgent is running. You can verify screenshots and basic operations in iOS Playground.
Configuration
Add the Midscene iOS MCP server (@midscene/ios-mcp) in your MCP client. For model configuration parameters, see Model strategy.
Android MCP service
Environment preparation
- AI model service: Prepare an OpenAI API Key or another supported AI model service. See Model strategy for more details.
- Device setup: Follow Android Getting Started to configure adb and connect your device. Ensure
adb devicescan recognize the target device. Use Android Playground to verify screenshots and basic operations.
Configuration
Add the Midscene Android MCP server (@midscene/android-mcp) in your MCP client. For model configuration parameters, see Model strategy.

