mcp-shell MCP Server

MCP server that runs shell commands. Your LLM gets a tool; you get control over what runs and how.

Local serverstdio

What is the mcp-shell MCP Server?

mcp-shell source profile. From the maintainer documentation: “MCP server that runs shell commands. Your LLM gets a tool; you get control over what runs and how.”

Local setup

The project provides a local client configuration using docker. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares MCP_SHELL_LOG_LEVEL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
read_filepath, offset, limit, tail
list_dirpath, depth, include_hidden
globpattern, path, newer_than, max_results
greppattern, path, glob, ignore_case, context, files_only, count, max_results
statpath
diff_filespath_a, path_b
system_info
git_status
git_logmax_count, ref, path, author, grep, since, until, oneline, follow
git_diffref, ref_to, staged, path, stat_only, name_only
git_showref, path, stat_only
git_blamepath, ref, line_start, line_end
git_branchesall, merged
git_tagspattern
git_rev_parseref
git_ls_filespath, untracked
git_stash_list
git_remotes
write_filepath, content, append
edit_filepath, old_string, new_string, replace_all
mkdirpath
movefrom, to
deletepath, recursive
git_addpaths, all
git_commitmessage, all
git_switchbranch, create
git_restorepaths, staged
git_stashaction, message
run_scriptname

How to install the mcp-shell MCP Server

{
  "mcpServers": {
    "shell": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "sonirico/mcp-shell:latest"
      ],
      "env": {
        "MCP_SHELL_LOG_LEVEL": "info"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
MCP_SHELL_LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation