Run shell commands securely and auditably on demand, optionally in isolated environments such as Docker.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add shell -- docker run --rm -i mcp-shell:latest~/.codex/config.toml
[mcp_servers.shell]
command = "docker"
args = ["run", "--rm", "-i", "mcp-shell:latest"]
# codex mcp add shell -- docker run --rm -i mcp-shell:latest~/.cursor/mcp.json
{
"mcpServers": {
"shell": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-shell:latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"shell": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-shell:latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"shell": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-shell:latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"shell": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-shell:latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"shell": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"mcp-shell:latest"
]
}
}
}