mcp/mcp-code-interpreter

Verified Publisher

By mcp

Updated 11 months ago

A Python-based execution tool that mimics a Jupyter notebook environment. It accepts code snippet...

Image
Machine learning & AI
2

10K+

mcp/mcp-code-interpreter repository overview

Python Interpreter MCP Server

A Python-based execution tool that mimics a Jupyter notebook environment. It accepts code snippets, executes them, and maintains state across sessions — preserving variables, imports, and past results. Ideal for iterative development, debugging, or code execution.

What is an MCP Server?

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/akuadane/mcp-code-interpreter/blob/209ddfca8c7a20cd44834a6217dfca358b532f90/Dockerfile
Commit209ddfca8c7a20cd44834a6217dfca358b532f90
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/mcp-code-interpreter --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (1)

Tools provided by this ServerShort Description
execute_codeExecutes Python code within a persistent session, retaining past results (e.g., variables, imports).

Tools Details

Tool: execute_code

Executes Python code within a persistent session, retaining past results (e.g., variables, imports). Similar to a Jupyter notebook. A session_id is returned on first use and must be included in subsequent requests to maintain context.

ParametersTypeDescription
codestring
session_idinteger optional

Use this MCP Server

{
  "mcpServers": {
    "mcp-code-interpreter": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/local-directory:/local-directory",
        "mcp/mcp-code-interpreter"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Install from MCP:Hub

Tag summary

Content type

Image

Digest

sha256:d6ce03d19

Size

128 MB

Last updated

11 months ago

docker pull mcp/mcp-code-interpreter

This week's pulls

Pulls:

1,164

Last week