# termcp [Health: Active]

**Category:** 🖥️ Command Line  
**Repository:** https://github.com/open-mcp-ai/termcp  
**GitHub Stars:** 76  
**npm Downloads (last month):** 185  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/termcp

## Description
An MCP server that lets AI agents act like a human at a real terminal, local or over SSH.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "termcp": {
    "command": "npx",
    "args": ["-y","@open-mcp-ai/termcp"]
  }
}
```

## Documentation

## What termcp does

termcp gives an AI agent terminal access through MCP rather than exposing a separate tool for every command or extension. Its single-tool surface can operate on a local terminal, connect to hosts through SSH, and install or call MCP servers across machines over SSH. Agents can also create an MCP server and load it during a session.

The project is aimed at workflows where terminal interaction, host administration, and dynamic capability loading belong behind one MCP entry point. A web interface lets a person and an AI view and share local or SSH terminal sessions. Terminal output identifies whether each line came from a human, the AI, or the shell.

## How it works

The server uses the Termcp protocol, also called Terminalization Model Context Protocol, to represent terminal-oriented operations and dynamically loaded MCP capabilities. Loading more servers or skills does not add more MCP tools to the client-facing surface; termcp continues to expose exactly one tool.

Clients can connect through an MCP stdio process or through the HTTP stream endpoint. Legacy SSE is also available through `/sse`, with JSON-RPC sent to `/message`. An instance can run locally, in Docker, or as a standalone binary. Remote host access uses SSH, allowing an agent to manage approved hosts and invoke MCP servers located on other machines.

## Setup and configuration

The simplest setup runs the npm package through `npx`:

```json
{
  "mcpServers": {
    "termcp": {
      "command": "npx",
      "args": ["-y", "@open-mcp-ai/termcp", "daemon", "stdio"]
    }
  }
}
```

The package can also be installed globally with npm, installed with Go, run from a prebuilt release binary, or started from the published Docker image. Prebuilt binaries target macOS, Linux, and Windows on amd64 and arm64. Docker examples expose port `18765` and persist data under `/home/termcp`.

For HTTP clients, use an endpoint such as `http://localhost:18765/stream`. A bearer token can be supplied with the `Authorization` header when the instance is started with token authentication. The npm distribution downloads a matching binary and supports overrides including `TERMCP_VERSION`, `TERMCP_MIRROR`, `TERMCP_BIN`, and `TERMCP_SKIP_DOWNLOAD`.

## Tools and capabilities

- Exposes exactly one MCP tool for terminal-oriented interaction.
- Runs commands and sessions on local terminals.
- Connects to and manages hosts through SSH.
- Installs and calls MCP servers dynamically at runtime.
- Loads MCP servers written by the AI without restarting the overall workflow.
- Provides a web UI for shared local and SSH terminal sessions.

## Limitations and notes

Terminal access can affect the local machine or remote hosts, so deployments should account for the server's authentication and capability controls. HTTP deployments can use bearer-token authentication; loopback-only and Docker configurations are also described by the project. The server is distributed as a dependency-free Go binary and is released under the MIT License.

_Full upstream README: https://allmcps.com/mcp/termcp/readme_

