convez.ai
MCP ServerDevOps & InfraestruturaAvançado
acidghost

RCE MCP - Servidor HTTP para Execução de Comandos

acidghost/rce-mcp

Execute comandos remotos seguramente dentro de containers Docker

Ver no GitHub
InicialPluginScore · de 0 a 100

Servidor MCP que executa comandos arbitrários dentro de um container Docker, com autenticação por token e controles de segurança (timeouts, limites de output, modo non-root). Fornece ferramentas para executar programas individuais ou scripts Bash completos, retornando exit code, stdout, stderr e metadados de execução.

Instalação

$npx convez-ai acidghost/rce-mcp

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
28%
Último commit
há 1 dia
Versão
—
Issues abertas
1
Contribuidores
2

Casos de uso

  • Integração de Claude com ferramentas CLI (git, python, bash) em ambiente isolado
  • Automação de tarefas de DevOps e scripting através de MCP
  • Execução de análises de dados e processamento de arquivos em sandbox controlado

Veredito

Ferramenta especializada e bem projetada para quem precisa executar comandos remotos via Claude com isolamento Docker. Exige compreensão de segurança (autenticação obrigatória, containerização) e é indicada para arquiteturas que integram IA com infraestrutura existente.

README

A tradução para o português deste README ainda está na fila.

rce-mcp

An HTTP MCP server that executes commands inside its Docker container.

Quickstart

just docker-build
docker run --rm -p 3000:3000 \
  -e RCE_MCP_TOKEN='change-me' \
  -v "$PWD:/workspace" \
  rce-mcp

MCP endpoint: http://localhost:3000/mcp

Health check: GET http://localhost:3000/healthz

Authentication

Token authentication is enabled by default. Send:

Authorization: Bearer change-me

Configuration can be supplied by CLI flags or environment variables:

rce-mcp --token change-me
RCE_MCP_TOKEN=change-me rce-mcp

To disable built-in auth behind a trusted authenticating proxy:

rce-mcp --auth-mode none
# or
RCE_MCP_AUTH_MODE=none rce-mcp

Do not expose this server to untrusted networks without authentication.

Tools

execute_command

Execute a program with arguments.

{
  "program": "python3",
  "args": ["-c", "print('hello')"],
  "stdin": "",
  "timeout_ms": 30000,
  "output_limit_bytes": 1048576
}

execute_bash

Execute a Bash script.

{
  "script": "pwd && ls -la",
  "stdin": "",
  "timeout_ms": 30000,
  "output_limit_bytes": 1048576
}

Both tools return structured results:

{
  "exit_code": 0,
  "stdout": "...",
  "stderr": "...",
  "stdout_truncated": false,
  "stderr_truncated": false,
  "timed_out": false,
  "duration_ms": 123
}

Execution model

  • The server listens on 0.0.0.0:3000 by default.
  • Commands always start in /workspace.
  • Commands run inside the container, not on the Docker host.
  • The image runs as non-root user rce:rce with UID/GID 1000.
  • Runtime package installation is not supported by default; extend the image if you need more tools.
  • Command process state is not preserved between tool calls.
  • The server controls the command environment; clients cannot provide environment variables.

Default limits:

  • timeout: 30s default, 5m max
  • captured output: 1 MiB default per stream, 10 MiB max per stream
  • stdin: 10 MiB max
  • concurrent commands: 4

Included runtime tools

The Docker image includes common command-line tools such as Bash, coreutils, curl, git, jq, make, Python 3, ripgrep, tar, gzip, and unzip. It does not include the Go toolchain.

Ver o original no GitHub

Bom para

Relacionados