C
Code Sandbox MCP
作者 @feifeigood
Model Context Protocol server for E2B code sandbox - Execute Python code and shell commands in secure cloud sandboxes
创建于 1/5/2026
更新于 2 days ago
README
Repository documentation and setup instructions
Code Sandbox MCP
MCP (Model Context Protocol) server for E2B code sandbox. This server provides tools to create, manage, and execute code in secure E2B sandboxes.
Features
- Create Sandbox: Create new E2B sandboxes with customizable timeout and template
- Kill Sandbox: Terminate existing sandboxes by ID
- Run Code: Execute Python code in sandboxes using Jupyter Notebook syntax
- Run Command: Execute shell commands in sandboxes
Installation
pip install code-sandbox-mcp
Or using uv:
uv pip install code-sandbox-mcp
Usage
Configuration
Add the following configuration to your MCP client settings JSON file (e.g., ~/.config/claude_desktop/claude_desktop_config.json for Claude Desktop, or .cursor/mcp.json for Cursor):
{
"mcpServers": {
"code-sandbox-mcp": {
"command": "uv",
"args": ["run", "code-sandbox-mcp"],
"env": {
"E2B_API_KEY": "your_api_key_here",
"E2B_DOMAIN": "your_domain_here"
}
}
}
}
Replace your_api_key_here and your_domain_here with your actual E2B credentials.
Restart your MCP client to load the configuration. The tools will be available in your MCP-enabled application!
License
MIT
快速设置
此服务器的安装指南
安装包 (如果需要)
uvx code-sandbox-mcp
Cursor 配置 (mcp.json)
{
"mcpServers": {
"feifeigood-code-sandbox-mcp": {
"command": "uvx",
"args": [
"code-sandbox-mcp"
]
}
}
}