Code Runner

by axliupore

5 stars
167 downloads
Not rated
GitHub

About

Executes code snippets in isolated Docker containers with resource limits and security controls for safe testing and debugging across multiple programming languages.

Details

Author
axliupore
Repository
axliupore/mcp-code-runner
GitHub stars
5
Downloads
167
License
MIT License
Categories
Design, Developer Tools, AI, Security, Frontend
Tags
#mobile

- Implements the MCP protocol.
- Executes code and returns results.
- Uses Docker for isolated execution.
- Requires Docker to be installed locally.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Code Runner
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

The README does not provide specific installation or invocation instructions. It only states that Docker must be installed on the host machine because all code execution happens inside Docker containers.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "code runner": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

mcp-code-runner

smithery badge

基于 MCP 协议的代码执行器,最后是通过 Docker 来进行代码执行的,所以本机上需要有 Docker 的环境.

支持功能

- [x] 支持 MCP 协议
- [x] 支持代码执行,获得代码执行的结果
- [ ] 获取代码执行的时间、内存等信息

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.