Execute Python, JavaScript, SQL code in a sandbox. x402 micropayment.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Code Sandbox API.
code_execute_sandboxExecute code in a sandboxed environment
codeThe code to execute
languageProgramming language: python, javascript, or sql
timeoutExecution timeout in milliseconds (default: 5000, max: 10000)
Execute Python, JavaScript, or SQL in a sandbox. Get stdout, execution time, errors. 10s timeout. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.
Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.
Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):
Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.
| Tool | Method | Path | Price | Description |
|---|---|---|---|---|
code_execute_sandbox | POST | /api/execute | $0.02 | Execute code in a sandboxed environment |
code_execute_sandboxUse this when you need to execute Python, JavaScript, or SQL code in a sandboxed environment and get the output. Supports Python (subprocess), JavaScript (eval), and SQL (in-memory SQLite).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | The code to execute |
language | string | yes | Programming language: python, javascript, or sql |
timeout | number | no | Execution timeout in milliseconds (default: 5000, max: 10000) |
Returns
output -- stdout captured from code execution (max 10KB)language -- the language that was executedexecutionTimeMs -- execution duration in millisecondsexitCode -- process exit code (0 = success)error -- error message if execution failed (null on success)Example response:
When to use: running calculations, data transformations, validating code snippets, or querying in-memory databases. Essential when you need computed results rather than static data.
eip155:8453)100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.
MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/code-sandbox-api)<a href="https://allmcps.com/mcp/code-sandbox-api"><img src="https://allmcps.com/api/badge/code-sandbox-api?style=directory" alt="Code Sandbox API on AllMCPs" /></a>