What MCPBox does
MCPBox places an MCP server, terminal, browser, and related services inside one Android application. AI clients can connect to the phone to read and write files, run terminal commands, interact with web pages, inspect or control the Android interface, and use a Markdown-based memory store. The application also provides upload and download endpoints, static web hosting, an SSH/SFTP service, custom tools, location tools, and token management.
The server starts with a limited tool set and exposes additional capabilities through tool packages. The default package presents 22 tools out of a total of 69, allowing the phone owner to expand access when needed. Tool packages can be managed in the app or by the connected AI, and separate MCP sessions can use package-specific paths.
How it works
Open the Android app, start the service, and connect an MCP client to the phone's /mcp endpoint. Streamable HTTP is the recommended transport; SSE is also available. The app generates a complete URL containing an access token, so the client needs the phone's local network address, the endpoint path, and the tokenized address.
Sensitive actions can require an explicit decision on the phone. Approval choices include allowing or rejecting one call, or remembering an allow or deny decision. Rules can be applied by permission, path, command, or individual tool, with approval delivered through a floating window or notification area.
Execution uses one of three identities: the Android app sandbox, Root, or Shizuku. Normal file operations, the memory store, the embedded browser, and static hosting do not require Root. Terminal execution and Android UI automation require Root or Shizuku.
Setup and configuration
MCPBox requires Android 8.0 or later. Install the APK, open the app, enable the service, and use the app's copy-address action to obtain the connection URL. The default service port is 8720, and the port can be changed to another value from 1024 through 65535. Enable local-network access when connecting from another device, and check that the network does not isolate clients through guest networking or access-point isolation.
Use the permissions and tool-package screens to expose only the capabilities required by the client. The terminal screen can request Shizuku when command or interface access is needed. Notification access, overlay behavior, and battery-optimization settings may also affect approvals and background operation.
Clients fetch the tool list when they connect. After changing tool packages, reconnect the client or restart the app so the new list is loaded. A client that only supports stdio, such as Claude Desktop, needs an HTTP-to-stdio bridge such as mcp-remote.
Tools and capabilities
- Read and write phone files, upload files, download files, and transfer directory archives.
- Execute terminal commands through the sandbox, Root, or Shizuku identity.
- Browse websites, read page content, click, enter text, scroll, run JavaScript, take screenshots, search, and manage cookies or user agents by page.
- Inspect the Android screen and control it with screenshots, control-tree access, taps, swipes, text entry, and application launching.
- Store long-term AI memories as editable Markdown files and import or export the memory collection.
- Serve phone web files under
/web and expose an SSH/SFTP workspace.
- Manage tool packages, permissions, approval rules, tokens, custom tools, statistics, and backups.
Limitations and notes
MCPBox is Android-only. Command execution and UI automation depend on Root or Shizuku, while the app sandbox has narrower access. A foreground service and wake lock allow operation while the device is locked, but Android battery management or dismissing the app can stop continued operation.
The service is intended for network access using its token. Resetting the token invalidates the previous one. Application-private settings, memories, and statistics are removed when the app is uninstalled, so export a backup first if they must be retained. The project is released under GPL-3.0.