Back to MCP Integrations
E2B MCP
FeaturedOfficial E2B MCP server for secure code execution in cloud sandboxes, enabling AI assistants to run code safely.
0 installsAuthor: E2B
Description
The E2B MCP Server allows AI assistants to execute code safely in secure cloud sandboxes. It provides code interpreting capabilities through the E2B Sandbox infrastructure.
Installation
Via Smithery
npx @smithery/cli install e2b --client claude
Manual Installation
npm install -g @e2b/mcp-server
Claude Code
claude mcp add e2b -e E2B_API_KEY=YOUR_API_KEY -- npx -y @e2b/mcp-server
Configuration
Claude Desktop
{
"mcpServers": {
"e2b": {
"command": "npx",
"args": ["-y", "@e2b/mcp-server"],
"env": {
"E2B_API_KEY": "your-api-key-here"
}
}
}
}
Features
- Secure Code Execution - Run AI-generated code in isolated cloud sandboxes
- Multiple Languages - Support for Python, JavaScript, and more
- File System Access - Read and write files within the sandbox
- Package Installation - Install dependencies on the fly
- Persistent Sessions - Maintain state across multiple code executions
Editions
The E2B MCP server is available in two editions:
- JavaScript - For Node.js environments
- Python - For Python environments
Usage Examples
Run this Python code and show me the output
Create a data visualization using matplotlib
Execute this JavaScript and return the result
Security
E2B sandboxes provide:
- Isolated execution environments
- No access to host system
- Automatic cleanup after execution
- Resource limits and timeouts