nickgnd/tmux-mcp
A MCP server for our beloved terminal multiplexer tmux.
ec68b1061cf3tmux-mcp0.2.2 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
Top risks in plain words
- CRITICAL8 production dependencies have known vulnerabilities (worst: critical).
- HIGHTool
split-paneruns programs by design: an agent steered by prompt injection can use it that way.
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.
- Run it in a container or a virtual machine
split-panecan start programs or run code they are given. Keep it away from your home folder, keys and other projects. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
split-pane, switch them off. - Update its vulnerable packages
Use
@modelcontextprotocol/sdk1.32.0 or later,body-parser2.4.0 or later,path-to-regexp8.4.0 or later,proxy-addr2.0.8 or later and 3 more. - 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 13 tools, 3 resources. 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.
None of the tools reaches any of these in the code the scanner could trace.
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
No tool was seen returning text from outside the server to the model.
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 (16: 13 tools, 3 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
split-panetool Split a tmux pane horizontally or verticallyRuns programs
Split a tmux pane horizontally or vertically
Command Execution Resultresource
No description.
Tmux Pane Contentresource
No description.
Tmux Sessionsresource
No description.
capture-panetool Capture content from a tmux pane with configurable lines count and optional color preservation
Capture content from a tmux pane with configurable lines count and optional color preservation
create-sessiontool Create a new tmux session
Create a new tmux session
create-windowtool Create a new window in a tmux session
Create a new window in a tmux session
execute-commandtool Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use `rawMode=true`. IMPORTANT: When `rawMode=false` (default),
Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use `rawMode=true`. IMPORTANT: When `rawMode=false` (default), avoid heredoc syntax (cat << EOF) and other multi-line constructs as they conflict with command wrapping. For file writing, prefer: printf 'content\n' > file, echo statements, or write to temp files instead
find-sessiontool Find a tmux session by name
Find a tmux session by name
get-command-resulttool Get the result of an executed command
Get the result of an executed command
kill-panetool Kill a tmux pane by ID
Kill a tmux pane by ID
kill-sessiontool Kill a tmux session by ID
Kill a tmux session by ID
kill-windowtool Kill a tmux window by ID
Kill a tmux window by ID
list-panestool List panes in a tmux window
List panes in a tmux window
list-sessionstool List all active tmux sessions
List all active tmux sessions
list-windowstool List windows in a tmux session
List windows in a tmux session
Text the model reads (16)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list-sessions tool
List all active tmux sessions
find-session tool
Find a tmux session by name
list-windows tool
List windows in a tmux session
list-panes tool
List panes in a tmux window
capture-pane tool
Capture content from a tmux pane with configurable lines count and optional color preservation
create-session tool
Create a new tmux session
create-window tool
Create a new window in a tmux session
kill-session tool
Kill a tmux session by ID
kill-window tool
Kill a tmux window by ID
kill-pane tool
Kill a tmux pane by ID
split-pane tool
Split a tmux pane horizontally or vertically
execute-command tool
Execute a command in a tmux pane and get results. For interactive applications (REPLs, editors), use `rawMode=true`. IMPORTANT: When `rawMode=false` (default), avoid heredoc syntax (cat << EOF) and other multi-line constructs as they conflict with command wrapping. For file writing, prefer: printf 'content\\n' > file, echo statements, or write to temp files instead
get-command-result tool
Get the result of an executed command
Tmux Sessions resource
Tmux Pane Content resource
Command Execution Result resource
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 chooses HIGH1 finding in split-pane
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 16 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 16 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 16 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 16 tool handlers traced
- Tools that start processesNot seen in the traced code of 16 capabilities; 16 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 16 capabilities; 16 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 16 capabilities; 16 more call code the scanner could not follow, where it may happen
Where the code is: 16 handlers in 1 file at commit ec68b1061cf3
- 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 manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies CRITICAL8 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.0.2
- 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 credentialsNot seen in the traced code of 16 capabilities; 16 more call code the scanner could not follow, where it may happen
- 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 (3 only in code no tool reaches)
- 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 (8 in production)
proxy-addrnpm 2.0.7 CRITICAL 1 advisory 2.0.8
- CRITICALGHSA-jqcg-44mw-7w3h CVE-2026-90711proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
@modelcontextprotocol/sdknpm 1.6.1 HIGH 5 advisories 1.24.01.25.21.32.0
- HIGHGHSA-8r9q-7v3j-jr4g CVE-2026-0621Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
- HIGHGHSA-w48q-cv73-mx4w CVE-2025-66414Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
- HIGHGHSA-46jr-4wx8-v453 CVE-2026-111768MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- MEDIUMGHSA-rvq5-wwqv-78pq CVE-2026-111771MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
- MEDIUMGHSA-6prh-2h8m-c8cw CVE-2026-111769MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
body-parsernpm 2.1.0 HIGH 2 advisories 1.20.61.20.92.3.0+1 more
- HIGHGHSA-27r3-jxmh-p828 CVE-2026-111181body-parser vulnerable to Denial of Service via trailing bytes after a compressed request body
- LOWGHSA-v422-hmwv-36x6 CVE-2026-12590body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
path-to-regexpnpm 8.2.0 HIGH 2 advisories 8.4.0
- HIGHGHSA-j3q9-mxjg-w52f CVE-2026-4926path-to-regexp vulnerable to Denial of Service via sequential optional groups
- MEDIUMGHSA-27v5-c462-wpq7 CVE-2026-4923path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
zodnpm 3.24.2 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
qsnpm 6.13.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
qsnpm 6.14.0 MEDIUM 5 advisories 6.14.16.14.26.15.2+2 more
- MEDIUMGHSA-4mjr-xmp4-gh2g CVE-2026-82417qs: Denial of Service via Attacker Controlled isBuffer
- MEDIUMGHSA-q8mj-m7cp-5q26 CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is set
- MEDIUMGHSA-6rw7-vpxm-498p CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion
- MEDIUMGHSA-6pq8-jhm2-2vcw CVE-2026-110816qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- LOWGHSA-w7fw-mjwx-w883 CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of service
uuidnpm 11.1.0 MEDIUM 1 advisory 11.1.112.0.113.0.1
- MEDIUMGHSA-w5hq-g745-h8pq CVE-2026-41907 CVE-2026-41988uuid: Missing buffer bounds check in v3/v5/v6 when buf is provided
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 | @modelcontextprotocol/sdk ^1.0.2 |
| Servers in the code | 1 (tmux-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-02-14 |
| Signed releases | not checked yet |
Install it
For the server's own npm package tmux-mcp. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"tmux-mcp": {
"command": "npx",
"args": [
"-y",
"tmux-mcp"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"tmux-mcp": {
"command": "npx",
"args": [
"-y",
"tmux-mcp"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"tmux-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tmux-mcp"
]
}
}
}Claude Code terminal
claude mcp add tmux-mcp -- npx -y tmux-mcpWhere it is published
| npm package | tmux-mcp |
|---|---|
| Downloads | 1 767 a month on npm |
| Listed in | 7 catalogs (awesome_tensorblock, awesome_wong2, github_search, glama, mcp_toplist, mcpservers_org, npm) |
| License | MIT |
| Created | 2025-03-13 |
| Topics | mcp mcp-server tmux |
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.