Skip to main content
Glama

E2B MCP Server

一个将 E2B Sandbox API 作为 Model Context Protocol 工具暴露的 MCP 服务器。

功能特性

该服务器目前提供以下工具:

  • 沙箱 — 创建、列出、连接、暂停、删除、管理超时、刷新和检索日志。

  • 模板 — 创建、列出、检查、更新、删除、启动构建、检索构建状态和检索构建日志。

  • 文件系统 — 列出目录、创建目录、移动和删除文件、检查文件元数据、读取文件、上传文件和管理文件监视器。

  • 进程 — 运行命令、列出进程、发送信号、与 stdin 交互以及调整 PTY 大小。

已弃用的 E2B API 端点和与快照相关的功能已从项目中移除。

Related MCP server: code-sandbox-mcp

要求

  • Node.js 22 或更高版本

  • E2B API 密钥

安装

npm ci

配置

在环境中设置你的 E2B API 密钥:

export E2B_API_KEY="your-api-key"

使用

使用以下命令启动服务器:

npm start

该服务器设计为通过 stdio 使用的 MCP 服务器。它可以连接到任何支持 stdio 服务器的 MCP 兼容客户端。

Docker

构建镜像:

docker build -t e2b-mcp-server .

运行它:

docker run --rm -i \
  -e E2B_API_KEY="$E2B_API_KEY" \
  e2b-mcp-server

开发

检查所有源文件的 JavaScript 语法:

for f in src/*.js; do node --check "$f"; done

运行冒烟测试:

npm run smoke

项目结构

src/
├── http.js
├── index.js
├── tools-common.js
├── tools-filesystem.js
├── tools-process.js
├── tools-sandboxes.js
└── tools-templates.js

许可证

ISC

Install Server
F
license - not found
C
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (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

  • A Model Context Protocol server for Wix AI tools

  • Create and drive plori cloud agents and workflows over MCP; each agent has its own environment.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

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/contributory/e2b-mcp-server'

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