Skip to content

AI Automation (MCP) ​

Vysor can expose an open device viewer as a Model Context Protocol server. Point an MCP client at the viewer and an AI agent can inspect the device, take screenshots, and send taps, swipes, keystrokes, and text without an emulator.

MCP automation is included with Vysor Pro and is available in the native Vysor desktop app on Windows, macOS, and Linux. The web app does not expose an MCP server.

Start the Server ​

The MCP server starts with the device viewer:

  1. Connect a device and open it in Vysor.
  2. Open Settings and expand Device Settings.
  3. Copy the MCP Server URL.

The URL looks like:

text
http://127.0.0.1:PORT/RANDOM-PATH/mcp

The random path is the endpoint's secret. Vysor saves the endpoint for the device, and the server listens only while the viewer is open. Closing the viewer stops the server.

Connect an MCP Client ​

Add the URL to your MCP client as a Streamable HTTP server. Configuration varies by client; a typical entry looks like:

json
{
  "mcpServers": {
    "vysor": {
      "type": "http",
      "url": "http://127.0.0.1:PORT/RANDOM-PATH/mcp"
    }
  }
}

Use the 127.0.0.1 URL when the MCP client runs on the same computer as Vysor. For a client on another machine, replace 127.0.0.1 with the Vysor computer's LAN address.

Integrated Development Environments ​

Vysor integrates into IDEs with the embedded viewer: open the app with ?viewer inside the IDE and it shows the devices shared by the Vysor Desktop app. Add the desktop app's MCP URL to the IDE's coding agent so it can screenshot and control the device while it works.

Security ​

Treat the full MCP URL as a password. Anyone who can reach the endpoint and knows the random path can control the device.

  • Vysor rejects requests that include an Origin header, which blocks normal browser pages from calling the server.
  • The server uses plain HTTP. Do not expose its port to the public internet; use a trusted local network, VPN, or SSH tunnel instead.
  • Close the viewer when you are done to stop the endpoint.