MCP Terminal Server

MCP ターミナルサーバー

ターミナル コマンドを実行するためのツールを公開するシンプルな MCP サーバー。

インストール

  1. MCP Python SDK をインストールします。
pip install mcp

使用法

  1. サーバーを起動します。
python server.py
  1. Claude Desktop などの MCP 互換クライアントでサーバーに接続します。
mcp install server.py

または、MCP Inspector を使用してテストします。

mcp dev server.py

ツールの概要

このサーバーは 1 つのツールを公開します:

端末コマンド

ターミナルコマンドを実行し、その出力を返します。

パラメータ:

  • command : ターミナルで実行するコマンド

戻り値:

  • 次の内容を含む辞書:
    • stdout : コマンドからの標準出力
    • stderr : コマンドからの標準エラー出力
    • return_code : コマンドの戻りコード(通常、0は成功を意味します)

Claudeでの使用例:

Can you list the files in the current directory using the terminal tool?

セキュリティに関する考慮事項

このツールはシステム上で直接コマンドを実行します。サーバーを実行しているユーザーと同じ権限で任意のコマンドを実行できるため、注意して使用してください。

制限事項

  • コマンドは30秒後にタイムアウトします
  • セキュリティ上の理由から、実行可能なコマンドに対して追加の検証と制限を実装することを検討してください。
-
security - not tested
F
license - not found
-
quality - not tested

出力キャプチャ付きのターミナル コマンドの実行を可能にし、Claude Desktop などの MCP 互換クライアントからホスト システム上でコマンド実行を可能にするシンプルな MCP サーバーです。

  1. インストール
    1. 使用法
      1. ツールの概要
        1. 端末コマンド
      2. セキュリティに関する考慮事項
        1. 制限事項

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An MCP server to run commands.
            Last updated -
            2
            446
            138
            TypeScript
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            A simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.
            Last updated -
            39
            2
            JavaScript
          • -
            security
            F
            license
            -
            quality
            An MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.
            Last updated -
            7
            Python
            • Apple
          • -
            security
            A
            license
            -
            quality
            An enhanced MCP server that grants AI assistants the ability to execute terminal commands on a user's system with improved security controls, designed for use in controlled environments.
            Last updated -
            Python
            MIT License
            • Apple

          View all related MCP servers

          ID: yqw8e6f4dl