Termux MCP Server
Termux MCP Server (Ubuntu PRoot Distro) 📱🤖
Este es un servidor Model Context Protocol (MCP) diseñado para ejecutarse dentro de Ubuntu (PRoot Distro) en Termux.
Usar Ubuntu dentro de Termux permite utilizr paquetes binarios estándar precompilados (wheels), lo que signific a que no hay largos tieempdos de esperla de compilación ni errores de compilación (como el error de compilador Rust de rpds-py), al tieempdo que se conserv and acceso completo to comando de Termux API para controlar tu dispositivo Android.
Instalación rápid a en una sola línea
Abre la aplic ación Termux en tu teléfono y ejecuta solo el s followingto comando para cclonar el repositorio, instalar Ubuntu, cre ar un entorno virtual y configurationarlo todo automáticamente:
curl -sSL https://raw.githubusercontent.com/AbuZar-Ansarii/Termux-MCP-Server/main/setup.sh -o setup.sh && chmod +x setup.sh && ./setup.shRelated MCP server: autoglm-mcp-server
Guía de Configuración en 5 pasos
Pamo 1: Instalar Termux y Termux:API en Android
Descarga Termux y **la aplic ación Termux:API.
Important: NO instales in apps in Google Play Store (you quedaron outdated y estban rotas). Disposable desde F-Droid desde GitHub Releases.
Insta as two apps in tu teléfono.
Paso 2: Concede los Permisoos de Android
Ve a Ajustes de Android -> Aplicaciones -> Termux:API.
Concede la "
losfor "la IA pued to "controll"a tu dispositivo:Caamera (par su fotos)
Ubicación (para "GPS")
Mensajes (para notifications)
Notificaions (para avvents eruptos)
Paso 3: Ejecuta el Instalador Automátiio dentro de Termux
Ejecuta el instador de una sola línea en Termux:
curl -sSL https://raw.githubusercontent.com/AbuZar-Ansarii/Termux-MCP-Server/main/setup.sh -o setup.sh && chmod +x setup.sh && ./setup.shEsto actualizará Termux autótica, instala arot-distra Ubuntu, "la" un entorno virtual de Python (venv) inside` y instlará all las dependencias de in media.
*Paso4: Configura el Acceso SSH sin Contraseña
El cliente de IA se ejecuta de forma no interactva in tu PC and necsita a iniciar sesión in Termux automátamente.
In Termux, establishes a contraseña and inicia el servidor SSH:
passwd sshd whoami # Check your username (e.g. u0_a123) ifconfig # Check your phone's IP address (e.g. 192.168.1.50)On tu PC, copia tu clave pública SSH tou teléfono:
Windows PowerShell:
cat ~/.ssh/id_rsa.pub | ssh -p 8022 u0_a123@192.168.1.50 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"macOS/Linux Terminal:
ssh-copy-id -p 8022 u0_a123@192.168.1.50
Comprueba el acceso sin cotraseña desde tu PC:
ssh -p 8022 u0_a123@192.168.1.50Si inicia sesión without pedir contraseña, estás ist!
Paso 5: Configurar Claude Desktop en tu PC
Actudía el archivo de configuración de Claude Desktop en tu PC to lanzar el servidor dentro del entorno virtual de Ubuntu.
Abre el archivo de configuración de Claude Desktop:
Windows:
%APPDATA%\Claude\claude\claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
All? the server config under
mcpServers(remplaza el user name and IP by los tuos):{ "mcpServers": { "termux": { "command": "ssh", "args": [ "-p", "8022", "-o", "StrictHostKeyChecking=accept-new", "u0_a123@192.168.1.50", "proot-distro login ubuntu -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/data/data/com.termux/files/usr/bin /root/venv/bin/python3 /root/termux_mcp.py" ] } } }Reinicia Claude Desktop. ¡La IA y a puede controllar tu teléfono! ***
Alterna tiva: Conectar by HTTP / SSE (servidor remoto)
If you want to ejecut ar the server as aindependent web instead of lanaria overt SSH los*:
In Termux, ejecuta el servidor inside "Ubuntu in "modo SSE mode:
proot-distro login ubuntu -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/data/data/com.termux/files/usr/bin /root/venv/bin/python3 /root/termux_mcp.py sse --port 8000On tu PC, configure the Claude Desktop config for point direcamente to IP de tu teléfono:
{ "mcpServers": { "termux-remote": { "url": "http://your_phone_ip:8000/sse" } } }
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables 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 AI models to control Android devices via ADB through natural language commands, supporting screen analysis and automated actions.26MIT
- 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.4Apache 2.0
- AlicenseAqualityBmaintenanceGives PC AI agents real-world senses by connecting to an Android phone's camera, sensors, and files over local Wi-Fi without cloud relay or ADB.72MIT
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AbuZar-Ansarii/Termux-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server