Skip to content

MCPUpdated 9 min read

MCP server for real phones: which tools to expose and refuse

An AI app connected to a phone can do whatever its tools allow. Here is the tool set Lusor's MCP server gives an app that signs in, why each job is its own named tool instead of one raw API call, what an API key adds, and what a sign-in connection never does.

By Josiah Richards

TL;DR

  • Lusor runs a remote MCP server at https://mcp.lusor.ai/mcp. An AI app adds that URL, the user signs in with Lusor, and the app can run agents on the user's phones and control them directly.
  • A sign-in connection gets 11 named tools about the user's own iPhone or Android: list_phones, get_phone, connect_phone, get_screenshot, get_screen_state, list_tasks, get_task, run_task, stop_task, reply_to_task and phone_action.
  • Named tools replace a spec search and a raw API call per answer. Each tool returns compact JSON and is marked read-only or not, so the app asks before anything that changes the phone.
  • An API-key connection adds tools for Android Lusor Phones in the cloud, and two advanced tools, search and execute, that find and call any documented /v1 operation of the Lusor API.
  • A sign-in connection cannot buy, remove or wipe a phone, answer a password or code question, or reach billing, API keys, members, the vault, static IPs or workspace creation. Those answer 403 forbidden_for_mcp_oauth.

An AI app that reaches a phone over MCP can do exactly what its tools let it do. So the important design work in an MCP server for phones is the tool list: which jobs get a tool, what each one returns, which ones the app has to ask about first, and which jobs have no tool at all.

Lusor runs a remote MCP server at https://mcp.lusor.ai/mcp. This post goes through what it lists for an app that signs in, what an API key adds, what it refuses, and how to add it to Claude, ChatGPT, Codex or Cursor.

Why does a phone need named MCP tools rather than one generic API tool?

Because a generic tool makes the model do the server's work on every turn. Lusor's server first offered two generic tools: search, which finds an operation in the Lusor API spec, and execute, which calls it. In a live test with Claude, three problems showed up.

  • Every answer cost a search of the spec plus a raw call, even for a question as simple as which phones exist.
  • The raw list of phones carried internal fields and about 100 agents per phone, enough to hit the server's cap of about 6,000 tokens per tool result.
  • Every call needed the user's approval, because execute can change anything and is marked as destructive.

Named tools fix each of these. A tool does one job and maps to documented /v1 operations, so the model never searches a spec. Results are compact JSON. Internal transport fields and agent lists are dropped, and long text is capped. Every tool carries a title and hints. The seven tools that only read are marked readOnlyHint: true, so an app such as Claude can run them without asking. The four that change something are marked destructiveHint: true, so the app asks first.

The app directories hold servers to the same standard. Claude's directory requires a title and read-only and destructive hints on every tool, and both Claude's Connectors Directory and ChatGPT's app directory reject a generic executor.

Named tools add no privilege. Each one calls the Lusor API with the connection's own credential, and the API still decides what that credential may reach. The descriptions do steer the model. run_task says to use phone_action for one exact tap, and phone_action says to use run_task for a whole job. Fewer round trips matter on a phone, where each step already includes reading the screen and waiting for the app, as the post on where a phone agent's time goes explains.

Which tools does an AI app get when it signs in with Lusor?

Eleven tools, all about the user's own iPhone or Android and the tasks that run on it. That is the whole set for a sign-in connection, which is the default in every app the Lusor docs cover.

The 11 tools of a sign-in connection
What it doesAnnotation
list_phonesLists the phones in the workspace: id, name, platform, whether each is online, and whether it is busy or idle.Read-only
get_phoneReturns one phone's details.Read-only
connect_phoneReturns the steps to connect the user's own iPhone or Android, then reports the phone once it is connected.Read-only
get_screenshotTakes a fresh screenshot and returns it as an image.Read-only
get_screen_stateReturns the screen as a list of UI elements, with the interactive ones numbered.Read-only
list_tasksFinds earlier tasks.Read-only
get_taskReturns a task's status and result, and can wait for it to finish.Read-only
run_taskHands a job to Lusor's phone agent with a prompt and returns the task id.Changes something
stop_taskCancels a running or queued task.Changes something
reply_to_taskAnswers the question a task is waiting on, and the task resumes.Changes something
phone_actionDoes one exact action: tap, swipe, type, key, back, home or launch an app.Changes something

