Shell Server MCP Server

Executes shell commands via the Model Context Protocol (MCP) enabling safe execution of shell commands by AI agents.

Local serverstdio★ 8

What is the Shell Server MCP Server?

Executes shell commands via the Model Context Protocol (MCP) enabling safe execution of shell commands by AI agents.

The short version

A server that uses the Model Context Protocol (MCP) to execute shell commands. It functions as a bridge that allows AI agents to safely execute shell commands.

  • Execute shell commands (single-line and multi-line support)
  • Support for various shells (bash, zsh, fish, powershell, cmd, etc.)
  • Detailed error handling and logging
  • MCP Inspector compatible

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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
shell_exec
hostname
platform
shell
username

How to install the Shell Server MCP Server

{
  "mcpServers": {
    "shell": {
      "command": "npx",
      "args": ["-y", "@mkusaka/mcp-shell-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use Shell Server to shell exec.”
  • “Use Shell Server to hostname.”
  • “Use Shell Server to platform.”

Frequently asked questions

Shell Server is a tool that uses the Model Context Protocol (MCP) to execute shell commands, allowing AI agents to safely interact with the system by running commands in a controlled environment.