An MCP server that gives AI agents shell access. Provides a run_command tool for executing shell commands and returning stdout, stderr, and exit code.
Supports Streamable HTTP, SSE, and stdio transports.
npx @supercorp/shell-mcpThis starts an HTTP server on port 8000.
npx @supercorp/shell-mcp --port 3000npx @supercorp/shell-mcp --transport sse --port 3000npx @supercorp/shell-mcp --transport stdio| Flag | Default | Description |
|---|---|---|
--port |
8000 |
Port to listen on (HTTP and SSE transports) |
--transport |
http |
Transport type: http, sse, or stdio |
--workdir |
. |
Default working directory for commands |
Execute a shell command.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
command |
string |
Yes | The shell command to run |
workdir |
string |
No | Working directory (overrides --workdir) |
Response:
{
"stdout": "hello world\n",
"stderr": "",
"exitCode": 0
}Commands have a 60-second timeout and 10 MB output buffer.
{
"mcpServers": {
"shell": {
"command": "npx",
"args": ["-y", "@supercorp/shell-mcp", "--transport", "stdio"]
}
}
}{
"mcpServers": {
"shell": {
"url": "http://localhost:8000/"
}
}
}ISC