Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Mcp Server Code Runner

    Code Runner MCP Server TypeScript-based implementation.

    221 stars
    TypeScript
    Updated Oct 19, 2025

    Table of Contents

    • Setup
    • npx for VS Code
    • npx for Claude Desktop
    • Docker
    • npx issue on Widnows
    • use bunx
    • use cmd
    • Run with Streamable HTTP Transport
    • Usage
    • Build your own MCP Server

    Table of Contents

    • Setup
    • npx for VS Code
    • npx for Claude Desktop
    • Docker
    • npx issue on Widnows
    • use bunx
    • use cmd
    • Run with Streamable HTTP Transport
    • Usage
    • Build your own MCP Server

    Documentation

    Code Runner MCP Server

    NPM Downloads smithery badge Docker Pulls

    MCP Server for running code snippet and show the result.

    It supports running multiple programming languages: JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Clojure, Racket, Scheme, AutoHotkey, AutoIt, Kotlin Script, Dart, Haskell, Ni, Lisp, Kit, V, SCSS, Sass. Full list could be seen here in constants.ts.

    Setup

    npx for VS Code

    Install the Code Runner MCP server in VS Code using below buttons:

    ![Install in VS Code-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D) ![Install in VS Code Insiders-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D)

    Alternatively, you can add configuration in settings.json:

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

    npx for Claude Desktop

    Configuration in claude_desktop_config.json:

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

    Docker

    Use VS Code as example. Install the Code Runner MCP server in VS Code using below buttons:

    ![Install in VS Code-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D) ![Install in VS Code Insiders-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D)

    Alternatively, you can add configuration in settings.json:

    json
    {
      "mcp": {
        "inputs": [],
        "servers": {
          "mcp-server-code-runner": {
            "command": "docker",
            "args": [
              "run",
              "--rm",
              "-i",
              "formulahendry/mcp-server-code-runner"
            ]
          }
        }
      }
    }

    npx issue on Widnows

    On Windows, [MCP servers may fail to connect with npx](https://github.com/modelcontextprotocol/servers/issues/40).

    You could try below two workarounds:

    use bunx

    1. Install Bun.

    2. In configuration, change npx with bunx.

    use cmd

    Below is VS Code configuration in settings.json:

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

    Run with Streamable HTTP Transport

    shell
    npm install -g mcp-server-code-runner@latest
    mcp-server-code-runner --transport http

    Usage

    Before using Code Runner MCP Server, please make sure interpreter or compiler of the programming language you want to run is set in PATH environment variable.

    Try below prompts in the application which has configured Code Runner MCP Server:

    • Run the JavaScript Code: console.log(5+6)
    • Where is temporary folder in my OS? Use run-code tool
    • How many CPUs do I have in my machine? Use run-code tool

    Build your own MCP Server

    Want to build your own MCP Server? Try Yeoman Generator for MCP Server to create your MCP Server project!

    Similar MCP

    Based on tags & features

    • BA

      Bazi Mcp

      TypeScript·
      184
    • BI

      Bilibili Mcp Js

      TypeScript·
      121
    • BR

      Browser Control Mcp

      TypeScript·
      183
    • MC

      Mcp Server Apple Reminders

      TypeScript·
      119

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • BA

      Bazi Mcp

      TypeScript·
      184
    • BI

      Bilibili Mcp Js

      TypeScript·
      121
    • BR

      Browser Control Mcp

      TypeScript·
      183
    • MC

      Mcp Server Apple Reminders

      TypeScript·
      119

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k