Tenki Sandbox MCP logo

Tenki Sandbox MCP

Run code and manage disposable Tenki Cloud microVM sandboxes through MCP, including files, Git, previews, snapshots, and volumes.

Install Tenki Sandbox MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tenki-sandbox-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@tenkicloud/mcp"
      ],
      "env": {
        "TENKI_API_KEY": "YOUR_VALUE_HERE",
        "TENKI_AUTH_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Tenki Sandbox MCP connects MCP-compatible agents to Tenki Cloud’s disposable microVM sandboxes. It can run shell, Python, or JavaScript code, manage files and Git repositories, expose ports for previews, and control sandbox resources such as snapshots and volumes. The server supports local stdio operation with an API key or Streamable HTTP, making it a fit for isolated code execution workflows.

Use cases

  • Run untrusted code in an isolated microVM
  • Clone and inspect a Git repository
  • Build and test files in a temporary sandbox
  • Expose a development process through a preview URL
  • Persist execution state with snapshots or volumes

Key features

  • Disposable Tenki Cloud microVM sandboxes
  • One-shot shell, Python, and JavaScript execution
  • File and Git repository operations
  • Port exposure and token-gated preview URLs
  • Snapshots, volumes, templates, and egress policies
  • stdio and Streamable HTTP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 96d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @tenkicloud/mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.6kPackage downloads in the last 30 days.
Last commit10d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Tenki Sandbox MCP works

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:

server.ts
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tenki Sandbox MCP

Tenki Sandbox MCP is an MCP server that connects AI agents to Tenki Cloud disposable microVM sandboxes. Its main tools run shell, Python, or JavaScript code, manage files and Git repositories, control sandbox lifecycles, expose preview URLs, and handle snapshots, volumes, SSH, templates, and workspace operations.

Install it with `npx -y @tenkicloud/mcp` after setting `TENKI_API_KEY` or `TENKI_AUTH_TOKEN`. Add the command to your MCP client configuration, then start a fresh client session so it loads the tools. The package also supports running a locally built `dist/index.js`.

Yes, Tenki Sandbox MCP works with Cursor. Add an `mcpServers` entry to the project `.cursor/mcp.json` or global `~/.cursor/mcp.json`, using `npx -y @tenkicloud/mcp` and an authentication environment variable.

Use the `tenki_run_code` tool for a one-shot isolated run. It boots a disposable microVM, executes shell, Python, or JavaScript code, returns the result, and tears the sandbox down. Separate lifecycle and execution tools support sessions that need to persist.

Yes, it can expose sandbox ports and create preview URLs. Preview access is viewer-token-gated rather than public, and port 7681 is used for the web terminal. The tool set also includes operations for opening, resolving, binding, touching, and deleting preview URLs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTenki Sandbox MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tenki-sandbox-mcp?style=directory)](https://allmcps.com/mcp/tenki-sandbox-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/tenki-sandbox-mcp"><img src="https://allmcps.com/api/badge/tenki-sandbox-mcp?style=directory" alt="Tenki Sandbox MCP on AllMCPs" /></a>