MCP.so
ログイン

Shell Command MCP Server

@egoist

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

egoist

Shell Command MCP Server について

MCP server for executing shell commands.

Shell Command MCP Server の設定

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

{
  "mcpServers": {
    "shell-command-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shell-command-mcp"
      ]
    }
  }
}

Shell Command MCP Server のツール

1

Execute a shell command

概要

What is shell-command-mcp?

shell-command-mcp is an MCP server for executing shell commands, sponsored by ChatWise.

How to use shell-command-mcp?

Configure the server via JSON using the command npx -y shell-command-mcp. Use the ALLOWED_COMMANDS environment variable to explicitly allow commands (comma-separated) or * to allow any command.

Key features of shell-command-mcp

  • Executes shell commands via an MCP server.
  • Restricts commands using the ALLOWED_COMMANDS environment variable.
  • Supports wildcard * to allow any command (potentially dangerous).
  • Sponsored by ChatWise.
  • Simple stdio-based transport.

Use cases of shell-command-mcp

  • Allowing an LLM to run basic shell commands like ls, cat, and echo.
  • Integrating shell command execution into MCP-compatible applications.

よくある質問

1

What does shell-command-mcp do?

It is an MCP server for executing shell commands.

2

How can I restrict which commands are allowed?

Set the `ALLOWED_COMMANDS` environment variable with a comma-separated list of allowed commands. Use `*` to allow any.

3

Is it safe to allow all commands?

Allowing all commands with `*` is potentially dangerous.

4

How do I run shell-command-mcp?

Execute `npx -y shell-command-mcp` from the command line. You can also configure it in a JSON configuration file under `mcpServers`.

コメント

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