executeJavaScript
Execute JavaScript code in a secure cloud sandbox
Run JavaScript or Python in an E2B cloud sandbox and move files in and out of it, without the code touching your machine.
LABSCO SUMMARY
Two of the five tools run code; three move files. That ratio is the right one, because a script that writes a CSV, renders a chart or transforms a dataset leaves its result on disk, and an executor without a read path can only tell you it finished. Upload, list and read close that loop. The trade to understand is where the trust boundary sits: the code runs in E2B's infrastructure under your key, so this is safer than running it locally and is not the same thing as running it nowhere.
A thin client over E2B's sandboxes with five tools: execute JavaScript, execute Python, and upload, list and read files inside the sandbox.
E2B_API_KEY. The sandbox is E2B's, so quota and session lifetime follow their account, not this server.
One command plus a key — npx -y smart-e2b, then supply credentials
USE CASES
Execute it in the sandbox instead of the host, so an unfamiliar script cannot reach your filesystem.
Upload the input, run the script against it, then read back what it produced — the loop that stdout alone cannot close.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
executeJavaScriptExecute JavaScript code in a secure cloud sandbox
executePythonExecute Python code in a secure cloud sandbox
listFilesList files in a directory in the sandbox
readFileRead a file from the sandbox
uploadFileUpload a file to the sandbox
BEFORE YOU INSTALL
5 tools when we connected.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 5 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y smart-e2b{
"mcpServers": {
"smart-e2b": {
"command": "npx",
"args": [
"-y",
"smart-e2b"
],
"env": {
"E2B_API_KEY": ""
}
}
}
}