Remote Terminal MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
remote-terminal-mcp
一个提供远程终端能力的 MCP(Model Context Protocol)服务器。服务启动后会在本地标准输出生成一个随机 Access Token,后续所有调用必须在 HTTP 请求头携带 Authorization: Bearer <token>,否则统一返回 401 Unauthorized。
功能特性
启动自动生成并输出 Access Token:使用加密随机数生成 256-bit Token(也支持通过
MCP_ACCESS_TOKEN或--token指定)。严格 HTTP 401 鉴权:使用
crypto.timingSafeEqual校验 Bearer Token,未认证或 Token 错误时返回401 Unauthorized与WWW-Authenticate: Bearer。Streamable HTTP MCP 传输:基于
@modelcontextprotocol/sdk在/mcp端点提供标准远程 MCP 服务。终端工具集:
exec_command:执行单次命令并返回stdout、stderr、exitCode、耗时和超时状态。create_session:创建持久化交互式 Shell 会话(保留工作目录和环境变量)。write_session:向会话发送命令或输入文本。read_session:按字节游标增量读取会话输出。list_sessions:查看所有终端会话状态。close_session:关闭并清理终端会话及子进程。
Related MCP server: mcp-shell-server
安装与运行
npm install
npm run build
npm start启动后本地终端会输出:
============================================================
Remote Terminal MCP Server started
MCP Endpoint : http://127.0.0.1:3000/mcp
Access Token : <your-generated-access-token>
Auth Header : Authorization: Bearer <your-generated-access-token>
============================================================CLI 参数与环境变量
参数 | 环境变量 | 默认值 | 说明 |
|
|
| 监听地址 |
|
|
| 监听端口 |
|
| 随机生成 | 固定 Access Token |
客户端配置示例
{
"mcpServers": {
"remote-terminal": {
"url": "http://127.0.0.1:3000/mcp",
"headers": {
"Authorization": "Bearer <your-generated-access-token>"
}
}
}
}测试
npm run build
npm testTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Authenticated MCP server for ClearPolicy policy and compliance workflows.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Secure and manage MCP servers through the Speakeasy AI Control Plane from your agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables SSH interactive session management through MCP, supporting commands, menus, and session lifecycle operations.1-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to run shell commands on the host and retrieve exit code, stdout, and stderr, with hardened authentication and an encrypted audit log.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to execute shell commands, manage long-running processes, and read/write files on the host machine with the permissions of the user running the server.5 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents and MCP clients to securely execute shell commands, manage files, and access remote devices or SSH hosts through centralized authentication, routing, and auditing.Apache 2.0