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

The tools it exposes

The server publishes 6 tools. What each one is for:

  • shell_exec — The shell_exec tool exposed by this server
  • hostname — The hostname tool exposed by this server
  • platform — The platform tool exposed by this server
  • shell — The shell tool exposed by this server
  • username — The username tool exposed by this server
  • Logging — The Logging tool exposed by this server

Recorded tools

  • shell_exec — The shell_exec tool exposed by this server.
  • hostname — The hostname tool exposed by this server.
  • platform — The platform tool exposed by this server.
  • shell — The shell tool exposed by this server.
  • username — The username tool exposed by this server.

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_execThe shell_exec tool exposed by this server.
hostnameThe hostname tool exposed by this server.
platformThe platform tool exposed by this server.
shellThe shell tool exposed by this server.
usernameThe username tool exposed by this server.

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.