mcp-server-code-runner

mcp-server-code-runner

154

The Code Runner MCP Server is designed to run and display results from code snippets written in various programming languages. It features easy setup via VS Code or Docker and supports both npx and Docker. The server can handle multiple languages and offers configuration guidance for different environments.

Code Runner MCP Server

MCP Server for running code snippets and showing results across multiple programming languages, including JavaScript, PHP, Python, Ruby, and more. It can be easily set up using npx or Docker in various environments such as VS Code or Claude Desktop. Proper configuration through settings.json and handling for potential issues on Windows using bunx or cmd. The server supports Streamable HTTP for transport and requires interpreters or compilers of languages to be set in the PATH environment variable.

Usage

Ensure the interpreter or compiler is set up before usage. Example prompts:

  • Run JavaScript code:
  • Check the temporary folder in OS:
  • Determine CPU count:

Build your own MCP Server

Use the Yeoman Generator to create your own MCP Server project.