list_phones comes first, because every other phone tool needs a phone_id, and it shows whether the phone is online and idle. From there an app has two ways to work.

  • Hand over a job. run_task gives Lusor's phone agent a self-contained prompt, such as "open Settings and turn on dark mode", and the agent works on its own. It returns the task id at once, or waits up to 50 seconds with wait_seconds. If the task is still running, the app calls get_task again. It never calls run_task again for the same job, because that starts a second agent.
  • Act step by step. get_screen_state numbers the interactive elements on screen, and phone_action taps one by its number. An action is never retried, so a repeated tap taps twice. The app reads the screen after an action instead of repeating it.

A task records a video of the phone by default, and get_task returns its link. That is what lets someone check a task the app says is finished, the subject of how to check an agent that says it is done.

There is no separate install tool on a sign-in connection. Installing an app on the user's own phone is a run_task request, for example "install Instagram from the App Store".

What does an API-key connection add?

Seven more tools, for 18 in all. An app that sends Authorization: Bearer lusor_... with a key from the workspace's API keys page gets the 11 tools above plus these.

  • Lusor Phones. add_phone, remove_phone and wipe_phone manage Android Lusor Phones in the cloud; iPhone Lusor Phones are available through Contact sales. install_app installs apps from the Lusor app catalog on a Lusor Phone, and list_app_installs follows the install.
  • The advanced path. search and execute find and call any documented /v1 operation of the Lusor API, for jobs no named tool covers, such as workspaces, agents and files.

The tools that buy or erase take two calls. The first call to add_phone or remove_phone only returns a quote, and nothing is bought or removed. The app shows the quote to the user and calls again with its confirm_preview_id only after they agree. The first call to wipe_phone only lists what will be erased, and the second call needs the phone's name as the user typed it. It refuses the user's own phone, because only a Lusor Phone can be wiped this way.

A key is tied to one workspace, and every call is checked by the API, so the app can do no more than the key can. The authentication docs cover creating a key and how it is bound to its workspace. Code that calls the API without MCP can use Lusor's open-source TypeScript SDK.

What can an MCP connection never do?

Anything its credential cannot. An MCP connection can do what an API key can and nothing more. A sign-in connection is narrower again, and the limits are in the server, not in the model's instructions.

  • No account administration. Over a sign-in, billing, API keys, members, the vault, static IPs and workspace creation answer 403 forbidden_for_mcp_oauth. Those are managed in the Lusor app.
  • No buying, removing or wiping a phone. Those tools are not in the sign-in list. An app that calls one from an old, cached tool list gets an error that says nothing was purchased, removed or wiped.
  • No secrets through the chat. When a task asks for a password or a code, reply_to_task refuses to answer it. That answer goes in the Lusor app, so the secret never passes through the AI app. What else an agent can see on a phone is covered in whether it is safe to let an agent use your phone.
  • No key in the app. With a sign-in, the app never sees an API key. The user chooses the organization to connect when signing in.

How does the app know which workspace and phone it is on?

The workspace comes from the connection. With a sign-in, requests use the organization's default workspace. An app can choose another by sending the X-Lusor-Workspace header, and a workspace id in an API path always takes precedence. An API key is bound to its one workspace, so everyone who shares a connector set up with a key shares that workspace.

The named tools take the workspace id from that resolution, never from the model's input. A model can pass a phone_id or a task_id, and the API answers 404 for one that is not in the connection's workspace.

