Code Runner MCP Server

0.1.8 · active · verified Sun Apr 19

The `mcp-server-code-runner` package provides a server designed to execute code snippets across a vast array of programming languages, including JavaScript, Python, PHP, Go, Ruby, TypeScript, and many others, then display their results. It acts as an MCP (Model Context Protocol) server, integrating with compatible AI clients and development environments like VS Code or Claude Desktop to offer real-time code execution capabilities. While the current version 0.1.8 suggests an early-stage or pre-1.0 development phase, it is actively maintained and serves as a powerful utility for agents requiring quick, sandboxed code execution. Its key differentiators include extensive language support (over 30 languages) and flexible deployment options via `npx` or Docker, making it highly adaptable for various AI-driven development and testing workflows.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates configuring the `mcp-server-code-runner` within VS Code's `settings.json` to enable code execution capabilities for AI agents. This JSON structure registers the server to be run via `npx` on demand.

{
  "mcp": {
    "inputs": [],
    "servers": {
      "mcp-server-code-runner": {
        "command": "npx",
        "args": [
          "-y",
          "mcp-server-code-runner@latest"
        ]
      }
    }
  }
}

view raw JSON →