Termux MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Termux MCPCheck the git status of my project and show me the diff"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Termux MCP

Termux MCP turns an Android phone running Termux into a remote execution environment for Claude Code, Codex-style tools, and other AI agents that support the Model Context Protocol (MCP).
The project runs a small MCP server inside Termux and exposes one deliberate capability: a full Bash shell for the current Termux user. The connected agent can inspect files, edit projects, install packages, run tests, use Git, and work with the tools already available on the phone.
Termux MCP does not provide Android root access. It provides the permissions available to the current Termux user.
How it works
An AI agent sends a task through MCP. Termux MCP delivers the agent's shell work to the Android phone, where the command runs in the user's Termux environment and the result is returned to the agent.

AI agent → MCP URL → ngrok tunnel → Termux MCP server → Bash in TermuxThe bridge is temporary. Running tmcp starts both the MCP server and the ngrok tunnel. Pressing Ctrl+C stops both processes.
Related MCP server: android-shizuku-mcp
Requirements
You need an Android device with Termux installed. Install Termux from F-Droid or the official Termux project sources rather than mixing packages from unrelated builds.
You also need an ngrok account and its Authtoken. Each user supplies their own token locally; no token is included in this repository or sent to a project server.
Install
Run these commands in Termux:
git clone https://github.com/craftultra000-png/Termux-mcp.git
cd Termux-mcp
chmod +x install.sh tmcp.sh
./install.shThe installer checks that it is running in Termux, installs Python and the packages needed for the Android DNS workaround, installs the MCP dependency, detects the device architecture, downloads the matching ngrok binary, and asks for the user's Authtoken. The token is passed directly to ngrok's local configuration and is not written into project files.
Run
After installation, start the bridge from any Termux directory with:
tmcpThe tmcp command uses the project directory recorded during installation, so it can be run from ~ or any other working directory.
The script prints an MCP URL similar to:
https://example.ngrok-free.app/mcpCopy that URL into your MCP-compatible AI agent. The URL is generated by the user's ngrok session and may change when the tunnel is restarted unless the user configures an ngrok domain in their own account.
Stop the bridge when finished:
Ctrl+CSecurity warning
This project intentionally gives the connected AI agent full shell access to the current Termux user. That includes the ability to create, modify, execute, and delete files and to run commands available in the Termux environment.
Treat the MCP URL as a private remote-control credential. Do not share it with anyone or any service you do not trust, and stop tmcp when it is not in use. Never publish your ngrok Authtoken. Read SECURITY.md before connecting an agent.
Project layout
File | Purpose |
| MCP server exposing the Termux shell. |
| Starts the MCP server and ngrok, then stops both on |
| Installs dependencies, downloads the correct ngrok binary, and configures the token. |
| Python dependency declaration. |
| Security model and responsible-use guidance. |
| Release history. |
Development
The server listens on port 8000 inside Termux. The installer uses termux-chroot for ngrok because some Android/Termux environments resolve DNS through a local IPv6 resolver that ngrok cannot reach directly.
To run the server manually for local development:
python server.pyFor normal use, prefer tmcp, because it coordinates the server and tunnel lifecycle.
License
Termux MCP is released under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
I run shell commands on your private cloud environment (bash, sh, zsh)
Control real Android and iOS devices with LLM agents — tap, swipe, type, automate flows.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Remote shell and detached long-running jobs on your own machines — no SSH, open ports or VPN.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to directly control Android devices via Termux, providing 120+ tools for screen manipulation, file management, app control, and system operations with layered loading and security gating.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to control Android devices securely via Shizuku and Termux:API, providing a universal shell tool for command execution and persistent sessions.5Apache 2.0
- FlicenseNot gradedqualityAmaintenanceGives an agent full shell access on Termux with file read/write/edit capabilities.3-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to remotely control an Android device from a PC, using Termux API for camera, location, SMS, notifications, and shell commands over SSH or SSE.MIT