Terminal MCP Server
Allows setting up a persistent tunnel using Cloudflare named tunnel for exposing the MCP server with a stable hostname.
Allows setting up a tunnel using ngrok with a reserved domain for a stable tunnel URL to expose the MCP server.
Click on "Install 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., "@Terminal MCP Serverlist files in the current directory"
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.
Terminal MCP Server
HTTP MCP server that exposes authenticated shell tools so grok.com can run commands on this machine.
Quick start
cd /root/terminal-mcp
cp .env.example .env
# Set TERMINAL_MCP_TOKEN: openssl rand -hex 32
chmod +x scripts/*.sh
./scripts/start.sh
curl http://127.0.0.1:3001/healthRelated MCP server: Remote MCP Server
grok.com setup
Set tunnel mode in
.env:TERMINAL_MCP_TUNNEL_MODE=trueRestart:
./scripts/stop.sh && ./scripts/start.shTunnel:
./scripts/tunnel.sh— copy the URL and setTERMINAL_MCP_TUNNEL_HOSTRestart again after setting tunnel host
Register at grok.com/connectors → Custom:
URL:
https://<tunnel-host>/mcpAuth:
Bearer <TERMINAL_MCP_TOKEN>
Stable tunnel URLs
ngrok paid: reserved domain — set
TERMINAL_MCP_TUNNEL_HOSTonceCloudflare named tunnel: Cloudflare Tunnel docs — persistent hostname
Tools
Tool | Description |
| Run shell command ( |
| Poll background job (supports |
| List all jobs |
| Terminate background job |
| Environment and policy summary |
Resources
terminal://tasks/{task_id}/log— task output log
Security
Configured in config.toml:
mode:blocklist(default),allowlist, orpermissiveCommand blocklist / allowlist
Webhook approval for destructive commands (
[security.webhook])Sanitized child environment (no inherited secrets)
Audit log:
logs/audit.jsonl
systemd
sudo cp deploy/terminal-mcp.service /etc/systemd/system/
sudo systemctl enable --now terminal-mcpTests
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -qLocal Grok CLI
grok mcp add terminal --transport http \
--header "Authorization=Bearer ${TERMINAL_MCP_TOKEN}" \
http://127.0.0.1:3001/mcpThis 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
- Flicense-qualityDmaintenanceEnables AI assistants to securely execute shell commands on local machines through an SSH interface with session management, command execution, and sudo support.Last updated1
- Flicense-qualityDmaintenanceEnables AI tools like Claude to interact with a remote machine's file system and shell via a secure HTTPS endpoint. It provides standardized tools for executing shell commands, reading and writing files, and navigating directories.Last updated
- Alicense-qualityCmaintenanceRemote execution layer for agentic systems exposing 64 production tools via MCP for file, network, system, text, git, crypto, and monitoring operations.Last updatedMIT
- Alicense-qualityCmaintenanceExposes a Linux host with shell, Python, and filesystem tools as MCP tools over HTTPS, enabling AI agents to execute commands and manage files remotely.Last updated8MIT
Related MCP Connectors
Operate your own Linux servers from your LLM. Requires the SentinelX agent installed per host.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
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/idealinvestse/terminal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server