Skip to main content
ClaudeWave
ar-blues avatar
ar-blues

scratchrun-mcp

Ver en GitHub

MCP server for ScratchRun — ephemeral MicroVM code execution for AI agents

MCP ServersRegistry oficial0 estrellas0 forksJavaScriptActualizado today
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/ar-blues/scratchrun-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "scratchrun-mcp": {
      "command": "node",
      "args": ["/path/to/scratchrun-mcp/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/ar-blues/scratchrun-mcp and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

# @scratchrun/mcp-server

MCP server for [ScratchRun](https://scratchrun.dev) — ephemeral, MicroVM-isolated code execution for AI agents.

Each call runs in a fresh hardware-isolated MicroVM. The VM is hard-purged after execution. No state, no files, nothing persists between calls.

## Install

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "scratchrun": {
      "command": "npx",
      "args": ["-y", "@scratchrun/mcp-server"],
      "env": {
        "SCRATCHRUN_API_KEY": "sr_live_your_key_here"
      }
    }
  }
}
```

Get an API key at [scratchrun.dev](https://scratchrun.dev).

## Tool: `scratchrun_exec`

Executes code in an ephemeral sandbox and returns stdout, stderr, exit code, and any output files.

**Parameters:**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `runtime` | `python3.12` \| `python3.11` \| `node20` \| `bash` | yes | Runtime to use |
| `code` | string | yes | Code to execute |
| `timeout_ms` | integer | no | Timeout in ms (default 10000, max 30000) |
| `memory_mb` | integer | no | Memory limit in MB (default 256, max 512) |
| `env` | object | no | Environment variables — use for secrets, not code strings |
| `files` | object | no | Files to write before execution (path → content) |
| `return_files` | string[] | no | File paths to capture after execution (returned as base64) |

**Example — run Python and return a chart:**

```json
{
  "runtime": "python3.12",
  "code": "import matplotlib.pyplot as plt\nimport numpy as np\nx = np.linspace(0, 10, 100)\nplt.plot(x, np.sin(x))\nplt.savefig('/tmp/plot.png')",
  "return_files": ["/tmp/plot.png"]
}
```

Output files are returned as base64. Image files (PNG, JPG, SVG) are returned as MCP image content blocks and render inline in Claude.

## Isolation

- Hardware-virtualized MicroVM per execution (own kernel, not a shared-kernel container)
- `TerminateMicroVM` called unconditionally after every run — VM destroyed, never reused
- RFC 1918 + cloud metadata (`169.254.x.x`) always blocked at the network layer
- Read-only system filesystem via OverlayFS; `/tmp` is RAM-backed and gone with the VM

## Latency

~400ms median (warm pool). 2–8s cold start if the pool is empty.

## License

MIT

Lo que la gente pregunta sobre scratchrun-mcp

¿Qué es ar-blues/scratchrun-mcp?

+

ar-blues/scratchrun-mcp es mcp servers para el ecosistema de Claude AI. MCP server for ScratchRun — ephemeral MicroVM code execution for AI agents Tiene 0 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala scratchrun-mcp?

+

Puedes instalar scratchrun-mcp clonando el repositorio (https://github.com/ar-blues/scratchrun-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ar-blues/scratchrun-mcp?

+

ar-blues/scratchrun-mcp aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene ar-blues/scratchrun-mcp?

+

ar-blues/scratchrun-mcp es mantenido por ar-blues. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a scratchrun-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega scratchrun-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ar-blues/scratchrun-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ar-blues-scratchrun-mcp)](https://claudewave.com/repo/ar-blues-scratchrun-mcp)
<a href="https://claudewave.com/repo/ar-blues-scratchrun-mcp"><img src="https://claudewave.com/api/badge/ar-blues-scratchrun-mcp" alt="Featured on ClaudeWave: ar-blues/scratchrun-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a scratchrun-mcp