MCP Unix Shell MCP Server

Go server implementing Model Context Protocol (MCP) for executing shell commands.

Local serverstdioGo

What is the MCP Unix Shell MCP server?

If you want an AI assistant working directly with MCP Unix Shell, the mcp unix shell mcp server is the bridge. Go server implementing Model Context Protocol (MCP) for executing shell commands.

What MCP Unix Shell does

Go server implementing Model Context Protocol (MCP) for executing shell commands.

Key capabilities

  • Execute shell commands using bash or zsh
  • List previous command executions
  • Safety features to limit allowed commands
  • Configure allowed command set for security

Tools it exposes

Once connected, the assistant can call these 7 tools directly:

  • execute_command — Execute a shell command
  • Input — - command (string): The command to execute
  • Output — - Command output with both stdout and stderr
  • list_recent_commands — List recently executed commands
  • list_allowed_commands — List all commands that the server is allowed to execute
  • Returns — - List of allowed commands or "*" if all commands are allowed
  • Tools — The Tools tool exposed by this server

Installing the mcp unix shell mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. MCP Unix Shell sits in that group, and the shape of its toolset — execute_command, Input, Output among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • With 7 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use MCP Unix Shell.
  • Maintained by gamunu, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp unix shell mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
execute_commandExecute a shell command
Input- command (string): The command to execute
Output- Command output with both stdout and stderr
list_recent_commandsList recently executed commands
list_allowed_commandsList all commands that the server is allowed to execute
Returns- List of allowed commands or "*" if all commands are allowed
ToolsThe Tools tool exposed by this server.

Example prompts to try

  • Use MCP Unix Shell to execute command.
  • Use MCP Unix Shell to Input.
  • Use MCP Unix Shell to Output.

Frequently asked questions

It connects MCP Unix Shell to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (execute_command, Input, Output, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Unix Shell directly.