Back to MCP Servers

Code Runner

An MCP server for running code locally via Docker and supporting multiple programming languages.

developer-toolsdocker

Installation

npx -y mcp-code-runner

Configuration

{
  "mcpServers": {
    "mcp-code-runner": {
      "command": "npx",
      "args": ["-y", "mcp-code-runner"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub