Loading...

Executes JavaScript code in a V8 engine with optional heap persistence via S3 or local storage, offering flexible integration with AI agents.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Executes JavaScript code in a V8 engine with optional heap persistence via S3 or local storage, offering flexible integration with AI agents.
The server's safety depends on the chosen mode and storage. Stateless mode is safer due to its ephemeral nature. Stateful mode, especially with S3, requires careful credential management and awareness of the risks associated with persistent JavaScript execution.
Performance is dependent on the complexity of the JavaScript code. Stateful mode may have slower initial execution due to heap snapshot loading.
Cost is primarily related to the compute resources used to run the V8 engine. S3 storage costs may apply if heap snapshots are stored in S3.
{
"mcpServers": {
"js": {
"command": "/usr/local/bin/mcp-v8 --s3-bucket my-bucket-name"
}
}
}JavaScript ExecutionExecutes arbitrary JavaScript code within a V8 engine.
Unrestricted code execution can lead to various security risks.
None
hybrid
The server's safety depends on the chosen mode and storage. Stateless mode is safer due to its ephemeral nature. Stateful mode, especially with S3, requires careful credential management and awareness of the risks associated with persistent JavaScript execution.
The level of autonomy depends on how the tool is used within the agent. The V8 engine provides some sandboxing, but careful consideration should be given to the code being executed.
Production Tip
Use stateless mode in production environments where persistence is not required to minimize security risks.
The environment lacks `async/await`, network access, file system access, and external package support.
Use stateful mode with either S3 or local filesystem storage.
The V8 engine provides some sandboxing, but it's not a fully isolated environment. Exercise caution.
No, `console.log` output is not captured. Return the value you want to inspect as the last line of your code.
Stateless mode starts with a fresh V8 isolate each time, while stateful mode persists the heap state between executions.
Use the `--s3-bucket <bucket>` command line argument and ensure AWS credentials are in your environment.
The server will return an error. Only one storage option can be used at a time.