The phone comes from list_phones. A phone runs one task at a time. When an app starts a task on a busy phone, the error says the phone is busy and gives the running task's id when the API returns it. The app can wait for that task or stop it with stop_task.

When there is no phone yet, connect_phone takes the platform, iphone or android, and returns a link, the steps and the full guide for the user. The app then calls it again with wait_seconds until the new phone shows up. The guides for connecting an Android phone and connecting an iPhone have the full steps. The tool changes nothing and buys nothing.

How do you add it to Claude, ChatGPT, Codex or Cursor?

Each app takes the same URL, https://mcp.lusor.ai/mcp, and handles the Lusor sign-in itself. The Connect an AI app guide also covers Grok, Hermes, Pi, Perplexity, OpenCode and Factory Droid.

  • Claude. Open Customize, then Connectors, choose Add and Add custom connector, and enter the URL. In Claude Code, run claude mcp add --transport http lusor https://mcp.lusor.ai/mcp, then run /mcp and choose Authenticate. The --transport http flag is required. The Claude setup guide covers Team and Enterprise.
  • ChatGPT. Lusor is in ChatGPT's app directory. Install it, choose Connect and sign in. Business, Enterprise and Edu workspaces can also add it as a custom MCP server with developer mode, as the ChatGPT setup guide describes.
  • Codex. Run codex mcp add lusor --url https://mcp.lusor.ai/mcp and sign in when the browser opens, or later with codex mcp login lusor. The Codex setup guide shows the API-key form.
  • Cursor. Add an entry named lusor with the URL to ~/.cursor/mcp.json, then start the sign-in from Cursor Settings, under MCP. The Cursor setup guide has a one-click link.

Then ask the app to list your Lusor phones. That first call is list_phones, a read-only tool, so it runs without an approval prompt in apps that honor the hint.

An app that pulls data out of other apps for later use is better served by a structured result than a chat reply. Having an agent build the sheet covers Sheets and JSON output. To judge the agent behind run_task on more than one task, read what a mobile agent benchmark score leaves out.

Frequently asked questions

What is the address of Lusor's MCP server?

https://mcp.lusor.ai/mcp. Add it to an AI app that supports custom MCP connectors and sign in with your Lusor account. The Lusor docs have setup steps for Claude, ChatGPT, Codex, Cursor, Grok, Hermes, Pi, Perplexity, OpenCode and Factory Droid.

Which tools does an AI app get when it signs in with Lusor?

Eleven tools for the user's own iPhone or Android: list_phones, get_phone and connect_phone for phones; run_task, get_task, list_tasks, stop_task and reply_to_task for tasks run by Lusor's phone agent; get_screenshot and get_screen_state to see the screen; and phone_action to tap, swipe, type, press a key, go back or home, or open an app.

Why does Lusor use named MCP tools instead of one generic API tool?

With only a generic tool, every answer cost a search of the API spec plus a raw call, the raw list of phones carried internal fields that filled the tool-result limit, and every call needed approval because a generic call can change anything. Named tools return compact results and say whether they change the phone, so the app only asks before the ones that do.

What does an API-key connection add?

Tools for Lusor Phones: add_phone, remove_phone and wipe_phone, plus install_app and list_app_installs for the Lusor app catalog. It also adds search and execute, which find and call any documented /v1 operation of the Lusor API. Every call is still checked by the API, so the app can do no more than the key can.

What can an MCP sign-in connection never do?

It cannot buy, remove or wipe a phone, and it cannot answer a task's question that asks for a password or code; that answer goes in the Lusor app. Billing, API keys, members, the vault, static IPs and workspace creation answer 403 forbidden_for_mcp_oauth.

How does the app choose a workspace?

With a sign-in, requests use the organization's default workspace, and the app can choose another by sending the X-Lusor-Workspace header. An API key is tied to one workspace. The named tools take the workspace from the connection, never from the model's input.