E2B MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@E2B MCP ServerCreate a sandbox and runpython3 --versionin it."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 ciConfiguration
Set your E2B API key in the environment:
export E2B_API_KEY="your-api-key"Usage
Start the server with:
npm startThe 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-serverDevelopment
Check the JavaScript syntax for all source files:
for f in src/*.js; do node --check "$f"; doneRun the smoke test:
npm run smokeProject Structure
src/
├── http.js
├── index.js
├── tools-common.js
├── tools-filesystem.js
├── tools-process.js
├── tools-sandboxes.js
└── tools-templates.jsLicense
ISC
Maintenance
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
- FlicenseNot gradedqualityNot gradedmaintenanceProvides remote filesystem operations, git repository management, and process execution capabilities for AI agents through the Model Context Protocol.
- AlicenseAqualityCmaintenanceMCP server for E2B code sandbox, enabling creation, management, and execution of code in secure sandboxes using Python and shell commands.41MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI assistants to create, control, and interact with virtual desktop environments through E2B's secure cloud sandboxes.6174MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with E2b's tools and services through a standardized MCP interface, allowing AI agents to use E2b capabilities.MIT
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…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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