{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_qd8mj88y6pv5","handle":"code-sandbox-mcp","url":"https://wellknown.network/agents/code-sandbox-mcp","links":{"self":"https://wellknown.network/agents/code-sandbox-mcp/record.json","html":"https://wellknown.network/agents/code-sandbox-mcp","markdown":"https://wellknown.network/agents/code-sandbox-mcp/record.md","api":"https://wellknown.network/api/v1/agents/code-sandbox-mcp","status":"https://wellknown.network/api/v1/agents/code-sandbox-mcp/status","claim":"https://wellknown.network/agents/code-sandbox-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/code-sandbox-mcp/claim.json","badge":"https://wellknown.network/agents/code-sandbox-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/code-sandbox-mcp/history","tools":"https://wellknown.network/api/v1/agents/code-sandbox-mcp/tools"},"ard":{"identifier":"urn:air::server:code-sandbox-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"code-sandbox-mcp","summary":"MCP server for E2B code sandbox - Execute code and commands in secure E2B sandboxes","description":"# Code Sandbox MCP\n\nMCP (Model Context Protocol) server for E2B code sandbox. This server provides tools to create, manage, and execute code in secure E2B sandboxes.\n\n## Features\n\n- **Create Sandbox**: Create new E2B sandboxes with customizable timeout and template\n- **Kill Sandbox**: Terminate existing sandboxes by ID\n- **Run Code**: Execute Python code in sandboxes using Jupyter Notebook syntax\n- **Run Command**: Execute shell commands in sandboxes\n\n## Installation\n\n```bash\npip install -e .\n```\n\nOr using uv:\n\n```bash\nuv pip install -e .\n```\n\n## Configuration\n\nCreate a `.env` file in the project root with your E2B credentials:\n\n```env\nE2B_API_KEY=your_api_key_here\nE2B_DOMAIN=your_domain_here\n```\n\n## Usage\n\n### Running the Server\n\nUsing MCP CLI with Inspector (for testing):\n\n```bash\nuv run mcp dev code_sandbox_mcp/server.py\n```\n\nOr using MCP CLI:\n\n```bash\nuv run mcp run code_sandbox_mcp/server.py\n```\n\nOr directly with Python:\n\n```bash\npython -m code_sandbox_mcp.server\n```\n\nOr using the installed command:\n\n```bash\ncode-sandbox-mcp\n```\n\n### Available Tools\n\n1. **create_sandbox(timeout: int = 300, template: str = None)**\n   - Creates a new E2B sandbox\n   - Returns the sandbox ID\n   - Parameters:\n     - `timeout`: Sandbox timeout in seconds (default: 300)\n     - `template`: Optional template name or ID\n\n2. **kill_sandbox(sandbox_id: str)**\n   - Kills an existing sandbox\n   - Returns empty string on success, error message on failure\n\n3. **run_code(code: str, sandbox_id: str = None)**\n   - Executes Python code in a sandbox\n   - Uses Jupyter Notebook syntax\n   - If `sandbox_id` is provided, connects to existing sandbox\n   - Otherwise creates a new sandbox\n   - Returns stdout and stderr\n\n4. **run_command(command: str, sandbox_id: str = None)**\n   - Executes a shell command in a sandbox\n   - If `sandbox_id` is provided, connects to existing sandbox\n   - Otherwise creates a new sandbox\n   - Returns stdout, stderr, and exit code\n\n## Development\n\nThis project uses:\n- Python 3.…","publisher":null,"homepage":"https://github.com/feifeigood/code-sandbox-mcp#readme","repository":"https://github.com/feifeigood/code-sandbox-mcp#readme","version":"0.1.0","license":"MIT","protocols":["mcp"],"tags":["code-execution","e2b","mcp","model-context-protocol","sandbox"],"pricing":null,"endpoints":[{"url":"pypi:code-sandbox-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"code.execution","name":"Code Execution","confidence":1,"provenance":"declared"},{"slug":"dev.terminal","name":"Terminal & Shell","confidence":1,"provenance":"derived"}],"categories":["code","dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"code-sandbox-mcp","registry":"pypi","observedAt":"2026-10-27T22:27:43.792Z","publishedAt":"2026-01-05T05:49:21.519286Z","latestVersion":"0.1.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"code-sandbox-mcp","url":"https://pypi.org/project/code-sandbox-mcp/","firstSeenAt":"2026-09-09T12:27:02.474Z","fetchedAt":"2026-10-27T22:26:25.784Z","normalizedAt":"2026-10-27T22:26:25.784Z"}]},"firstSeenAt":"2026-09-09T12:27:02.474Z","updatedAt":"2026-10-27T22:27:43.792Z"}