# Codeinterpreter (verified)

CodeInterpreter extends Python-based coding environments with integrated data analysis, enabling developers to run scripts, visualize results, and prototype solutions inside supported platforms

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add codeinterpreter

# Browse available tools
npx -y @smithery/cli@latest tool list codeinterpreter

# Get full schema for a tool
npx -y @smithery/cli@latest tool get codeinterpreter CODEINTERPRETER_CREATE_SANDBOX

# Call a tool
npx -y @smithery/cli@latest tool call codeinterpreter CODEINTERPRETER_CREATE_SANDBOX '{}'
```

## Direct MCP Connection

Endpoint: `https://codeinterpreter.run.tools`

## Tools (5)

- `CODEINTERPRETER_CREATE_SANDBOX` — Create a sandbox to execute python code in a Jupyter notebook cell. This is useful for agents to communicate, execute c…
- `CODEINTERPRETER_EXECUTE_CODE` — Execute python code in a sandbox and return any result, stdout, stderr, and error. Use /home/user folder to write/read …
- `CODEINTERPRETER_GET_FILE_CMD` — Get a file from the sandbox and returns the file. The files should be read from /home/user folder.
- `CODEINTERPRETER_RUN_TERMINAL_CMD` — Run a command in the terminal and returns the stdout, stderr, and error code. Use /home/user folder to write/read files.
- `CODEINTERPRETER_UPLOAD_FILE_CMD` — Upload a file to the sandbox environment. The files should be uploaded to the /home/user folder.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get codeinterpreter <tool-name>
```
