claude-terminal-mcp
Provides Linux-specific terminal and filesystem tools for Claude Desktop, enabling shell command execution, file reading/writing, and background job control on Linux machines.
Terminal — Claude Desktop extension for Linux
A Claude Desktop extension that gives Claude terminal, filesystem, and background-job access on your local Linux machine.
Addresses a gap on Linux Claude Desktop where claude_desktop_config.json-style MCP servers aren't loaded (that mechanism is macOS/Windows only); on Linux, the only way to add tools is via installable extensions.
⚠️ Security — read this first
Installing this extension grants Claude unrestricted shell access on your user account. Anything your user can do from a terminal, Claude can do through this tool: read any file your user can read, modify anything they can modify, install software, open network connections, etc.
Treat installing this the same way you'd treat giving someone an SSH session to your machine. Don't install it on machines with sensitive data you wouldn't want Claude to see or on shared systems.
There is a minimal built-in safety denylist that refuses a handful of obviously-destructive one-liners (rm -rf /, rm -rf ~, fork bombs, dd/mkfs on raw disk devices, shutdown/reboot). This is a last-resort safety net, not a sandbox. A determined command can trivially bypass it. It exists so that a moment's inattention doesn't wipe your home directory.
To tighten the rails, edit the DENYLIST array at the top of server.js and rebuild. To remove them entirely, set DENYLIST = [] and rebuild.
Related MCP server: claude-linux-mcp
What it does
Exposes 8 tools to Claude:
Tool | Purpose |
| Run a shell command via |
| Read a text file with optional line-range slicing. |
| Entries with type (file/dir), size, and mtime. |
| Create or overwrite a text file. Parent directories are created. |
| Spawn a detached subprocess; returns a |
| Status and last N lines of stdout/stderr for a background job. |
| All jobs (running, exited, killed). |
| SIGTERM the job; SIGKILL after 5 seconds if it's still alive. |
Run state (transcripts, job scratch files) lives under /tmp/claude-term-mcp/ and is wiped at reboot.
Install
Download the latest
Terminal.mcpbfrom the Releases page.Open Claude Desktop → Settings → Extensions.
Scroll to the Extension Developer section at the bottom. Click Install Extension and pick the
Terminal.mcpbfile you downloaded.Claude Desktop shows the extension details with a red "developer info not verified by Anthropic" warning. Verify you trust the source, then click Install.
At install time Claude Desktop will ask for a Default working directory — this is where shell commands run when Claude doesn't specify one. Pick your main projects folder, or leave empty to default to your home directory.
Back on All extensions, make sure Terminal is toggled on.
In a chat, open the connector/tools picker and enable Terminal for that conversation.
You can change the default working directory later from Settings → Extensions → Terminal.
Requirements
Claude Desktop ≥ 0.10.0 on Linux (also tested on macOS)
Node.js ≥ 16 (Claude Desktop bundles a recent Node it uses to run the extension, so a system Node isn't required)
bashon PATH
No npm install step — the extension is zero-dependency pure Node.
Configuration
All configuration is done through Claude Desktop's UI at install time or under Settings → Extensions → Terminal.
Field | Type | Purpose |
Default working directory | Directory | Where shell commands run when Claude doesn't specify one. Leave blank for |
To customize the denylist or other behavior, edit server.js and rebuild (see below).
Known issues
Yellow banner: "Tool result could not be submitted. The request may have expired or the connection was interrupted." This fires on every turn that triggers Claude's dynamic tool-loading step. The 404 is on the tool-search result submission to the Anthropic backend, not on the MCP tool itself — your tool call runs and returns correctly immediately after the banner. It's cosmetic. Same issue also hits the stock Filesystem extension. Likely a client↔backend protocol mismatch that will be fixed in a future Claude Desktop release.
Build from source
git clone https://github.com/LukeLamb/claude-terminal-mcp
cd claude-terminal-mcp
# Edit whatever you want in server.js / manifest.json.
# If you change the tool surface, update both places.
# Bump the version in manifest.json so Claude Desktop treats the install as an update.
# Build the bundle:
zip -j Terminal.mcpb manifest.json package.json server.js
# Then install Terminal.mcpb via Claude Desktop → Settings → Extensions → Install Extension.Uninstall
Settings → Extensions → All extensions → Terminal → Remove.
Privacy policy
No data leaves your machine. This extension runs entirely locally:
Data collection: None. The extension does not phone home, emit telemetry, or make any network requests of its own. All network calls you observe will be ones you ask Claude to run (e.g.
curl,wget,git push).Data usage & storage: Command transcripts (stdin excluded, stdout + stderr + exit code) are written to
/tmp/claude-term-mcp/runs/<timestamp>.logso Claude can reference them later in the same conversation. Background job state (command, pid, stdout/stderr log files, exit code, status) is written to/tmp/claude-term-mcp/jobs/<job-id>/.Third-party sharing: None. Nothing is ever transmitted to Anthropic, to the extension author, or to any third party by this extension. (Claude Desktop itself separately sends tool inputs/outputs to Anthropic as part of the normal chat flow — that's Anthropic's relationship with you, not this extension's.)
Retention:
/tmp/claude-term-mcp/is cleared at every reboot. To clear it manually:rm -rf /tmp/claude-term-mcp.Permissions scope: Commands run with your own user's permissions — the same as if you typed them into a terminal.
Contact / questions: Open an issue at https://github.com/LukeLamb/claude-terminal-mcp/issues.
License
MIT. Use freely, attribution appreciated, no warranty.
Available Tools
8 toolskill_backgroundADestructive
Terminate a running background job (SIGTERM, then SIGKILL after 5s).
Inputs: job_id (required).
list_backgroundARead-only
List all background jobs (running, exited, killed).
Inputs: no named parameters.
list_directoryARead-only
List entries in a directory with type, size, and mtime.
Inputs: path (required).
read_backgroundARead-only
Read status and last N lines of stdout/stderr for a background job. tail=0 returns full logs.
Inputs: job_id (required), tail.
read_fileARead-only
Read a text file with optional line-range slicing.
Inputs: path (required), offset, limit.
run_backgroundADestructive
Start a long-running command in the background. Returns a job_id you can poll with read_background.
Inputs: command (required), cwd.
run_commandADestructive
Run a shell command via bash -lc on the user's machine. Returns stdout/stderr/exit_code. Default cwd is the user-configured default working directory (or $HOME if unset). Output capped at 100KB per stream; full transcript saved to log_path.
Inputs: command (required), cwd, timeout, env.
write_fileADestructive
Create or overwrite a text file. Parent directories are created.
Inputs: path (required), content (required), overwrite.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a distinct purpose: run_command for synchronous commands, run_background for long-running, and separate tools for file operations and background job management. No overlap.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., kill_background, list_directory, read_file), making the set predictable.
With 8 tools, the server covers essential terminal operations (command execution, file read/write, listing, background jobs) without excessive tool count.
Core operations are present, but missing file deletion, rename, and persistent directory change tools; however, these can be accomplished via run_command, so only minor gaps.
Maintenance
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseAqualityBmaintenanceAllows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.2510,411MIT
- AlicenseAqualityCmaintenanceGive Claude Desktop full desktop control on Linux/X11: screenshot, mouse, keyboard, windows, clipboard, app launch. Zero-dependency MCP extension, MIT-licensed.15MIT
- FlicenseNot gradedqualityDmaintenanceProvides filesystem access to Claude via the MCP protocol, enabling local file operations through natural language.-
- AlicenseNot gradedqualityDmaintenanceExposes an interactive terminal over MCP, enabling remote shell command execution, file operations, and directory management via ChatGPT or Claude Desktop.2MIT