mcp-server-code-runner

Code Runner MCP Server

Code Runner lets developers execute snippets and receive results through the run-code tool in MCP-enabled applications. It supports multiple languages, with setup examples for VS Code and Claude Desktop.

Server facts

mcp-server-code-runner

Tech

Runtime / language
node
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
242
Last commit
Data as of

Overview

Code snippets are the focus of mcp-server-code-runner: its run-code tool accepts a snippet for execution and returns the result. The supported language range includes JavaScript, Python, PHP, Ruby, Go, TypeScript, Julia, R, and shell scripting, among others. Developers can use it from an application configured to connect to the server. The documented examples cover evaluating a JavaScript expression and using code to find the operating system’s temporary directory or check the machine’s CPU count. The interpreter or compiler for the chosen language must be available through PATH.

Setup instructions show npx configurations for VS Code and Claude Desktop, plus a Docker configuration illustrated with VS Code. The documentation also describes starting the server with Streamable HTTP transport. For Windows users encountering connection problems with npx, it suggests trying bunx or invoking npx through cmd. These options address launching and connecting the server; the central workflow remains submitting code through the single exposed tool and receiving its output.

mcp-server-code-runner setup notes

  • mcp-server-code-runner records stdio only; confirm a network transport upstream before planning remote access.

Related MCP servers