# claude-terminal-mcp

> claude-terminal-mcp is an open-source MCP server for ai models and llm tooling. Gives Claude shell, file and background-job access on a local Linux desktop install. It is available on Linux, macOS and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Linux, macOS, Self-hosted
- **Repository:** https://github.com/lukelamb/claude-terminal-mcp
- **GitHub stars:** 6
- **License:** MIT
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Claude Desktop on Linux has no config-file route for MCP servers, so this packaged extension fills that gap by adding terminal and filesystem tools directly. Once enabled, Claude can run shell commands through bash, read and write files, list directories and start long-running processes that keep working while the chat moves on.

Commands run with the same permissions as your user account, and output beyond 100KB per stream is cut off while the full transcript is saved to a log file whose path is returned. Background jobs can be listed, inspected by their tail output, and terminated with SIGTERM followed by SIGKILL after five seconds. A small denylist blocks a few destructive one-liners, but the project describes it as a safety net rather than a sandbox.

It suits developers and power users on Linux who want Claude to build, test or script within a project folder. It is zero-dependency Node code under the MIT license, and the default working directory can be set at install time or changed later in extension settings.

## Features

- **Shell command execution:** Runs bash commands with pipes, redirects and virtualenv activation, returning stdout, stderr and exit code.
- **Background job control:** Starts detached processes and lets Claude check their status, read recent output and stop them.
- **File reading and writing:** Reads text files with line-range slicing and creates or overwrites files, making parent directories as needed.
- **Directory listing:** Shows entries with type, size and modification time for any path.
- **Full transcript logs:** Saves complete command output to a file so long results stay available after truncation.
- **Configurable default directory:** Sets the folder where commands run when no working directory is given.

## Good for

- Running builds, tests or training jobs from a chat while keeping the conversation responsive
- Editing and generating project files in a local repository
- Checking logs and process status for a server started earlier in the session
- Scripting routine maintenance tasks on a personal Linux machine

## Tools

From the tool list in its README, going by the names, 3 of 8 tools change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `run_command` (name suggests: changes): Run a shell command via bash -lc with optional cwd, timeout and env.
- `read_file` (name suggests: reads): Read a text file with optional line-range slicing.
- `list_directory` (name suggests: reads): List entries with type, size and mtime.
- `write_file` (name suggests: changes): Create or overwrite a text file, creating parent directories.
- `run_background` (name suggests: changes): Spawn a detached subprocess and return a job_id.
- `read_background` (name suggests: reads): Get status and last N lines of output for a background job.
- `list_background` (name suggests: reads): List all background jobs.
- `kill_background`: Send SIGTERM to a background job, then SIGKILL after 5 seconds if still alive.

## FAQ

### Does the extension send data anywhere?

The extension makes no network requests of its own and does not send telemetry. Claude Desktop still transmits tool inputs and outputs as part of normal chat.

### Where are command logs stored?

Transcripts go to /tmp/claude-term-mcp/runs and background job state to /tmp/claude-term-mcp/jobs. The folder is cleared at reboot.

### Is the denylist a security boundary?

No. It only refuses a few obviously destructive commands and can be bypassed, so the extension should be treated like giving someone a shell session.

### What does installation require?

Claude Desktop 0.10.0 or later on Linux, Node.js 16 or later (bundled with Claude Desktop) and bash on the PATH.

### Is claude-terminal-mcp free?

Yes. claude-terminal-mcp is open source, so you can use and self-host it for free.

### What are the best alternatives to claude-terminal-mcp?

The closest alternatives to claude-terminal-mcp are Desktop Commander, Claude MCP Bridge, mac-terminal-mcp, Claude Code Explorer MCP and codemcp.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [Desktop Commander](https://ai-powered.com/mcp/desktop-commander): Desktop Commander is an open-source MCP server for developer tools.
- [Claude MCP Bridge](https://ai-powered.com/mcp/claude-mcp-bridge): Claude MCP Bridge is an open-source MCP server for ai models and llm tooling.
- [mac-terminal-mcp](https://ai-powered.com/mcp/mac-terminal-mcp): mac-terminal-mcp is an open-source MCP server for developer tools.
- [Claude Code Explorer MCP](https://ai-powered.com/mcp/claude-code-explorer-mcp): Claude Code Explorer MCP is an open-source MCP server for ai models and llm tooling.
- [codemcp](https://ai-powered.com/mcp/codemcp-2): codemcp is an open-source MCP server for developer tools.
- [iterm-mcp](https://ai-powered.com/mcp/iterm-mcp): iterm-mcp is an open-source MCP server for ai models and llm tooling.
- [Claudebox](https://ai-powered.com/mcp/claudebox): Claudebox is an open-source MCP server for developer tools.
- [Dear Claude](https://ai-powered.com/mcp/dear-claude): Dear Claude is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/claude-terminal-mcp
