mcp-code-runner

axliupore/mcp-code-runner

3.4

If you are the rightful owner of mcp-code-runner and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

mcp-code-runner is a code execution tool based on the Model Context Protocol (MCP) that utilizes Docker for executing code.

mcp-code-runner is a server that leverages the Model Context Protocol (MCP) to execute code within a Docker environment. This tool is designed to facilitate the execution of code by providing a structured protocol for communication and execution management. It is particularly useful for developers and engineers who need to run code in isolated environments, ensuring that the execution is consistent and secure. The reliance on Docker means that users must have Docker installed on their local machines to utilize this tool effectively. The server supports the execution of code and can return the results of the execution, although it currently does not provide detailed metrics such as execution time or memory usage.

Features

  • Supports MCP protocol for structured communication.
  • Executes code and returns execution results.
  • Utilizes Docker for isolated and secure code execution.

Usages

usage with docker

{
  "mcpServers": {
    "code-runner": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "axliupore/mcp-code-runner"
      ]
    }
  }
}