MCP.so
登录

Terminal MCP Server

@MCP-Mirror

基本信息

分类

开发工具

传输方式

stdio

作者

MCP-Mirror

关于 Terminal MCP Server

Mirror of

Terminal MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "weidwonder_terminal-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@weidwonder/terminal-mcp-server",
        "--client",
        "claude"
      ]
    }
  }
}

Terminal MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Terminal MCP Server?

Terminal MCP Server is a Model Context Protocol (MCP) server that allows executing commands on local or remote hosts. It provides a simple yet powerful interface for AI models and other applications to execute system commands, either on the local machine or on remote hosts via SSH.

How to use Terminal MCP Server?

Install manually via git clone, npm install, and npm run build, or automatically via Smithery using npx -y @smithery/cli install @weidwonder/terminal-mcp-server --client claude. Start the server in stdio mode with npm start or in SSE mode with npm run start:sse. Configure the server URL in your AI assistant’s MCP settings file (e.g., Claude Desktop, Cline, or Roo Code).

Key features of Terminal MCP Server

  • Execute commands directly on the local machine
  • Execute commands on remote hosts via SSH
  • Persistent sessions that reuse the same terminal environment (default 20 minutes)
  • Set custom environment variables per command
  • Connect via stdio or SSE (Server-Sent Events)

Use cases of Terminal MCP Server

  • AI assistants running system commands on the user’s local machine
  • Remotely executing commands on a server via SSH from an AI chat interface
  • Maintaining a persistent terminal session across multiple related command calls

常见问题

1

What parameters does the execute_command tool accept?

The tool accepts a required `command` string, optional `host` and `username` for remote execution, optional `session` name (defaults to "default"), and optional `env` object for environment variables.

2

How do I connect to a remote host?

Specify the `host` and `username` parameters in the execute_command tool. SSH key-based authentication must be set up in advance; the default key path is `~/.ssh/id_rsa`.

3

How long do sessions persist?

Sessions automatically close after 20 minutes of inactivity. Using the same session name across commands reuses the same terminal environment within that window.

4

What transport modes are supported?

The server supports stdio (local connection) and SSE (Server-Sent Events for remote HTTP connections). SSE mode can be customized with `--port`, `--host`, and `--endpoint` flags.

5

Where does data live and what are the security requirements?

Commands run in the context of the user who started the server. For local execution, no additional setup is needed. For remote execution, SSH key-based authentication must be configured on the target host.

评论

开发工具 分类下的更多 MCP 服务器