dk23lhl/termius-mcp
Your Termius sessions, ready for AI. Read terminals, run commands, and track native SFTP uploads through MCP. Community adapter for macOS Termius 9.38.1.
9d52a6513e3ftermius-mcp0.5.0-dev.0 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 25 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 15 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
claim_terminal, close_terminal, connect_host, list_terminal_sessions, release_terminal, run_command and 2 moreconnect_hostconnect_host, sftp_uploadconnect_hostNo tool was seen to: start other programs on the machine; connect to the internet or other hosts.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files8 tools · claim_terminal, close_terminal, connect_host +5
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (15: 15 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
claim_terminaltool Claim a Termius tab for this session. run_command / send_key / send_text refuseFilesoutside text
Claim a Termius tab for this session. run_command / send_key / send_text refuse
any tab this session has not claimed, so another agent cannot slip commands in
between yours. Refused while another live session holds it. A claim ends with
release_terminal, when this session's MCP process exits, or after 15 min with no
input call. Prefer a tab of your own over one a human or another agent is using.close_terminaltool Close one claimed terminal session, never the whole app. Default refuses aFilesoutside text
Close one claimed terminal session, never the whole app. Default refuses a
busy/non-prompt terminal. force=true can interrupt work; use only when the user
explicitly requests that. Verify actual removal, not just dispatch.connect_hosttool Get a tab for a SAVED Termius host (exact label from list_hosts). A tab thatFilesCredentialsEnv varsSensitive pathsoutside text
Get a tab for a SAVED Termius host (exact label from list_hosts). A tab that
THIS session's connect_host opened earlier (list_terminal_sessions marks it "opened by
agent: THIS session") and that nobody else has claimed is REUSED; otherwise a NEW TAB is
opened (wait until connected, then claim). Tabs a human or another session opened are
never reused implicitly. `new_tab=true` always opens a new tab. A tab claimed by another session is
never taken: the call fails and says who holds it.
Termius' own saved identity / key / jump hosts are used; no credential is read or
passed here. Only saved hosts: no free-form address, no new window. A first-time
host-key prompt is answered per TERMIUS_HOSTKEY (default: "ask", the
fingerprint is reported back; a CHANGED key is never accepted). A password prompt
is NOT answered: read_terminal and ask the human.
`dry_run=true` only checks that the host and Termius' connect function are found.
TERMIUS_CONNECT_ALLOW (comma separated labels) can restrict which hosts are allowed.list_hoststool List saved Termius hosts: label, address, port, group, username, auth type.
List saved Termius hosts: label, address, port, group, username, auth type.
Passwords and keys are never included. `query` filters by label/address/group.list_keychaintool List Termius keychain entries by name only: identities (with whether a password
List Termius keychain entries by name only: identities (with whether a password
is stored), SSH keys, hardware keys, known hosts. No secret material is returned.list_sftp_sessionstool List currently connected SFTP panes by session ID, host and directory.
List currently connected SFTP panes by session ID, host and directory.
Open Termius' SFTP view first. No credentials are returned.list_terminal_sessionstool List terminal sessions open in Termius (SSH and local tabs): id prefix, name,Filesoutside text
List terminal sessions open in Termius (SSH and local tabs): id prefix, name,
protocol, address, connection state. Any of id prefix / name / address can be
passed as `session` to the other tools.read_terminaltool Read terminal text (ANSI stripped, blank runs collapsed). Default: last `lines`
Read terminal text (ANSI stripped, blank runs collapsed). Default: last `lines`
lines of the screen. `scrollback=true` reads the whole history (capped).release_terminaltool Release a tab this session claimed. Release when your work on the tab is done.Filesoutside text
Release a tab this session claimed. Release when your work on the tab is done.
run_commandtool EXECUTE a shell command on the remote host in the open Termius session, wait forFilesoutside text
EXECUTE a shell command on the remote host in the open Termius session, wait for
the prompt to return, and return only the command's output (echo and prompt removed).
If it is still running or waiting for input at `timeout`, returns what it has so far
with a status line; use read_terminal / send_key('ctrl-c') to follow up.
The tab must be claimed by this session first (claim_terminal).send_keytool Send one control key: enter, tab, esc, backspace, ctrl-c, ctrl-d, ctrl-u, ctrl-l,Filesoutside text
Send one control key: enter, tab, esc, backspace, ctrl-c, ctrl-d, ctrl-u, ctrl-l,
ctrl-z, ctrl-r, up, down, left, right, q, y, n. Note 'enter' submits whatever is typed.
ctrl-c also reaches a command this session's run_command is still waiting on;
other input is refused until that call returns.send_texttool Send printable text without Enter. A foreground program may act on any input.Filesoutside text
Send printable text without Enter. A foreground program may act on any input.
Use send_key('enter') to submit, or run_command to execute and collect output.sftp_transfer_statustool Read retained native upload progress/error/completion by transfer ID. 100%
Read retained native upload progress/error/completion by transfer ID. 100%
progress or a disappeared queue row alone does not mean completed.sftp_uploadtool Upload one local regular file through Termius' native SFTP transfer queue.Env vars
Upload one local regular file through Termius' native SFTP transfer queue.
Use the exact remote session ID from list_sftp_sessions, keep one pane on
Local, and navigate the remote pane to remote_directory first. Overwrite
dialogs stay in Termius for the human; this tool never approves them.
Follows the native progress/error/end events. Timeout does NOT cancel;
follow sftp_transfer_status with the returned ID, never blindly re-upload.
Credential stores (~/.ssh, ~/.aws, keychains, ...) are refused; TERMIUS_UPLOAD_ROOTS
can further limit uploads to listed directories.switch_terminaltool Activate an explicitly selected terminal and its containing tab; verify state.
Activate an explicitly selected terminal and its containing tab; verify state.
Text the model reads (15)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list_hosts tool
List saved Termius hosts: label, address, port, group, username, auth type.
Passwords and keys are never included. `query` filters by label/address/group.connect_host tool
Get a tab for a SAVED Termius host (exact label from list_hosts). A tab that
THIS session's connect_host opened earlier (list_terminal_sessions marks it "opened by
agent: THIS session") and that nobody else has claimed is REUSED; otherwise a NEW TAB is
opened (wait until connected, then claim). Tabs a human or another session opened are
never reused implicitly. `new_tab=true` always opens a new tab. A tab claimed by another session is
never taken: the call fails and says who holds it.
Termius' own saved identity / key / jump hosts are used; no credential is read or
passed here. Only saved hosts: no free-form address, no new window. A first-time
host-key prompt is answered per TERMIUS_HOSTKEY (default: "ask", the
fingerprint is reported back; a CHANGED key is never accepted). A password prompt
is NOT answered: read_terminal and ask the human.
`dry_run=true` only checks that the host and Termius' connect function are found.
TERMIUS_CONNECT_ALLOW (comma separated labels) can restrict which hosts are allowed.list_keychain tool
List Termius keychain entries by name only: identities (with whether a password
is stored), SSH keys, hardware keys, known hosts. No secret material is returned.list_terminal_sessions tool
List terminal sessions open in Termius (SSH and local tabs): id prefix, name,
protocol, address, connection state. Any of id prefix / name / address can be
passed as `session` to the other tools.claim_terminal tool
Claim a Termius tab for this session. run_command / send_key / send_text refuse
any tab this session has not claimed, so another agent cannot slip commands in
between yours. Refused while another live session holds it. A claim ends with
release_terminal, when this session's MCP process exits, or after 15 min with no
input call. Prefer a tab of your own over one a human or another agent is using.release_terminal tool
Release a tab this session claimed. Release when your work on the tab is done.
read_terminal tool
Read terminal text (ANSI stripped, blank runs collapsed). Default: last `lines`
lines of the screen. `scrollback=true` reads the whole history (capped).send_text tool
Send printable text without Enter. A foreground program may act on any input.
Use send_key('enter') to submit, or run_command to execute and collect output.send_key tool
Send one control key: enter, tab, esc, backspace, ctrl-c, ctrl-d, ctrl-u, ctrl-l,
ctrl-z, ctrl-r, up, down, left, right, q, y, n. Note 'enter' submits whatever is typed.
ctrl-c also reaches a command this session's run_command is still waiting on;
other input is refused until that call returns.run_command tool
EXECUTE a shell command on the remote host in the open Termius session, wait for
the prompt to return, and return only the command's output (echo and prompt removed).
If it is still running or waiting for input at `timeout`, returns what it has so far
with a status line; use read_terminal / send_key('ctrl-c') to follow up.
The tab must be claimed by this session first (claim_terminal).switch_terminal tool
Activate an explicitly selected terminal and its containing tab; verify state.
close_terminal tool
Close one claimed terminal session, never the whole app. Default refuses a
busy/non-prompt terminal. force=true can interrupt work; use only when the user
explicitly requests that. Verify actual removal, not just dispatch.list_sftp_sessions tool
List currently connected SFTP panes by session ID, host and directory.
Open Termius' SFTP view first. No credentials are returned.sftp_transfer_status tool
Read retained native upload progress/error/completion by transfer ID. 100%
progress or a disappeared queue row alone does not mean completed.sftp_upload tool
Upload one local regular file through Termius' native SFTP transfer queue.
Use the exact remote session ID from list_sftp_sessions, keep one pane on
Local, and navigate the remote pane to remote_directory first. Overwrite
dialogs stay in Termius for the human; this tool never approves them.
Follows the native progress/error/end events. Timeout does NOT cancel;
follow sftp_transfer_status with the returned ID, never blindly re-upload.
Credential stores (~/.ssh, ~/.aws, keychains, ...) are refused; TERMIUS_UPLOAD_ROOTS
can further limit uploads to listed directories.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 15 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 15 capabilities; 15 more call code the scanner could not follow, where it may happen
- Tools that touch files8 of 15 capabilities touch files; 7 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 15 capabilities; 15 more call code the scanner could not follow, where it may happen
Where the code is: 15 handlers in 1 file at commit 9d52a6513e3f
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: package.json, pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp ==1.27.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials1 of 15 capabilities read credentials; 14 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp ==1.27.0 |
| Servers in the code | 1 (termius) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-04 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 3 catalogs (github_search, glama, mcp_toplist) |
|---|---|
| License | MIT |
| Created | 2026-10-21 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.