Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A secure shell command execution server implementing the Model Context Protocol (MCP) with whitelisting and stdin support.
GitHub MCP Server enables advanced automation and interaction capabilities for developers and tools using Model Context Protocol.
A secure shell command execution server implementing the Model Context Protocol (MCP). This server allows remote execution of whitelisted shell commands with support for stdin input.
To start the server, set the ALLOW_COMMANDS
environment variable with a comma-separated list of allowed commands:
ALLOW_COMMANDS="ls,cat,echo" uvx mcp-shell-server
The server accepts JSON payloads to execute commands. Here's an example request format:
{
"command": ["ls", "-l", "/tmp"],
"stdin": "Input for command",
"directory": "/path/to/execute",
"timeout": 30
}
And a sample successful response:
{
"stdout": "command output",
"stderr": "",
"status": 0,
"execution_time": 0.123
}
The server implements several security measures: