1. Conduid
  2. Automation
  3. Termux
MCP server · Automation

Termux

Model Context Protocol (MCP) server for controlling Android devices via Termux

37Low

Scored 5 months ago · breakdown

About Termux

Termux is an MCP server in the Automation category: model Context Protocol (MCP) server for controlling Android devices via Termux.

Install

Claude Code
claude mcp add termux -- npx -y termux-mcp
npx
npx -y termux-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Termux

Powered by Claude · Grounded in docs

I know everything about Termux. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

termux-mcp

A Model Context Protocol (MCP) server that provides a bridge between Large Language Models and Android device features via Termux.

This server allows LLMs to interact with your Android device by getting battery status, location, sending notifications, controlling media, taking screenshots, and even performing UI interactions like tapping and swiping.

Prerequisites

To use this MCP server, you need:

  1. Termux installed on your Android device.
  2. Termux:API app installed and the termux-api package installed within Termux:
    pkg install termux-api
    
  3. ADB (Android Debug Bridge) (Optional, for advanced UI automation tools):
    • Enable Developer Options and USB/Wireless Debugging on your device.
    • Install android-tools in Termux:
      pkg install android-tools
      

Installation

  1. Clone the repository:
    git clone https://github.com/akashagg30/termux-mcp.git
    cd termux-mcp
    
  2. Install dependencies:
    npm install
    

Available Tools

System & Sensors

  • battery_status: Get current battery level and health.
  • location: Get GPS coordinates.
  • wifi_info: Get current WiFi connection details.
  • sensor: Read data from various device sensors (accelerometer, gyroscope, etc.).
  • device_info: Get telephony/device information.

Interaction & Feedback

  • vibrate: Vibrate the device.
  • toast: Display a transient popup message.
  • notification: Show a system notification with title and content.
  • torch: Toggle the flashlight.
  • clipboard_get / clipboard_set: Access and modify the system clipboard.
  • volume: Control volume levels for different streams (music, alarm, etc.).

App Management

  • list_apps: List installed applications.
  • open_url: Open a URL in the browser or a file in a supported app.
  • launch_app: Launch an app by its package name.

UI Automation (Requires ADB)

  • tap: Tap at specific (x, y) coordinates.
  • swipe: Perform a swipe gesture.
  • type_text: Type text into the focused field.
  • keyevent: Send hardware key events (BACK, HOME, etc.).
  • screenshot: Capture the current screen.
  • get_ui_hierarchy: Get the XML UI tree for screen analysis.

Usage in Claude/MCP Clients

Add this server to your MCP configuration:

{
  "mcpServers": {
    "termux": {
      "command": "node",
      "args": ["/path/to/termux-mcp/index.js"]
    }
  }
}

License

MIT © akashagg30

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Termux

How do I install Termux?

Run claude mcp add termux -- npx -y termux-mcp, then add the server to your MCP client's configuration.

Is Termux safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Termux still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.