Skip to main content
Glama

iTerm MCP Server

by rishabkoul

ITerm MCP 服务器

用于 iTerm2 终端集成的模型上下文协议 (MCP) 服务器实现。该服务器允许 AI 助手通过模型上下文协议与 iTerm2 终端进行交互。

特征

  • 创建和管理 iTerm2 终端会话
  • 在终端中执行命令
  • 读取终端输出
  • 列出活动终端
  • 关闭终端

要求

  • Node.js >= 14.x
  • iTerm2
  • macOS(因为 iTerm2 仅适用于 macOS)

配置

标准配置

该服务器使用标准 MCP 配置选项。无需额外配置。

游标配置

要将此服务器与 Cursor 一起使用,请将以下配置添加到您的~/.cursor/mcp.json文件中:

{ "mcpServers": { "terminal": { "command": "npx", "args": ["iterm_mcp_server"] } } }

工具

  • open_terminal :打开一个新的终端实例
  • execute_command :在特定终端中执行命令
  • read_output :从特定终端读取输出
  • close_terminal :关闭特定终端
  • list_terminals :列出所有活动终端及其信息

安全注意事项

  • 服务器使用 Zod 模式验证所有输入
  • 命令在隔离的终端会话中执行
  • 实施适当的错误处理和输入清理

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

国际学习中心

作者

里沙布·库尔

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议服务器,使 AI 助手能够与 iTerm2 终端交互,允许创建和管理终端会话、执行命令以及读取终端输出。

  1. 特征
    1. 要求
      1. 配置
        1. 标准配置
        2. 游标配置
      2. 工具
        1. 安全注意事项
          1. 贡献
            1. 执照
              1. 作者

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that provides programmatic access to the Windows terminal, enabling AI models to interact with the Windows command line through standardized tools for writing commands, reading output, and sending control signals.
                  Last updated -
                  3
                  JavaScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.
                  Last updated -
                  1
                  3
                  18
                  JavaScript
                • A
                  security
                  A
                  license
                  A
                  quality
                  A server that enables AI assistants to execute terminal commands and retrieve outputs via the Model Context Protocol (MCP).
                  Last updated -
                  3
                  6
                  Python
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  -
                  license
                  -
                  quality
                  A Model Context Protocol server that gives AI models access to your iTerm terminal session, allowing them to read output, write commands, and send control characters.
                  Last updated -
                  TypeScript
                  MIT License

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/rishabkoul/iTerm-MCP-Server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server