Termix MCP Server
Click on "Deploy 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., "@Termix MCP Server list all saved SSH hosts"
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.
Termix MCP Server
An MCP server that lets Claude (or any other MCP client) talk to a self-hosted Termix instance — the open-source SSH client / server-management tool — via its REST API.
This is a community/unofficial project, not affiliated with the Termix team.
What it can do
Tool | Description |
| List all saved SSH hosts |
| Get a host by ID |
| Create a new host |
| Update a host |
| Delete a host |
| Online/offline status of all hosts |
| Status of one host |
| CPU/memory/disk/network metrics for a host |
| Status of all SSH tunnels |
| Status of one tunnel |
| Start a configured tunnel |
| Stop a tunnel |
| Recent activity log |
| Alert status |
Docker container management (list/start/stop/restart) is not exposed as tools: on the live backend it runs over a stateful SSH-session + Socket.IO channel, not plain REST request/response, so it doesn't fit this server's simple per-tool model. It was removed after being verified against the actual Termix backend source (see "Notes & caveats" below) — the earlier version of this README advertised it, but it never actually worked against a real instance.
Related MCP server: MCP SSH Manager
Requirements
Node.js 18+
A running, self-hosted Termix instance (see the Termix install docs)
A Termix API key (see below)
Creating a Termix API key
Verified live against Termix v2.5.0.
Log into your Termix web UI.
Click your username in the bottom-left corner of the sidebar, then choose User Profile.
Open the API Keys tab (in the left panel of the User Profile page).
Click New Key.
Give it a name (e.g.
mcp-server) and, optionally, an expiry date (dd-mm-jjjjfield — leave blank for a key that doesn't expire).Click Create Key.
Known quirk: in the version tested here (v2.5.0), Termix does not
display or let you copy the full key value anywhere in the UI after
creation — only a short prefix (tmx_xxxxxxxx…) is shown, for
identification only. There's no visible one-time reveal dialog or copy
button for the full secret. If your version behaves the same way, check
the Termix GitHub repo (issues/
releases) for the current recommended way to obtain a usable key value —
this may be a UI gap that gets fixed, or there may be an alternative flow
(e.g. via the setup wizard, or a config/CLI option) depending on your
version. A JWT bearer token (obtained by logging in) is a working fallback
if API keys aren't usable in your version — see the Termix API docs'
Authentication section for details.
Each key inherits the permissions of the user that created it, and is sent
as Authorization: Bearer <key> on every request — which is exactly what
this MCP server does (see TERMIX_API_KEY below).
Setup
git clone <your-fork-url> termix-mcp
cd termix-mcp
npm install
npm run setupnpm run setup runs an interactive prompt that asks for your Termix URL
and API key, and writes them to a local .env file for you (git-ignored,
so it's never committed). It's the easiest way to get started.
If you'd rather not use the interactive prompt, do it manually instead:
cp .env.example .env
# edit .env and fill in TERMIX_BASE_URL and TERMIX_API_KEYTERMIX_BASE_URL is the base URL of the Termix backend API, not the
web UI — for a default local Docker install this is typically
http://localhost:30001; adjust if you've changed ports or are running
behind a reverse proxy.
Termix's backend is actually split across several independent services on different ports, confirmed by reading the Termix backend source directly (the hosted API docs return 403 to automated fetches, and didn't fully match what a live v2.5.0 instance actually does):
Service | Default port | Used for |
main API | 30001 ( | SSH hosts CRUD, alerts |
metrics API | 30005 ( | host online/offline status, live metrics |
dashboard API | 30006 ( | recent activity log |
tunnel API | 30003 ( | SSH tunnel status/connect/disconnect |
You only need to set TERMIX_BASE_URL (+ TERMIX_API_KEY) — the other
three default to the same host as TERMIX_BASE_URL with the port swapped,
which matches a stock Termix deployment. Only set them explicitly if your
setup exposes these services on different hosts/ports (e.g. behind a
reverse proxy with custom routing).
Run it directly
npm startThe server communicates over stdio, so it's meant to be launched by an MCP client (Claude Desktop, Claude Code, etc.), not run standalone in a terminal for interactive use.
Configure in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"termix": {
"command": "node",
"args": ["/absolute/path/to/termix-mcp/src/index.js"],
"env": {
"TERMIX_BASE_URL": "http://localhost:30001",
"TERMIX_API_KEY": "your_termix_api_key_here"
}
}
}
}Restart Claude Desktop afterwards. If you already ran npm run setup
(which created a .env file), you can omit the "env" block entirely —
the server loads .env automatically.
Configure in Claude Code
claude mcp add termix -- node /absolute/path/to/termix-mcp/src/index.jsThen set TERMIX_BASE_URL / TERMIX_API_KEY in your shell environment or
in the MCP server config, per the Claude Code docs.
Notes & caveats
All endpoints currently wired up (
/host/db/host,/status,/metrics/:id,/ssh/tunnel/*,/activity/recent,/alerts) were individually verified against a live Termix v2.5.0 instance — both by reading the actual backend route definitions in the Termix source and by making real authenticated requests. The hosted API docs (docs.termix.site) return 403 to automated fetches and, in an earlier version of this project, some assumed paths/ports turned out wrong when checked against the real backend — trust the source + your own live instance over the docs site if they disagree.create_ssh_hostaccepts a free-form JSON object for the host body because the schema varies a lot depending on auth type (password, key, credential reference, Tailscale, etc.) — inspect an existing host viaget_ssh_host/list_ssh_hostsfor a concrete example on your instance.update_ssh_host's body shape wasn't independently verified beyond "same shape as create" — check a real host object first if a field doesn't seem to apply.Destructive tools (
delete_ssh_host,disconnect_ssh_tunnel) are exposed as regular tools with no extra confirmation step built in — if you're wiring this into an agent that acts autonomously, consider gating those in your client/agent policy.No pagination/filtering helpers are included; responses are returned as-is from the Termix API.
Extending
Add new endpoints in two steps:
Add a method to
termixinsrc/termix-client.jsthat calls one of the per-service helpers (main,metrics,dashboard,tunnel) with(method, path, { query, body })— pick whichever service actually owns that route (see the port table above, or checksrc/backend/database/database.ts'sapp.use(...)calls and each service file's ownPORTconstant in the Termix source if you're not sure).Register a
server.tool(...)insrc/index.jsthat calls it.
Don't trust route names/paths from the hosted docs site without checking the backend source or a live request first — that's what caused the wrong paths this project shipped with initially.
License
MIT — see LICENSE.
Available Tools
15 toolsconnect_ssh_tunnelC
Establish a configured SSH tunnel connection.
Inputs: name (required), tunnelIndex (required), sourceHostId (required).
create_ssh_hostA
Create a new SSH host configuration in Termix. Pass the host object as JSON matching the Termix host schema (name, ip, port, username, authType, etc). Field shape varies by authType (password, key, credential reference, Tailscale, ...) - inspect an existing host via get_ssh_host/list_ssh_hosts for a concrete example on your instance before creating a new one.
Inputs: host (required).
delete_ssh_hostA
Delete an SSH host by ID. This is irreversible.
Inputs: id (required).
disconnect_ssh_tunnelB
Disconnect an active SSH tunnel by name.
Inputs: tunnelName (required).
get_active_alertsA
Get currently active (non-dismissed) alerts.
Inputs: no named parameters.
get_all_host_statusesA
Get the online/offline status of all hosts for the authenticated user.
Inputs: no named parameters.
get_dismissed_alertsA
Get previously dismissed alerts.
Inputs: no named parameters.
get_host_metricsA
Get live metrics (CPU, memory, disk, network, processes, system info) for a host.
Inputs: id (required).
get_host_statusA
Get the online/offline status of a specific host by ID.
Inputs: id (required).
get_recent_activityA
Get the most recent activity log entries for the authenticated user.
Inputs: limit.
get_ssh_hostA
Get a single SSH host by its numeric ID.
Inputs: id (required).
get_tunnel_statusB
Get the status of a single SSH tunnel by name.
Inputs: name (required).
list_ssh_hostsA
List all saved SSH hosts for the authenticated Termix user.
Inputs: no named parameters.
list_tunnel_statusesA
Get the status of all configured SSH tunnels.
Inputs: no named parameters.
update_ssh_hostA
Update an existing SSH host by ID. Pass only the fields to change.
Inputs: id (required), host (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource and action: host CRUD, status, metrics, tunnel control, activity, and alerts. No two tools overlap in purpose; even status vs metrics are clearly differentiated.
Mostly consistent verb_noun pattern, but 'list' and 'get_all' are used interchangeably for plural retrieval (e.g., list_ssh_hosts vs get_all_host_statuses). Otherwise naming is clear and predictable.
15 tools is well-scoped for an SSH management server, covering hosts, statuses, metrics, tunnels, activity, and alerts without feeling bloated or sparse.
Host CRUD is complete, and tunnel connect/disconnect/status is covered, but there is no tunnel creation/editing and no alert dismissal action, leaving minor workflow gaps.
Maintenance
Related MCP Connectors
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).
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for Appcircle mobile CI/CD platform.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for SSH remote execution, file transfer, and file editing with automatic backup/trash and ~/.ssh/config integration.117 npm1MIT
- AlicenseAqualityDmaintenanceMCP server for managing remote servers via SSH, enabling command execution, file transfer, rsync, tunnels, health checks, backups, and database operations.172,541 npm1MIT
- AlicenseBqualityBmaintenanceMCP server enabling local network interaction, shell command execution, system resource monitoring, and SSH-based remote device management.18MIT
- FlicenseNot gradedqualityCmaintenanceA secure MCP gateway for Termux that exposes filesystem, shell, and Termux:API tools over a local HTTP endpoint with admin controls, job management, and upstream support.1-