MCP.so
ログイン

Shell MCP Server

@odysseus0

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

odysseus0

Shell MCP Server について

概要はまだありません

Shell MCP Server の設定

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

{
  "mcpServers": {
    "mcp-server-shell": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server_shell"
      ]
    }
  }
}

Shell MCP Server のツール

1

Execute a shell command and return its output

概要

What is Shell MCP Server?

A Model Context Protocol server that provides shell command execution capabilities. It enables LLMs to execute shell commands and receive their output in a controlled manner.

How to use Shell MCP Server?

Install via uvx mcp-server-shell or pip install mcp-server-shell, then configure the server in your MCP client (e.g., Claude.app or Zed) by adding the appropriate JSON entry. Use the execute_command tool with a command string argument to run any shell command.

Key features of Shell MCP Server

  • Executes shell commands and returns combined stdout/stderr output.
  • Returns the command’s exit code for success/failure detection.
  • Supports installation via uv (uvx) or pip.
  • Ready‑made configurations for Claude.app and Zed.
  • Can be debugged using the MCP inspector.
  • Licensed under the MIT License.

Use cases of Shell MCP Server

  • “List files in the current directory.”
  • “Show the contents of a specific file (e.g., README.md).”
  • “Check the current system date.”
  • “Verify if Python is installed and its version.”

よくある質問

1

What does the Shell MCP Server do?

It gives LLMs the ability to run arbitrary shell commands and receive their output (stdout, stderr) and exit code in real time.

2

How do I install the Shell MCP Server?

You can run it directly with `uvx mcp-server-shell` (no install needed) or install it via `pip install mcp-server-shell` and then execute `python -m mcp_server_shell`.

3

How do I configure the server for Claude.app?

Add a JSON entry to your Claude settings under `mcpServers` – either using `uvx` or `python` as the command, with the appropriate arguments.

4

Are there security risks?

Yes. The server executes shell commands directly on your system. Use with caution and implement appropriate security measures to prevent unauthorized or dangerous command execution.

5

How can I debug the server?

Use the MCP inspector tool: run `npx @modelcontextprotocol/inspector uvx mcp-server-shell` (or a similar command for pip installations).

コメント

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