# Tenki Sandbox MCP [Health: Active]

**Category:** 👨‍💻 Code Execution  
**Repository:** https://github.com/LuxorLabs/tenki-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1566  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tenki-sandbox-mcp

## Description
Disposable microVM sandboxes for AI agents: run code, read/write files, git, preview URLs.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tenki-sandbox-mcp": {
    "command": "npx",
    "args": ["-y","@tenkicloud/mcp"],
    "env": {
      "TENKI_API_KEY": "",
      "TENKI_AUTH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `TENKI_API_KEY`, `TENKI_AUTH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Tenki Sandbox MCP does

Tenki Sandbox MCP gives coding agents access to disposable microVM environments hosted by Tenki Cloud. Agents can create, inspect, pause, resume, fork, and terminate sandboxes, or use the one-shot run workflow to boot an environment, execute code, return its output, and tear it down.

The server covers more than command execution. Its tools can read and write files, create directories, move or remove paths, inspect file metadata, clone and inspect Git repositories, and transfer binary artifacts through signed upload and download URLs. Agents can also expose sandbox ports, create preview URLs, manage SSH access, and work with snapshots, attached volumes, egress policies, and reusable templates.

Tenki describes sandbox startup as taking about two seconds. Usage is billed per second, so the service is suited to short-lived execution as well as longer interactive sessions.

## How it works

An MCP client invokes Tenki tools, and the server calls the Tenki Cloud control plane. The `tenki_run_code` workflow handles a complete boot-run-teardown cycle. For persistent work, separate sandbox lifecycle tools let an agent retain state between executions and manage the session explicitly.

The package communicates over stdio by default. Setting the transport to HTTP enables Streamable HTTP instead; HTTP deployments can use a bearer token, delegated OAuth settings, or a loopback-only configuration. The server exposes 82 tools, including authentication and identity checks, execution, sandbox administration, file operations, Git actions, previews, artifacts, SSH, snapshots, volumes, templates, workspace information, and egress policy management.

Read-only mode registers only read tools. Individual tools can also be excluded, and optional audit logging records tool names and argument keys to stderr.

## Setup and configuration

The package can be started without cloning the repository:

```bash
export TENKI_API_KEY=tk_your_key_here
npx -y @tenkicloud/mcp
```

The executable is named `tenki-mcp`. A Tenki API key or session token is needed for authenticated operations. If both are configured, `TENKI_AUTH_TOKEN` takes precedence over `TENKI_API_KEY`. The API endpoint defaults to `https://api.tenki.cloud` and can be overridden.

Claude Desktop and Cursor use an MCP configuration containing the `npx` command and `TENKI_API_KEY`. Claude Code can connect either to the hosted endpoint at `https://mcp.tenki.cloud/mcp` with browser authorization or to a local process. Codex reads an equivalent server entry from `~/.codex/config.toml`.

For development, clone the repository, install dependencies, build it, and launch `dist/index.js` with Node. HTTP mode uses `PORT` and `TENKI_MCP_HTTP_HOST`; a non-loopback bind requires `TENKI_MCP_HTTP_TOKEN`.

## Tools and capabilities

- Run shell, Python, or JavaScript code and return stdout, stderr, and exit information.
- Create, inspect, pause, resume, fork, extend, and terminate sandboxes.
- Read, write, list, move, remove, and inspect files and directories.
- Clone repositories and inspect Git checkout, diff, and log information.
- Expose ports and create, open, resolve, bind, and remove preview URLs.
- Manage snapshots, volumes, SSH certificates, egress policies, and sandbox templates.
- Check authentication, identify the current user, and inspect workspace usage.

## Limitations and notes

Preview URLs are viewer-token-gated rather than public. Port 7681 is reserved for the web terminal. The API’s older port-exposure tools remain available, but preview-URL tools are preferred.

The server uses the existing command-execution path for `tenki_exec`, `tenki_run_code`, and `tenki_move_path`; the newer data-plane Run stream requires HTTP/2 support that this server does not currently provide. Some administrative API surfaces, including published images and saved Tailscale connections, are excluded from the tool set.

_Full upstream README: https://allmcps.com/mcp/tenki-sandbox-mcp/readme_

