ternssh-mcp
Allows running temporary commands in an isolated Linux workspace on opted-in SSH servers via run_workspace_command.
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.
ternssh-mcp is based on the Cloudflare SSH workspace ternssh. This modified distribution is dated 2026-11-26 and adds the MCP features below.
MCP features
Client pairing and server grants. Issue revocable tokens per client and select which SSH servers those clients can access. Changing a server's SSH address, port, or login invalidates its grant.
Diagnostics and managed file transfer. Run fixed diagnostics with
run_diagnostic, or prepare an upload or download and complete it with the local transfer CLI. See the file transfer guide (Chinese).Isolated Linux workspace jobs. Opt in per server to run temporary jobs with
run_workspace_command. See the host requirements and limits (Chinese).Touch ID command approval. Review the exact SSH command batch in a locally built macOS app and approve it with Touch ID before execution. See the command batch guide (Chinese).
Resumable job output. Read stdout and stderr while a job runs, fetch the tail of either stream, or resume from a saved cursor. See the output and retention guide (Chinese).
Related MCP server: Terminal Control MCP
Deployment
Docker
docker compose up -d --buildOpen http://localhost:8787 to create the initial account. Serve the instance over HTTPS for remote MCP clients and the transfer CLI.
Cloudflare Workers
Use Node.js 22.12 or later. Create a D1 database named ternssh in your Cloudflare account and authenticate Wrangler.
npm ci --ignore-scripts
npm ci --prefix server
npm ci --prefix web
CLOUDFLARE_ACCOUNT_ID=your-account-id D1_DATABASE_ID=your-d1-id npm run releaseThe release command builds the frontend, applies the D1 migrations and deploys the Worker. For Cloudflare Access authentication, set the runtime variables ACCESS_TEAM_DOMAIN and ACCESS_AUD in your Worker settings.
Connect an MCP client
Add MCP Access from the dashboard component menu. Select the servers and confirm the selection. Each confirmation replaces the full selection for the workspace.
Open the web terminal for each selected server and verify the SSH host key. Independent MCP sessions check the recorded key before using the saved credentials.
In the card settings, copy the MCP endpoint and create a dedicated token. Store the token in the client's secure environment as
TERNSSH_MCP_TOKEN.Configure the client with the HTTPS
/mcpendpoint and bearer token. For example, in Codex, replace the example URL with the address shown on the card.
codex mcp add ternssh --url https://your-ternssh.example/mcp --bearer-token-env-var TERNSSH_MCP_TOKENUse list_authorized_servers to obtain server IDs. To revoke access, end the workspace authorization or revoke an individual client token in the card settings.
Upstream desktop client
ternssh desktop is a native client for macOS and Windows: an SSH terminal and server manager with a native UI, no WebView.
Works on its own: manage servers and local terminals on your machine without any site, with credentials in the system keychain.
Syncs with your ternssh sites: add a site and its servers, groups and snippets appear in a tab of their own; changes made in the client are written back to the site. Sites behind Cloudflare Access open a sign-in window when asked, or take a service token.
Connects from your machine: a site only syncs the SSH details, and no traffic goes through it.
Terminal tabs, SFTP with an editor, snippets, live server status, a tray and a global hotkey.
Download
Get the latest from Releases:
System | File |
macOS (Apple silicon and Intel) |
|
Windows x64 |
|
Windows ARM64 |
|
The builds are not signed with a developer certificate: on macOS, right-click the app and choose "Open" the first time; on Windows, if SmartScreen warns, click "More info" → "Run anyway". Syncing a site needs a recent ternssh, which gives the client the servers' credentials.
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
SSH client, server management and one remote MCP URL for your machines, with human approvals.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
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).
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables managing multiple Linux SSH servers from MCP clients, with structured filesystem operations, shell commands, durable long-running jobs, process listing, and CPU/RAM/disk/GPU status.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to manage remote Linux terminals over SSH, supporting multi-host and jump-host command execution, background task control, and SFTP file writes, edits, and verified uploads.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients (ZCode, Claude Code, Codex, Cursor, Cline) to run shell commands, manage background jobs, and stream files to and from remote Linux servers over SSH through a single authenticated MCP gateway. Target machines' SSH port stays closed to AI and the internet, with token whitelists, command blacklists, confirmations, and audit logging layered on top.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as ChatGPT to execute shell commands, manage files, and view or capture images on Mac and Linux hosts. Supports terminal-based connection approval, time-limited access, and output controls.MIT