MCP quickstart
Connect Claude Code, Claude Desktop, Cursor or VS Code to your phones with the AutoViral MCP server.
What you get
AutoViral runs a hosted MCP server for your phones. Point your AI agent at it and the agent can list your phones, see their screens, tap, type, open apps, move photos and videos onto them, and save what it did as a workflow to repeat later. It works on real phones connected to your AutoViral Driver. Nothing agent-facing runs on your computer.
| Server | URL |
|---|---|
| Phones | https://autoviralapp.com/api/mcp/phones |
| Accounts | https://autoviralapp.com/api/mcp/accounts |
Both use Streamable HTTP and the same API key, sent as Authorization: Bearer <key>. Get a key in the dashboard under Settings › developer › api keys, or run autoviral-driver, choose 3 (AI Driver Setup), then 1 (Setup MCP). It creates the key and shows the Claude Code command and a JSON block with your key filled in.
Anyone with the key can drive your phones. If it leaks, revoke it and generate a new one.
Claude Code
Run once in a terminal. It then works in every project:
claude mcp add --transport http --scope user autoviral-phones \
https://autoviralapp.com/api/mcp/phones \
--header "Authorization: Bearer <your API key>"
For the Accounts server, run the same command with the name autoviral-accounts and the URL https://autoviralapp.com/api/mcp/accounts.
Claude Desktop
Claude Desktop runs local MCP servers, so it reaches ours through mcp-remote (needs Node.js). Open Settings › Developer › Edit Config and add:
{
"mcpServers": {
"autoviral-phones": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://autoviralapp.com/api/mcp/phones",
"--header", "Authorization:${AUTH_HEADER}"
],
"env": { "AUTH_HEADER": "Bearer <your API key>" }
}
}
}
Restart Claude Desktop. The same block works for Windsurf, Cline and other apps that only run local servers.
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"autoviral-phones": {
"url": "https://autoviralapp.com/api/mcp/phones",
"headers": { "Authorization": "Bearer <your API key>" }
}
}
}
VS Code (Copilot agent mode)
Add to your user or workspace mcp.json:
{
"servers": {
"autoviral-phones": {
"type": "http",
"url": "https://autoviralapp.com/api/mcp/phones",
"headers": { "Authorization": "Bearer <your API key>" }
}
}
}
Web apps that add "custom connectors" by signing in (claude.ai, ChatGPT) are not supported yet: they need an OAuth sign-in this server does not offer.
Try it
Ask your agent:
List my phones, then open Settings on the first one and tell me what is on the screen.
Every session your agent runs shows up in your dashboard under Automation logs, marked as an AI session.
Phones tools
Each tool's description tells your agent which kinds of phone it works on. The main groups:
| Group | Tools |
|---|---|
| Phones | list_phones, select_phone, phone_info, phone_storage, free_memory; control-board iPhones: board_status |
| Screen and input | get_screen, tap, long_press, swipe, scroll, text_input, press_key, wait, unlock, wake |
| Apps | open_app, close_app, list_apps, current_app |
| Media and files | upload_media, clear_media (on a control-board iPhone both are part of Controller Plus, added per phone: without it the tool answers with the link that adds it to that phone); upload_local_file for a file that is on your computer; Android only: push_file, pull_file, install_apk, execute_shell |
| Network | get_proxy, set_proxy (optionally with proxy = a pool id), clear_proxy, set_radio |
| Proxies | list_proxies, add_proxy, update_proxy, remove_proxy, check_proxy — your proxy pool, as on the dashboard's Proxies tab |
| Tasks | begin_task, end_task |
| Workflows | save_workflow, list_workflows, get_workflow, run_workflow, get_workflow_run, list_workflow_runs, update_workflow, delete_workflow, improve_workflow, improve_workflow_step, watch_workflows, and rule and media tools |
| Schedules | create_schedule, create_schedules, list_schedules, update_schedule, delete_schedule, list_schedule_runs |
Some plans add more tools (for example isolated app slots on jailbroken iPhones, and Hide My Email aliases: mine_list, mine_aliases, mine_generate, mine_delete, mine_forward); list_phones says what your plan includes. The complete, current list with every argument is at GET https://autoviralapp.com/api/v1/phones, and every tool can also be called over the REST API.
A photo, video or file that is on your computer
The server cannot read a path on your computer (/Users/…, C:\…), so upload_media, push_file and install_apk take a public link, or a reference from upload_local_file. Give your agent the file's path and it does the rest: it calls upload_local_file, runs the one curl command it gets back on your computer, and passes the reference that command prints (avmedia:… for a photo or video, avfile:… for any other file, such as an APK) to the tool. The file goes to your AutoViral account only; nothing is made public. Files can be up to 500 MB.
If your AI app cannot run commands, it gives you the command to paste into Terminal (Mac, Linux) or PowerShell (Windows); paste back the line it prints.
Proxies
Your agent can manage your proxy pool. An external proxy is added as it is; a proxy only one of your computers can reach (a 5G modem's SOCKS on 192.168.x.x, a SOCKS on 127.0.0.1) is added local to that computer's AutoViral Driver: the Driver checks it and only its phones use it. It needs the Driver online and up to date, an IPv4 address, Local Network access for the Driver on macOS, and — for Android phones — the computer's network address rather than 127.0.0.1. States, requirements and REST examples: API → Proxies.
Ask your agent:
Add my 5G modem's SOCKS5 proxy at 192.168.2.207:10520 (user modem, password …) as local to my Driver MY-PC, check it, and tell me its exit IP.
List my proxies and put phone PHONE_ID on the one with the lowest latency.
Accounts tools
The Accounts server has one tool per Accounts API endpoint: list_accounts, list_account_groups, list_posts, create_post, update_post, run_post_now, list_content_outputs, get_post_analytics and more. File uploads take files: [{"url": "…", "fileName": "…"}].