CodeBox MCP Server

A secure Python code execution service designed to integrate with LLMs like GPT and Claude, providing a self-hosted alternative to OpenAI's Code

Remote serverstreamable-httpPython

What is the CodeBox MCP Server?

A secure Python code execution service designed to integrate with LLMs like GPT and Claude, providing a self-hosted alternative to OpenAI's Code Interpreter. Now

What it actually does

A secure Python code execution service that provides a self-hosted alternative to OpenAI's Code Interpreter or Anthropic's Claude analysis tool. Built with FastAPI and IPython kernels, it supports session-based code execution and integrates with LLM function calling.

  • Session-based Python code execution in Docker containers
  • IPython kernel for rich output support
  • Dynamic package installation with security controls
  • Package allowlist/blocklist system
  • Version control for security vulnerabilities
  • Support for pip and conda installations

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Python 3.9+ - Docker - uv - Fast Python package installer and resolver
VariableDescriptionRequired
DOCKER_HOSTEndpoint or connection string the server talks to.Optional
CODEBOX_MOUNT_PATHFilesystem location the server is allowed to use.Optional
AZURE_OPENAI_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

Python 3.9+, Docker, and [uv](https://github.com/astral-sh/uv) (fast package installer and resolver). For MCP or Claude Desktop integration, `uv` must be installed and configured.