termux-mcp
Sets up and manages an ngrok tunnel so the local server is reachable at a public HTTPS URL: stores the ngrok authtoken, optionally configures a stable reserved dev domain so the connector URL does not change between restarts, runs the server and tunnel together, and automatically restarts the tunnel after disconnects.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
termux-mcp-bridge
Hubungkan aplikasi Claude ke terminal di perangkat Anda (Termux / Ubuntu proot / Linux) lewat MCP. Claude yang berpikir dan mengawasi, terminal Anda yang mengeksekusi: jalankan perintah, kelola file, proses di background (render, build), dan tambahkan kemampuan lewat plugin.
⚠️ Baca SECURITY.md dulu. Tool ini membuka akses shell ke perangkat Anda lewat URL publik. Token yang bocor berarti akses penuh. Jangan dipasang tanpa memahami risikonya.
Cara kerja
Aplikasi Claude ──internet──▶ tunnel (mis. ngrok) ──▶ termux-mcp di perangkat Anda ──▶ shell, file, jobYang memanggil server Anda adalah cloud Anthropic, bukan HP Anda, jadi server butuh alamat HTTPS publik yang stabil. Itulah fungsi tunnel.
Related MCP server: Remote Terminal
Instalasi
Perlu Python 3.10+ dan git. Dari dalam folder repo:
bash install.shSkrip ini pendek dan sengaja mudah dibaca. Baca dulu sebelum menjalankan. Ia akan membuat venv di
~/.local/share/termux-mcp, memasang paket, dan membuat perintah termux-mcp.
Cek kesiapan: termux-mcp doctor
Menjalankan
termux-mcp serve # http://127.0.0.1:8000/mcp
termux-mcp token # tampilkan token (dibuat otomatis, acak)Folder kerja default: ~/workspace (ubah dengan TERMUX_MCP_WORKSPACE).
Di Termux, jalankan termux-wake-lock supaya Android tidak mematikan proses di background.
Tunnel (otomatis dengan ngrok)
Perlu akun ngrok (gratis) dan binary ngrok terpasang (https://ngrok.com/download).
termux-mcp tunnel setup # sekali saja: authtoken ngrok + domain tetap (opsional)
termux-mcp serve --tunnel ngrok # server dan tunnel sekaligusServer mencetak URL dan nama header untuk konektor Claude. Token tidak dicetak secara default:
pakai termux-mcp token, atau --show-token. Kalau termux-clipboard-set (Termux:API) tersedia, URL ikut disalin.
Domain tetap: akun ngrok gratis mendapat satu dev domain (lihat dashboard ngrok). Isi saat
tunnel setupsupaya URL konektor tidak berubah. Tanpa domain, URL acak tiap start dan konektor harus diedit ulang.Authtoken disimpan oleh ngrok sendiri (
ngrok config add-authtoken), bukan oleh termux-mcp.Putus sambung: tunnel dinyalakan ulang otomatis (maks. 5 kali berturut-turut). Error fatal (authtoken salah, batas sesi akun, domain sedang dipakai) menghentikan percobaan dan menampilkan petunjuk.
Batas dan harga ngrok bisa berubah. Cek dashboard mereka. Akun gratis biasanya dibatasi jumlah sesi agent.
Tanpa --tunnel, Anda bisa menjalankan tunnel sendiri (ngrok http 8000) dan memakai URL-nya.
Menambah konektor di Claude
Di pengaturan Claude, tambahkan konektor kustom (nama menu bisa berbeda antar versi aplikasi):
URL:
https://<alamat-tunnel-anda>/mcpHeader:
x-api-keydengan nilai daritermux-mcp token
Catatan: saat project ini dibuat, form konektor menolak nama header Authorization (dicadangkan untuk OAuth),
makanya server membaca x-api-key. Buka chat baru setelah konektor ditambahkan agar daftar tool ter-refresh.
Tool bawaan
Kelompok | Tool |
Shell |
|
Job background |
|
File |
|
Eksplorasi |
|
Web |
|
Konfigurasi (environment variable)
Variabel | Fungsi | Default |
| Folder kerja untuk tool file |
|
| Lokasi token, audit log, plugin |
|
| Tool yang dimatikan (pisah koma) | kosong |
| Nyalakan tunnel otomatis ( | kosong |
| Domain tetap ngrok (menimpa | kosong |
Plugin
Lihat plugins/README.md dan examples/plugins/hello.py.
Status
Versi awal (0.1.0). Sudah ada: server, auth token, audit log, tool dasar, plugin, doctor, tunnel ngrok otomatis.
Tes otomatis (PYTHONPATH=src python -m unittest discover -s tests -v) memakai ngrok tiruan untuk logika tunnel;
belum diuji dengan ngrok asli di berbagai jenis akun.
Belum ada: tunnel Cloudflare, mode non-root, konfirmasi tool berbahaya, tool khusus video/audio.
Lisensi
MIT. Isi nama pemegang hak cipta di LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Termalin's hosted MCP server. Claude, ChatGPT or any MCP client runs commands, moves files over SFTP, queries databases and reads server metrics and monitoring alerts on your servers, keylessly through Termalin Connectors: no SSH key is handed over and no inbound port is opened. Per-host command policy and an audit log. Needs a termal.in Pro or Team account (new accounts start with a 14-day Pro trial).
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables remote server control via SSH through Claude, supporting command execution, file transfers, and multi-server management with both standard and streamable HTTP protocols.-
- AlicenseNot gradedqualityCmaintenanceExecute commands on remote Linux servers through Claude with an interactive web terminal showing full output while Claude receives smart-filtered summaries for token efficiency. Supports multi-server management, SFTP file transfers, batch scripts, and automation recipes.17 PyPI8MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to execute commands and manage directory-aware panes within tmux sessions for a shared terminal experience. It features smart output capture, interactive prompt detection, and background task management.2MIT
- AlicenseAqualityCmaintenanceGive Claude Desktop terminal, filesystem, and background-job access on your local Linux machine. Zero-dependency MCP extension, MIT-licensed.85MIT