Skip to content
Documentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

Remote MCP server

Sign in once with OAuth or an API key, then let an MCP client provision and clean up devices by itself.

https://mcp.limrun.com/mcp is Limrun’s organization-level Model Context Protocol server. Connect it once, and any MCP client can create iOS simulators, Android emulators, and macOS virtual machines, drive them by screenshot, accessibility tree, and shell command, and delete them when done.

  • One endpoint, signed in with your Limrun account. OAuth is the default: the client opens a browser, you approve access, and tokens refresh on their own afterwards. For headless setups, an API key in an Authorization: Bearer header works too.
  • Stateless. Every tool that touches a device takes an explicit instanceId, so there is no session to lose. Reconnects and long gaps are fine.
  • Instances only. An OAuth connection can create, inspect, drive, and delete instances, list your app assets, read your private tunnels so it can name one at create time, and open support tickets. It cannot reach billing or the rest of the API. Builds and file uploads stay on the lim CLI.

Choose the remote or per-instance server

Every instance also runs its own MCP server. Pick by who holds the credential:

Aspect Remote server Per-instance server
Endpoint https://mcp.limrun.com/mcp for the whole organization One URL per instance, from status.mcpUrl
Auth OAuth sign-in, or an API key That instance’s status.token
Lifecycle tools Create, list, inspect, and delete instances None; the instance must already exist
Blast radius Every iOS simulator, Android emulator, and macOS virtual machine in the organization One instance; the token stops working with it
Best for An agent that owns the whole loop, from “get me a device” to cleanup Handing one device to an agent that holds no organization credential

Connect from Claude Code

Add the server:

claude mcp add --transport http limrun https://mcp.limrun.com/mcp

Then open a Claude Code session, run /mcp, select limrun, and choose Authenticate. After you approve access in the browser, /mcp shows the server as connected. Access tokens rotate automatically from then on, and you are not asked to sign in again unless you revoke access.

Connect from other MCP clients

Any client that speaks the MCP Streamable HTTP transport works with one of two auth setups:

  • OAuth. Point the client at https://mcp.limrun.com/mcp and complete the sign-in it triggers. The server advertises its authorization server through the standard discovery metadata, so clients that support remote MCP servers find the flow on their own.
  • API key. Configure the same URL with the header Authorization: Bearer <LIM_API_KEY>. Use this where no browser is available, such as CI or a cloud agent. Create keys in the console under Settings, API Keys.

The server is listed in the official MCP registry as com.limrun/mcp and on Smithery, where you can also connect it through the Smithery gateway.

Tools

The server lists 24 tools for the model, in the seven groups below, and three app-only tools for the device panel.

Lifecycle and assets. These take no instanceId; they operate on the organization.

Tool What it does
create-ios-simulator Creates a simulator, blocks until it is ready, and returns the instance ID. Optional apps pre-installs apps by asset name or public URL, optional inactivityTimeout overrides the organization default, optional idempotencyKey makes retries return the same instance, and optional tunnel names a private tunnel so the app reaches services in your private network.
create-android-emulator Same contract for Android emulators. apps entries are asset names or public APK URLs.
create-macos-instance Same contract for macOS virtual machines, without apps. macOS is enabled per organization; where it is not, creation fails with a message that says so.
list-instances Lists the organization’s running iOS simulators, Android emulators, and macOS virtual machines with their IDs and states. Xcode and Gradle sandboxes are not listed.
get-instance-status Returns the state and error message for one instance ID.
delete-instance Terminates an instance. It and macos-run are the only destructive tools.
list-apps Lists the app asset names you can pass to the apps field of the create tools, per platform.

Live view. stream-device takes an instanceId and shows the user the live, interactive screen of an iOS simulator or Android emulator, inline where the client supports it. For a macOS virtual machine, use macos-screenshot instead.

iOS device control. ios-screenshot-and-element-tree, ios-use (batched taps, typing, scrolling, and the rest of the action surface), ios-open-url, ios-app (list, launch, terminate), and ios-logs.

Android device control. android-screenshot-and-element-tree, android-use, and android-open-url.

macOS control. macos-screenshot, macos-use (mouse and keyboard actions in screenshot coordinates), macos-run (runs a shell command and returns its exit code and output), macos-open-url, macos-app (list, launch, terminate), and macos-logs.

Each device-control tool, like stream-device, takes the instanceId a create tool returned. For iOS and Android, the action surfaces match the per-instance server, which documents them in detail.

Skills. get-agent-skill is covered in Agent skills.

Support. submit-support-request opens a support ticket or sends product feedback for your organization.

Device panel. open-devices, open-live-device, and install-app are app-only tools: their _meta.ui.visibility is ["app"], so hosts that render MCP Apps keep them out of the model’s tool list, and only the Limrun device panel calls them. open-devices opens the panel to choose or create a device, open-live-device opens a live device beside the conversation, and install-app installs an app asset on a running instance (on iOS and macOS it also launches the app). Opening the panel does not create a device.

Apps install at creation time through the apps field. The model has no install tool for a running instance (install-app is app-only): MCP gives the server no access to the client’s filesystem, so anything that moves local bytes (an APK, a simulator build, an Xcode project) belongs to the CLI and SDKs. Upload builds to Asset Storage first and they show up in list-apps. Instances created through this server carry a created-by: mcp label.

Agent skills

The server’s initialize response tells clients that builds and local files belong to the lim CLI. For those and other tasks outside the MCP tools, it serves the following skills from limrun-inc/skills as Agent Skills: step-by-step procedures for the lim CLI or the SDKs. The skills reach an agent in three forms:

  • The get-agent-skill tool. Pass one of the skill names in the following table.
  • skill:// resources with a skills/list catalog, for clients that follow the MCP skills extension.
  • The same content installed locally. Where the lim CLI is installed, use lim skills install; before it is, npx skills add limrun-inc/skills installs the same skills.
Skill What it covers
limrun-xcode Build, test, and sign iOS and Mac apps with lim xcode on a remote Xcode sandbox.
limrun-gradle Build, sign, and publish Android apps with lim gradle on a remote build sandbox.
limrun-bazel Build Bazel iOS and Android targets on Limrun’s shared build plane.
limrun-xcode-bazel Legacy. Build Bazel iOS apps with lim xcode rbe on a dedicated Xcode sandbox. Use limrun-bazel for new projects.
limrun-expo-development Develop and run Expo apps against Limrun simulators and emulators.
limrun-maestro-testing Run Maestro flows against an iOS simulator.
limrun-detox-testing Run and debug Detox tests on iOS simulators.
limrun-access-tokens Create and revoke scoped access tokens with the CLI or the TypeScript SDK.

The server leaves out the skills for driving simulators, emulators, and macOS virtual machines, because its device tools do that work within the session. To drive devices from scripts or CI, install limrun-inc/skills locally. An agent that needs to build something asks for the skill, installs the CLI it describes, and continues in its own shell.

Revoke access

Tokens minted through OAuth appear in the console under Settings, API Keys, described as MCP OAuth tokens. Revoking one invalidates only the current access token: the client is challenged on its next request and rotates to a fresh token with its refresh token, without asking you to sign in again. To disconnect a client, remove the server from that client’s configuration.

Next steps

Last updated on