Shell Command MCP Server
About
Execute pre-configured and secure shell commands via a Go-based MCP server.
Details
- Author
- gamunu
- Categories
- Developer Tools, Infrastructure, Other, Cloud Service
Jump to
Setup
Install Shell Command MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/gamunu/mcp-unix-shell
Follow the installation instructions in the repository README, then restart your MCP client.
Execute pre-configured and secure shell commands via a Go-based MCP server.
Go server implementing Model Context Protocol (MCP) for executing shell commands.
- Execute shell commands using bash or zsh
- List previous command executions
- Safety features to limit allowed commands
- Configure allowed command set for security
Note: The server will only allow execution of commands specified via the allowedCommands parameter or all commands if configured with "".
- Execute a shell command
- Input:
- command(string): The command to execute
- shell(string, optional): The shell to use (bash or zsh, defaults to bash)
- Command output with both stdout and stderr
- Exit code
- Execution time
- List recently executed commands
- Input:
- limit(integer, optional): Number of commands to return (defaults to 10)
- List of recently executed commands with timestamps and status
- List all commands that the server is allowed to execute
- No input required
- Returns:
- List of allowed commands or "" if all commands are allowed
go install github.com/gamunu/mcp-unix-shell
Add this to yourclaude_desktop_config.json:
{ "mcpServers": { "shell": { "command": "mcp-unix-shell", "args": [ "--allowed-commands=ls,cat,echo,find" ] } } }
To allow all commands (use with caution):
{ "mcpServers": { "shell": { "command": "mcp-unix-shell", "args": [ "--allowed-commands=*" ] } } }
When using this MCP server, please consider:
- Only allow commands you trust - a restrictive allowlist is recommended
- Avoid allowing commands that could modify system settings or access sensitive data
- The server runs with the permissions of the user running Claude Desktop
- Command output is sent back to the LLM, so be mindful of sensitive information
This MCP server is licensed under the Apache License 2.0.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Execute pre-approved shell commands securely on a server.
A high-performance MCP server for the headless terminal (ht), implemented in Rust.
Execute shell commands with permission notifications.
Execute shell commands without permission prompts.
Execute bash commands on the host machine.
Execute shell commands with structured output via a powerful CLI server.
A secure MCP server for executing controlled command-line operations with comprehensive security features.
MCP server for controlling cmux (Ghostty-based terminal) via native CLI. Send commands, read output, send control characters — all in background via Unix socket.
A secure MCP server for executing terminal commands with controlled directory access and command permissions.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





