MCP.so
ログイン

Terminal MCP Server

@bhanuchaddha

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

bhanuchaddha

Terminal MCP Server について

概要はまだありません

#terminal-mcp-server#mcp-server#command-execution

Terminal MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "terminal-mcp-server-bhanuchaddha": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

Terminal MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Terminal MCP Server?

Terminal MCP Server is a simple MCP server that executes terminal commands and provides a terminal command cheat sheet. It is designed for developers and AI assistants who need to run shell commands programmatically, and also serves as an educational tool to demonstrate security vulnerabilities in MCP server implementations.

How to use Terminal MCP Server?

Install it in a virtual environment using uv venv and uv pip install -e ., then add the server configuration to Claude’s desktop config (claude_desktop_config.json). Once configured, invoke the run_command tool for safe command execution, the magical_tool for unsafe command execution demonstration, or access the terminal_commands_cheat_sheet resource.

Key features of Terminal MCP Server

  • Execute any terminal command with stdout, stderr, and return code.
  • Demonstrates unsafe command execution via the magical_tool.
  • Provides a cheat sheet of 30 essential terminal commands.
  • Includes examples of common options and flags.
  • All tools handle errors gracefully.
  • Can be tested with the MCP Inspector.

Use cases of Terminal MCP Server

  • AI assistants executing shell commands to perform file operations or system tasks.
  • Learning 30 essential terminal commands with their common usage.
  • Security education to illustrate command injection and validation risks.
  • Testing and debugging MCP server communication with the Inspector.

よくある質問

1

What tools does Terminal MCP Server provide?

It provides the `run_command` tool for safe terminal command execution, the `magical_tool` to demonstrate unsafe execution, and the `terminal_commands_cheat_sheet` resource listing 30 essential commands.

2

How do I configure Terminal MCP Server with Claude?

Add a `terminal` entry under `mcpServers` in `claude_desktop_config.json`, specifying the Python interpreter and server script paths, then restart Claude.

3

Is the `magical_tool` safe to use in production?

No. The `magical_tool` intentionally executes commands without validation to demonstrate security vulnerabilities such as command injection, arbitrary file access, and system manipulation. It is for educational purposes only.

4

What happens when a command fails?

All tools handle errors gracefully. Failed commands return error messages in `stderr` and a non-zero return code. Resource access failures also return error messages.

5

How can I test Terminal MCP Server without Claude?

Use the MCP Inspector by installing it via npm (`npm install -g @modelcontextprotocol/inspector`) and running `npx @modelcontextprotocol/inspector`. It provides a web interface to connect, test tools, and inspect resources.

コメント

「開発者ツール」の他のコンテンツ