Disposable microVM sandboxes for AI agents: run code, read/write files, git, preview URLs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
@tenkicloud/mcpA Model Context Protocol server for Tenki Cloud. Give any agent β Claude, Codex, Cursor β a disposable microVM it can create, run code in, read and write files, run git, and expose to the web. Sandboxes boot in ~2 seconds and are billed per second.
Part of making Tenki the execution layer coding agents reach for: the agent writes code and Tenki runs it in isolation. (Tenki's Code Reviewer and Runners β AI PR review and managed CI β are separate products; this server currently exposes the Sandbox.)
Nothing to clone or build. The package installs one command, tenki-mcp.
The repo doubles as a plugin marketplace. This prompts for your API key on install and stores it in your OS keychain β no env var to manage:
Add to claude_desktop_config.json:
Add the same block to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
The OpenAI Codex CLI reads MCP servers from ~/.codex/config.toml. Add:
After adding the server, start a fresh session so the client loads it, then ask your agent one of:
print(2+2) in a fresh Tenki sandbox." β a full boot β run β teardown round-trip.If the tenki_* tools don't show up, restart the client so it re-reads its config.
No key yet? Start the server without one and ask the agent to check tenki_auth_status β it reports what to set and where. See Auth.
For development, or to run an unreleased change:
Substitute node /absolute/path/to/tenki-mcp/dist/index.js for the npx command in any of the configs above. See CONTRIBUTING.md for the full development loop.
| Variable | Default | Purpose |
|---|---|---|
TENKI_API_KEY | β | API key (tk_β¦). One of this or TENKI_AUTH_TOKEN is required. |
TENKI_AUTH_TOKEN | β | Session token (ory_st_β¦ or cookie value). Takes precedence over TENKI_API_KEY when both are set. |
TENKI_API_ENDPOINT | https://api.tenki.cloud | Control-plane base URL (TENKI_API_URL is an alias). |
TENKI_MCP_READONLY | off | 1 registers only read tools (no create/run/delete/spend). |
TENKI_MCP_DISABLED_TOOLS | β | Comma-separated tool names to skip registering. |
TENKI_MCP_AUDIT | off | 1 logs each tool call name + arg keys to stderr. |
TENKI_MCP_TRANSPORT | stdio | http serves Streamable HTTP instead (see below). |
PORT | 3000 | HTTP transport port. |
TENKI_MCP_HTTP_HOST | 127.0.0.1 | HTTP bind host; non-loopback requires TENKI_MCP_HTTP_TOKEN. |
TENKI_MCP_HTTP_TOKEN | β | Bearer token for the HTTP endpoint; optional on loopback, required on a non-loopback host. |
71 tools β all 68 public unary API methods (enforced by a CI parity audit), two workflow helpers, and tenki_auth_status. Implementation-only control-plane methods are intentionally excluded. Grouped by domain:
| Domain | Tools |
|---|---|
| Auth | tenki_auth_status (which credential is configured, and does it work β the only tool available when none is) |
| Identity | tenki_whoami |
| Run | tenki_run_code (one-shot: boot β run shell/python/js β tear down) |
| Sandboxes | tenki_create_sandbox Β· tenki_get_sandbox Β· tenki_list_sandboxes Β· tenki_terminate_sandbox Β· tenki_pause_sandbox Β· tenki_resume_sandbox |
| Session admin | tenki_extend_sandbox Β· tenki_update_sandbox Β· tenki_terminate_sandboxes (bulk) Β· tenki_report_sandbox_activity Β· tenki_list_workspace_sandboxes |
| Exec | tenki_exec (stdout/stderr/exit inline) |
| Files | tenki_read_file Β· tenki_write_file Β· tenki_list_files Β· tenki_stat_path Β· tenki_make_dir Β· tenki_remove_path Β· tenki_move_path |
| Git | tenki_git (clone/checkout/diff/log β the API supports exactly these four; run other git commands via tenki_exec) |
| Ports & previews | expose Β· list-exposed Β· unexpose Β· create-preview-url Β· open-preview Β· list/get/delete-preview-url Β· touch-preview Β· bind/unbind-preview-url Β· resolve-preview-token |
| Artifacts (binary transfer) | tenki_get_upload_url Β· tenki_get_download_url (signed URLs for binary PUT/GET) |
| SSH | tenki_update_ssh_keys Β· tenki_issue_ssh_cert Β· tenki_list_ssh_gateways |
| Snapshots | create Β· get Β· list Β· list-session Β· list-workspace Β· list-dangling Β· update Β· delete Β· get-download-url |
| Volumes | create Β· get Β· list Β· update Β· delete Β· resize Β· attach Β· detach |
| Templates | create Β· get Β· list Β· update Β· delete Β· build Β· cancel-build Β· get-build Β· list-active-builds |
| Workspace | tenki_get_workspace_usage Β· tenki_get_workspace_settings Β· tenki_update_workspace_settings Β· tenki_get_snapshot_retention_settings Β· tenki_update_snapshot_retention_settings |
Full per-release breakdown in CHANGELOG.md.
Set one of TENKI_API_KEY or TENKI_AUTH_TOKEN β when both are set, TENKI_AUTH_TOKEN wins. The header is chosen by token prefix: tk_β¦ β Authorization: Bearer, ory_st_β¦ β X-Session-Token, otherwise a session cookie. Override the endpoint with TENKI_API_ENDPOINT (default https://api.tenki.cloud).
Without a credential the server still starts, registering only tenki_auth_status β so instead of an MCP client reporting an opaque "server failed to start", the agent can call that tool and get told what to set. Ask it "check tenki auth status" any time other tools return auth errors: it reports the credential kind (API key vs session token), the endpoint, and whether a live identity probe succeeded β never the token itself. It reports status only; get a credential with tenki login or from the dashboard.
Besides stdio, the server speaks Streamable HTTP so it can be hosted for remote MCP clients:
Security β this endpoint is a capability. In HTTP mode the process holds one shared TENKI_API_KEY and exposes every tool, including arbitrary code execution and credit spend. So by default it:
127.0.0.1) only β set TENKI_MCP_HTTP_HOST=0.0.0.0 to expose it, but thenTENKI_MCP_HTTP_TOKEN and send Authorization: Bearer <token>. It refuses to start on a non-loopback host without one.Point an HTTP-capable MCP client at /mcp. v2.0-beta uses one shared TENKI_API_KEY for all sessions; per-request auth (multi-tenant hosting) is not yet implemented. Verified end-to-end (test/http-transport.test.mjs: auth gate, DNS-rebinding rejection, connect β tools/list β tool call over HTTP).
Tenki's API is ConnectRPC β JSON over HTTP/1.1, not REST. Every control-plane call is POST https://api.tenki.cloud/tenki.sandbox.v1.SandboxService/{Method} with a lowerCamelCase JSON body. Per-session file I/O runs on a separate data-plane endpoint returned at create time, authenticated with a short-lived session certificate. This server owns both transports so the tools stay one-liners.
Command output: tenki_exec and tenki_run_code capture stdout/stderr by redirecting to files (sh -c 'β¦ > out 2> err') and reading them back over the data plane, so you get the output inline through a plain HTTP client.
The wire details are ported from the live-verified n8n community node.
This server holds a Tenki API key and can run code + spend credits, so treat it as a capability. Full model + CSA MCP Server Top-10 mapping in SECURITY.md. Quick controls:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tenki-sandbox-mcp)<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>