🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

iterminal-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterminal-mcp-server

MCP Server for iTerminal SSH Connection Manager - Control SSH servers through Claude and other AI assistants

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
41
-10.87%
Maintainers
1
Weekly downloads
 
Created
Source

iTerminal MCP Server

MCP Server for iTerminal SSH Connection Manager - Control SSH servers through Claude and other AI assistants.

Features

  • 🔌 SSH Connection Management - Create, test, and manage SSH connections
  • 💻 Command Execution - Execute commands on remote servers
  • 📊 System Monitoring - Real-time CPU, memory, disk metrics
  • 📁 File Operations - List directories, create folders, rename/delete files
  • 🤖 AI Integration - Works with Claude Desktop and other MCP clients

Installation

npx iterminal-mcp-server

Via npm

npm install -g iterminal-mcp-server
iterminal-mcp

Configuration

OpenCode (推荐)

OpenCode 是一款强大的 AI 编程助手,支持 MCP 协议。配置步骤:

  • 打开配置文件 ~/.config/opencode/opencode.jsonc
  • mcp 字段中添加 iTerminal 配置:
{
  "mcp": {
    "iterminal": {
      "type": "local",
      "command": ["npx", "iterminal-mcp-server"],
      "enabled": true
    }
  }
}
  • 重启 OpenCode 生效

配置说明:

字段说明
type固定为 "local",表示本地 MCP 服务器
command启动命令,使用 npx 直接运行 npm 包
enabled是否启用该 MCP 服务器

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "iterminal": {
      "command": "npx",
      "args": ["iterminal-mcp-server"]
    }
  }
}

Cursor / Windsurf

在 AI 设置中添加 MCP 服务器:

{
  "mcpServers": {
    "iterminal": {
      "command": "npx",
      "args": ["iterminal-mcp-server"]
    }
  }
}

Prerequisites

  • iTerminal desktop app must be running with the HTTP API enabled on port 27149
  • Node.js 18+ (for npx)
  • SSH credentials for your servers

Available Tools

ToolDescription
iter_statusCheck iTerminal API service status
iter_connectCreate SSH connection
iter_disconnectDisconnect SSH connection
iter_test_connectionTest SSH connection without persisting
iter_list_connectionsList all active SSH connections
iter_execExecute command on remote server
iter_monitorGet system metrics (CPU/memory/disk)
iter_list_dirList remote directory contents
iter_mkdirCreate directory on remote server
iter_rmDelete file on remote server
iter_renameRename file or directory

Usage Examples

Once configured with Claude, you can use natural language:

"Connect to my production server at 192.168.1.100"
"Check the CPU usage on the connected server"
"List files in /var/log"
"Run 'docker ps' on the server"
"Create a new directory /tmp/myapp"

API Reference

The MCP server connects to iTerminal's local HTTP API at http://127.0.0.1:27149.

Connection Management

// Connect
{
  id: "my-server",
  host: "192.168.1.100",
  port: 22,
  username: "root",
  password: "********"
}

// Execute command
{
  id: "my-server",
  command: "docker ps"
}

// Monitor system
{
  id: "my-server"
}

File Operations

// List directory
{
  id: "my-server",
  path: "/var/log"
}

// Create directory
{
  id: "my-server",
  path: "/tmp/newdir"
}

// Rename
{
  id: "my-server",
  old_path: "/tmp/old.txt",
  new_path: "/tmp/new.txt"
}

Development

# Install dependencies
npm install

# Build
npm run build

# Development mode
npm run dev

# Run locally
node dist/index.js

Architecture

┌─────────────────┐      ┌─────────────────┐      ┌─────────────────┐
│   Claude/AI     │─────►│  MCP Server     │─────►│ iTerminal API   │
│                 │ MCP  │  (this package) │ HTTP │  (port 27149)   │
└─────────────────┘      └─────────────────┘      └─────────────────┘
                                                          │
                                                          │ SSH
                                                          ▼
                                                  ┌─────────────────┐
                                                  │  Remote Server  │
                                                  └─────────────────┘
  • iTerminal - Main desktop application
  • Model Context Protocol - MCP specification

License

MIT

Keywords

mcp

FAQs

Package last updated on 09 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts