Skip to main content
Glama
fstandhartinger

sandbox-as-a-service-mcp

sandbox-as-a-service-mcp

一个 MCP 服务器,为代理提供一个可以随意破坏的真实 Linux 虚拟机。

十一个工具:创建沙箱、在其中运行 shell 命令、写入和读取文件、列出运行产生的内容、在公共预览 URL 上暴露端口、延长生命周期、销毁它,以及检查所有成本。

每个沙箱都是一个拥有自己内核的专用虚拟机——而不是与其他人的代码共享主机的容器。它永远不会在账户之间重用,并且在到期时被销毁,无论是否有任何东西记得要求。

使用它

AAS_API_KEY=aas_sk_... npx -y https://sandbox-as-a-service.com/mcp.tgz

sandbox-as-a-service.com 获取密钥——新账户以免费信用额度开始,无需信用卡。

Claude Desktop / Claude Code

{
  "mcpServers": {
    "sandbox": {
      "command": "npx",
      "args": ["-y", "https://sandbox-as-a-service.com/mcp.tgz"],
      "env": { "AAS_API_KEY": "aas_sk_..." }
    }
  }
}

Related MCP server: microsandbox-mcp

工具

工具

功能

create_sandbox

创建 VM 并在其就绪后返回其 id。

run_command

以非特权用户身份运行 shell 命令。返回 stdout、stderr 和退出代码。

write_file

写入文件。内容带外传输,因此引号和二进制数据都能保留。

read_file

读回文件——代理如何获取其代码产生的内容。

list_files

列出目录树,以便代理找到运行产生的内容。

expose_port

为沙箱内的服务器提供一个公共 https URL 以供分享。

get_sandbox

状态、大小和到期时间。

list_sandboxes

账户上的所有内容,最新的在前——用于查找遗漏的沙箱。

extend_sandbox

当任务超出其超时时间时,将到期时间推后。

destroy_sandbox

销毁它并停止计费。

get_usage

剩余信用额度和最近的使用情况。

给代理的注意事项

  • 代码以非特权用户身份运行。没有 sudo,所以 apt-get 将无法工作;使用 pip install --user --break-system-packagesnpm install,两者都可以。

  • run_command 等待命令完成。使用 & 启动服务器,否则它会一直保持调用打开直到超时。

  • 沙箱在其超时到期时被销毁,无论是否调用了 destroy_sandbox,所以被遗忘的沙箱只花费几分钟,而不是永远花钱。无论如何调用它,都会返回你本来不会使用的分钟数。

环境

变量

AAS_API_KEY

必需。你的 API 密钥。

AAS_BASE_URL

可选。默认为 https://sandbox-as-a-service.com/v1

MIT 许可。它连接的服务位于 sandbox-as-a-service.com文档

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.

  • Persistent cloud development environments that coding agents create, run and test software in.

  • The agent-native cloud: database, functions, AI, storage, computers. 50 tools, one API key.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fstandhartinger/sandbox-as-a-service-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server