What it does
Code Sandbox API is an MCP server that runs Python, JavaScript or SQL code in a sandbox and returns the captured stdout, execution time, exit code and any error message. Python runs as a subprocess, JavaScript through eval, and SQL against an in-memory SQLite database. Output is capped at 10KB per call.
It fits cases where an agent needs a computed result rather than static data, such as running calculations, transforming data, checking a code snippet or querying an in-memory database. Each call takes a code string, a language (python, javascript or sql) and an optional timeout in milliseconds, which defaults to 5000 and can be set up to 10000.
Each call is billed at $0.02 through the x402 protocol, paid in USDC on Base L2, so the client needs a wallet that supports x402, for example @x402/fetch or ATXP. The publisher documentation describes no API key or signup. The server is added to the configuration of a compatible MCP client such as Claude Desktop or Cursor.
Limitations and requirements
Each call costs $0.02 in USDC on Base L2 and requires an x402-capable wallet. The execution timeout is capped at 10000 milliseconds and returned output at 10KB. JavaScript runs through eval, and SQL runs only against an in-memory SQLite database.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
Code Sandbox API
Execute Python, JavaScript, SQL code in a sandbox. x402 micropayment.
v1.1.0As shown on registry.modelcontextprotocol.io when we last read it