drio
Open app

Code Runner MCP Server

Source

Code Runner MCP Server

Catalog onlyCatalog onlySTDIO

Overview

Code Runner MCP Server is a tool designed to run code snippets and display the results, facilitating quick testing and execution of code in various programming environments.

To use the Code Runner MCP Server, configure it in your development environment (like VS Code or Claude Desktop) by adding the necessary settings in the configuration files. Once set up, you can run code snippets directly from your application.

  • Ability to run code snippets in real-time - Supports multiple programming languages - Easy integration with popular development environments
  1. Testing JavaScript code snippets quickly.
  2. Running system commands to retrieve information about the operating system.
  3. Executing code in a controlled environment for educational purposes.

Add to your AI client

Use these steps to connect Code Runner MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

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

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

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

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

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

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-code-runner-formulahendry": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-code-runner-formulahendry"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

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

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

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

FAQ

Can I run any programming language with Code Runner MCP Server?

Currently, it supports languages configured in the environment, primarily focusing on JavaScript and TypeScript.

Is there a graphical interface for Code Runner MCP Server?

No, it operates through command-line inputs and configurations in development environments.

How do I configure the server?

Configuration is done through JSON files in your development environment settings.