termius-mcp MCP Server
Termius Cloud MCP server.
termius-mcp scores 41 (Fair), licensed BSD and written in Python. It installs as a local process. It declares 4 tools. Filed under Uncategorized. GitHub shows 16 stars. Package registries report about 85 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
41 of 100 from six public signals. Nobody can buy a point.
- License present: bsd.
License, quality and maintenance
Quality: Grade B
76/100 for listing completeness. Lost points: 2 of 4 tools barely described, short summary.
How quality is graded
Where the 41 comes from
0 + 20 + 4 + 6 + 4 + 7 = 41. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 6 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "miam1ku-termius-mcp": { "command": "uvx", "args": [ "termius-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools4Tool docs quality grade D
All capabilitiesUser.apikeytoolDeviceToken
login_completetoolFinish Google SSO with callbackurl + vault password
storage_keytoolkey that encrypts ~/.termius/storage
vault_passwordtoolremembered vault password, if you chose remember
About
Termius MCP
stdio MCP server for Termius Cloud.
Repository: MiaM1ku/termius-mcp.
termius with no arguments is the MCP server. An MCP client starts that
binary with no args. The process speaks newline-delimited JSON-RPC on
stdin/stdout (MCP stdio). It negotiates protocolVersion 2025-11-25 or
2025-06-18 (echoes the client when supported). Login, vault sync, host
lookup, SSH exec, and SFTP file transfer are tools.
termius login signs in from a terminal. Use it for Google SSO, email and
password, and OTP.
This tree talks to Termius desktop 10.0.6 APIs (DeviceToken, SRP / gRPC
login, RNCryptor v3 and Sodium v4/v5, v4/terminal/sync/).
Install
Python 3.9+ is required.
The PyPI name is termius-mcp. The official Termius CLI already uses termius.
After install, the command is still termius.
pip install termius-mcp
On Debian/Ubuntu (PEP 668) use a venv or pipx:
pipx install termius-mcp
From a git clone:
python3 -m venv ~/.local/share/termius-mcp
~/.local/share/termius-mcp/bin/pip install -U pip
~/.local/share/termius-mcp/bin/pip install -e .
ln -sf ~/.local/share/termius-mcp/bin/termius ~/.local/bin/termius
Point the MCP client at that binary. Do not pass mcp or other args.
Do not pass login in the MCP client args list.
Claude / generic (contrib/mcp/termius.mcp.json):
{
"mcpServers": {
"termius": {
"command": "termius",
"args": []
}
}
}
Codex (contrib/mcp/codex.toml, merge into ~/.codex/config.toml):
[mcp_servers.termius]
command = "termius"
args = []
startup_timeout_sec = 30.0
tool_timeout_sec = 60.0
Pi / OMP (~/.omp/agent/mcp.json):
{
"mcpServers": {
"termius": {
"type": "stdio",
"command": "termius",
"args": []
}
}
}
Restart the MCP client after you edit the config. connecting [stdio] is the
handshake. It becomes connected when initialize succeeds. Sign in with
termius login before that, or use the login tools after connect.
Timeouts and cancellation:
- The
timeoutargument ofexecandfilescaps the whole call, connect included. The default is 60 seconds. - When
exectimes out, the server closes the SSH connection. The result hastimed_out: true,exit_code: null, and the output read so far. A remote process that does not write output can keep running. - When
filestimes out, the call fails. Pass a largertimeoutfor a biggetorput. - Each tool call runs in its own thread. A long
execdoes not blockstatusor other calls. - When the client sends
notifications/cancelled, the server closes the SSH connection of that call and sends no response. - Set the client tool timeout higher than the largest
timeoutthat you pass. Otherwise the client cancels the call first. For example, Codextool_timeout_sec = 60.0cancels anexecwithtimeout: 180after 60 seconds.
Optional environment variables:
| Variable | Purpose |
|---|---|
TERMIUS_VAULT_PASSWORD | Vault encryption password (preferred over the remember file) |
TERMIUS_SYNC_TTL | Seconds before an automatic pull in exec, files, and inventory. Default 60. 0 pulls on every read. hosts and host pull when their cache is older than 600 seconds, then fall back to the local cache if the pull fails. |
TERMIUS_KEYRING | 1 forces the OS keychain, 0 forces the local secrets file. Default: use the backend saved in config. With no saved choice, pick automatically. PYTHON_KEYRING_BACKEND selects the keychain only before a choice is saved. |
TERMIUS_SECRETS_KEY | Passphrase that seals ~/.termius/secrets instead of the machine id. Set this in a container so a new container can read the same file. |
First-time setup
Sign in from a terminal, then start the MCP client.
Terminal login
termius login
The command prompts for google or email when stdin is a TTY.
You can also pass the method:
termius login google
termius login email -u you@example.com
Google:
- Open the printed
https://account.termius.com/sso/desktop?...URL. - Sign in with Google.
- When the browser asks to open Termius, decline. Get the
termius://app/continue-sso?...URL with the script in Get the callback URL. - Paste that URL.
- Enter the vault encryption password from the Termius app. This is not the Google password.
- If 2FA is on, enter the OTP from your authenticator app. Termius does not send it by email.
Email:
- Enter the Termius email if you did not pass
-u. - Enter the vault / account password.
- If 2FA is on, enter the OTP from your authenticator app.
Get the callback URL
The page sets window.location to the termius:// URL. It has no link to
copy. Build the URL from the page state instead:
-
Stay on the "Redirecting to Termius" page.
-
Open the JavaScript console. In Safari, turn on Settings > Advanced > "Show features for web developers", then press Option-Command-C.
-
Paste this script and press Return:
(async () => { const requestId = new URLSearchParams(location.search).get('request'); const db = await new Promise((resolve, reject) => { const req = indexedDB.open('firebaseLocalStorageDb'); req.onsuccess = () => resolve(req.result); req.onerror = () => reject(req.error); }); const rows = await new Promise((resolve, reject) => { const req = db.transaction('firebaseLocalStorage').objectStore('firebaseLocalStorage').getAll(); req.onsuccess = () => resolve(req.result); req.onerror = () => reject(req.error); }); const user = rows.map((row) => row.value).find((value) => value && value.stsTokenManager); if (!user || !requestId) throw new Error('Finish Google sign-in on this page first.'); window.termiusSsoUrl = 'termius://app/continue-sso?email=' + encodeURIComponent(user.email) + '&firebaseToken=' + user.stsTokenManager.accessToken + '&requestId=' + requestId; prompt('Copy this URL into termius login', window.termiusSsoUrl); })() -
Copy the URL from the dialog.
The URL contains a Firebase ID token. The token expires after about one hour. Do not share the URL.
TERMIUS_VAULT_PASSWORD supplies the vault password and skips the prompt.
Default remember stores the vault password in the secret store: the OS
keychain, or ~/.termius/secrets on a machine without one. Pass
--no-remember to skip that.
Check the session:
termius status
Sign out:
termius logout
MCP tools
After the server is connected, you can also use the tools.
If a previous login already stored a DeviceToken:
- Call
status. Expectlogged_in: trueand oftenvault_remembered: false. - Call
syncwith the vault encryption password from the Termius app (not the Google password). Defaultremember=truestores it in the secret store. - Call
hosts. It pulls when the local cache is older than 600 seconds.
If this machine has never signed in and you are not using termius login:
- Call
status. Expectlogged_in: false. - Google: call
loginwithmethod=google. Open the returned URL. Sign in. When the page tries to open Termius, copytermius://app/continue-sso?.... Calllogin_completewith that URL and the vault encryption password. - Email: call
loginwithmethod=email, username, and the vault password. Addotpif 2FA is on. - Call
hosts.
The process never returns the vault password in a tool result.
Tools
Call status first.
| Tool | Purpose |
|---|---|
status | Login state, last sync, stale flag, vault remembered, counts. Does not pull. |
login | method=email with username + password, or method=google to get an SSO URL |
login_complete | Finish Google SSO with callback_url + vault password |
logout | Clear the session, remembered password, and local inventory |
sync | Force a pull now; also how you pass and remember the vault password |
hosts | List hosts (optional query). Pulls when the cache is older than 600 seconds. Returns the local cache if the pull fails |
host | One host + merged SSH settings + ssh_command. Pulls when the cache is older than 600 seconds. Returns the local cache if the pull fails |
exec | Run a remote command over SSH |
files | SFTP list / stat / read / write / get / put / mkdir / rm / rename |
inventory | kind=groups|identities|keys|snippets |
hosts and host pull when the local cache is older than 600 seconds.
If that pull fails, they return the local cache and set stale to true.
sync_error is the pull error. A missing sign-in or vault password is still
an error. exec, files, and inventory pull when the local cache is older
than TERMIUS_SYNC_TTL and a vault password is available. Those three tools
still fail the call when the pull fails.
files uses SFTP on the same SSH credentials as exec. get and put copy
between the MCP host filesystem and the remote host. read and write move
file content through the tool result (max 200000 bytes). get and put allow
up to 50 MiB. list defaults path to the SSH login directory.
Confirm an SSH server's identity
exec and files verify the negotiated server key against the MCP user's
~/.ssh/known_hosts before sending login credentials. The MCP host needs
OpenSSH's ssh-keygen. On first use (ssh_host_key_unknown) or a changed
fingerprint (ssh_host_key_changed), the tool stops and reports the endpoint,
presented SHA256 fingerprint and any recorded fingerprints. A change can
indicate a man-in-the-middle attack.
Verify the fingerprint independently, for example in your provider's console
with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub -E sha256 for an Ed25519
key. After it matches, manually add or replace the affected key in
~/.ssh/known_hosts on the MCP machine. Each line contains the endpoint and
the verified public key, e.g. [example.org]:2222 ssh-ed25519 <base64-key>
(use example.org for port 22). Retry the original tool call. A revoked key
is rejected even if another entry also trusts it.
Local data
A desktop machine keeps secrets in the OS keychain through
keyring: the macOS Keychain, the
Windows Credential Manager, or the Linux Secret Service (GNOME Keyring,
KWallet). Entries use the service name termius-mcp:<directory>.
A machine with no usable keychain (a server, a container, or a Linux box with
no desktop session) keeps the same names in ~/.termius/secrets instead:
one Fernet token, mode 0600. The first start writes the choice to config
as [Secrets] backend. Later starts keep that choice, so a desktop session
and an SSH session on the same machine use the same store. TERMIUS_KEYRING
overrides the saved choice and saves the new one.
The file key comes from the machine id and the user id. The file is not
readable text, and a copy of it does not open on another machine or account.
It does not hide anything from somebody who is already this user on this
machine. Set TERMIUS_SECRETS_KEY to seal the file with that passphrase
instead. A container should set it. A slim image has no /etc/machine-id,
and this program does not fall back to the MAC address. With neither a
machine id nor TERMIUS_SECRETS_KEY, the file is only as private as the
directory that holds it.
On the first start that selects the file, an empty secrets file copies
vault_password, User.apikey, User.private_key, User.personal_v4_key,
and storage_key out of the OS keychain when those entries exist. The
keychain entries stay in place. PYTHON_KEYRING_BACKEND selects the keychain
when no choice is saved yet, which keeps a headless install that followed the
older instructions on the keychain.
Names in the store:
vault_password— remembered vault password, if you choserememberUser.apikey— DeviceTokenUser.private_key,User.personal_v4_key— unwrapped personal keysstorage_key— key that encrypts~/.termius/storage
Files in ~/.termius/:
config— username, salts,last_syncedstorage— hosts, groups, identities, keys, snippets, encrypted withstorage_key(Fernet), mode0600secrets— only on a machine with no keychain, see above
Private keys stay inside storage. exec and files load them in memory,
so ssh_command from host has no -i option.
On first start, plaintext data from older versions moves into the secret
store: the vault file and the secrets in config are moved, storage is
encrypted, and ssh_keys/ is deleted.
A secrets file with a broken format, or a file written by another version,
is renamed to secrets.bad-<UTC timestamp>. The server then starts with an
empty store. status reports logged_in: false. Sign in again. The renamed
file is kept.
The server does not start when TERMIUS_SECRETS_KEY is missing or does not
match the passphrase that sealed the file. The file bytes stay as they are.
Set the same passphrase and start again.
The server also does not start when the file is bound to another machine id.
The file bytes stay as they are. This happens when /etc/machine-id changes
(a reinstall or a cloned image) or when the file moves to another host.
Move secrets aside, start again, and sign in again. Re-enter the vault
password. The process does not replace the file on its own. A new empty
store would drop the saved login.
Roll back to PyPI 3.0.0
You need the Termius account and the vault password. If that password exists
only in secrets and you do not remember it, do not roll back.
- Stop every
termius-mcpprocess. Runpgrep -af termiusand confirm that no process remains. - Back up the directory:
cp -a ~/.termius ~/.termius.bak-$(date +%Y%m%dT%H%M%S). - If you kept a
~/.termiusbackup from before this version, restore that backup. Then stop. - If you have no backup, move
~/.termius/storageand~/.termius/secretsaside. Do not delete them. - Run
pip install termius-mcp==3.0.0. - Start the server, sign in again, and call
hosts.
3.0.0 cannot open a storage file from this version. It raises
ValueError: File not in a supported format and does not start. After you
move storage and secrets, 3.0.0 starts with no hosts and an empty apikey.
A [Secrets] section in config does not affect 3.0.0. 3.0.0 writes the
apikey back into config as plaintext.
Encryption notes
Termius Cloud currently has two personal encryption schemas:
- v3 — per-field RNCryptor (AES-CBC + HMAC). REST login is enough.
- v5 — entity
contentblobs sealed with Argon2id + XChaCha20-Poly1305, plus SRP login.
The server auto-detects ciphertext version (A… = v3, B… = v5). Login uses
gRPC/SRP first (desktop login_v2); REST is only the fallback for accounts
that are not migrated (NOT_MIGRATED). For v5 SRP the vault password is Argon2id-hashed (libsodium interactive,
16-byte salt) and base64-encoded, then proven with Botan SRP-6a
modp/srp/8192 + Blake2b-512. public_data / proof are
uppercase hex without a 0x prefix (Android libtermius strips
Botan's prefix before the gRPC/Socket.IO payload).
Team vaults: sync / auto-pull loads /api/v4/team/vault/keys/, unwraps each encrypted_with key with the personal X25519 keypair (ECDH + HChaCha20 + XChaCha20-Poly1305), and decrypts shared hosts/keys/identities. Entities whose vault key is missing are skipped, not deleted.
License
See LICENSE.
Frequently asked questions
What is termius-mcp MCP Server?
Termius Cloud MCP server.
How do I install termius-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. termius-mcp MCP Server runs locally from the PyPI package termius-mcp with the command uvx termius-mcp.
Is termius-mcp MCP Server free and open source?
termius-mcp MCP Server is released under the BSD license, which is not on MCPpedia's list of OSI-approved open-source licenses. Read the license terms before using it, especially commercially.
Does termius-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for termius-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does termius-mcp MCP Server provide?
termius-mcp MCP Server provides 4 tools: User.apikey, login_complete, storage_key, and vault_password. See the full tool list for descriptions and parameters.
How is termius-mcp MCP Server's trust score calculated?
termius-mcp MCP Server scores 41 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.