E

E2B Code Sandbox MCP Server

Run code in secure, isolated cloud sandboxes from Claude Code. Execute untrusted code, test scripts, run data analysis, and prototype without risking your local environment. Supports Python, JavaScript, and other languages.

MCPCommunitydevelopmentv1.0.0Apache-2.0
0 views0 copies

MCP Server Configuration

{ "mcpServers": { "e2b": { "command": "npx", "args": ["-y", "@e2b/mcp-server"], "env": { "E2B_API_KEY": "<your-api-key>" } } } }

Available Tools

ToolDescription
run_codeExecute code in a sandboxed environment
install_packagesInstall pip/npm packages in the sandbox
upload_fileUpload a file to the sandbox filesystem
download_fileDownload a file from the sandbox
list_sandboxesList active sandbox instances
create_sandboxCreate a new sandbox with specific configuration
kill_sandboxTerminate a running sandbox

Use Cases

  • Safe code execution: Run LLM-generated code without local risk
  • Data analysis: Process datasets in isolated Python environments
  • Package testing: Test npm/pip packages before adding to your project
  • Prototyping: Quickly test algorithms or API integrations
  • CI/CD validation: Run build scripts in clean environments

Supported Environments

  • Python 3.11+ with pip
  • Node.js 20+ with npm
  • Custom Docker templates for specialized environments
  • Pre-installed: pandas, numpy, requests, and common libraries

Setup

  1. Sign up at https://e2b.dev
  2. Get your API key from the dashboard
  3. Replace <your-api-key> with your actual key
  4. Free tier includes 100 sandbox hours/month

Security Notes

  • Code runs in isolated microVMs - no access to your local filesystem
  • Each sandbox is ephemeral and destroyed after use
  • Network access is available within sandboxes - be aware of outbound calls
  • API key controls sandbox creation and execution
  • Sandbox timeout defaults to 5 minutes (configurable)
  • Review code before execution, especially network-accessing scripts
Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates