Skip to main content
Glama

E2B MCP Server

An MCP server that exposes the E2B Sandbox API as Model Context Protocol tools.

Features

The server currently provides tools for:

  • Sandboxes — create, list, connect, pause, delete, manage timeouts, refresh, and retrieve logs.

  • Templates — create, list, inspect, update, delete, start builds, retrieve build status, and retrieve build logs.

  • Filesystem — list directories, create directories, move and remove files, inspect file metadata, read files, upload files, and manage file watchers.

  • Processes — run commands, list processes, send signals, interact with stdin, and resize PTYs.

Deprecated E2B API endpoints and snapshot-related functionality have been removed from the project.

Related MCP server: code-sandbox-mcp

Requirements

  • Node.js 22 or later

  • An E2B API key

Installation

npm ci

Configuration

Set your E2B API key in the environment:

export E2B_API_KEY="your-api-key"

Usage

Start the server with:

npm start

The server is designed to be used as an MCP server over stdio. It can be connected to any MCP-compatible client that supports stdio servers.

Docker

Build the image:

docker build -t e2b-mcp-server .

Run it:

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

Development

Check the JavaScript syntax for all source files:

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

Run the smoke test:

npm run smoke

Project Structure

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

License

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