← Back to directory
C

Code Runner MCP Server

Community
Run code snippets in many programming languages and view the results.
Category
Dev Tools #526 of 751
Stars
★ 240 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js
Credentials
No credential needed
License
MIT
Last commit
⚠
Tools
1
46FMRS · D

The source describes a server for running code snippets in many languages, provides a stdio package configuration, and documents a Streamable HTTP startup method in the README. Execution depends on local language runtimes; the source does not describe sandboxing or code isolation.

Strongest · Setup experience 13/20 Weakest · Security and permissions 5/20

Reliability
9/20
Security and permissions
5/20
Maintenance
9/20
Documentation
10/20
Setup experience
13/20
Why each score
Reliability 9/20
The README describes running snippets in many languages and gives stdio and HTTP launch options. It does not provide tool parameters, tests, or CI evidence, and users must ensure the relevant interpreter or compiler is on PATH. The manifest lists version 0.1.9 while both packages list 0.1.8, so the handshake, tool list, and error handling are not verifiably reproducible.
Security and permissions 5/20
The server's stated purpose is to run code, and the README asks users to install the relevant interpreters or compilers on the host PATH. The supplied material does not describe code isolation, permission boundaries, network restrictions, or confirmation for dangerous operations. No red-line behavior is evidenced, but the execution boundary and safeguards are undocumented, so the score is low.
Maintenance 9/20
The material identifies an MIT license, active status, a version, and npm and OCI distribution paths, providing recognizable maintenance and update entry points. It provides no commit history, release history, issue-response evidence, security reporting channel, or dependency update evidence. Star and open-issue counts do not add maintenance points.
Documentation 10/20
The README lists supported languages and provides configuration examples for VS Code, Claude Desktop, Docker, and HTTP. It also notes the PATH requirement for interpreters. Tool parameters, execution limits, permission boundaries, costs, and comprehensive troubleshooting are not documented; the manifest and package versions also differ, so the documentation is usable but incomplete.
Setup experience 13/20
The README offers npx and Docker installation, a Windows workaround, HTTP startup instructions, and configuration examples for mainstream clients. Users still need the relevant language runtimes, and the supplied material has no source-file evidence of CI or key-path tests, so the static calibration limits the score.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessRuns commands or code

Best for

  • Developers who need to run code snippets and view results from an MCP client.
  • Users who have the interpreter or compiler for the target language installed and configured.

Not for

  • Users who need to run code without the relevant language runtime on the machine.
  • Read-only workflows; this server is designed to execute code.

Required permissions

  • At runtime, it needs access to the target language interpreter or compiler configured on PATH.
  • Code may access resources available to its execution environment; the README does not describe sandboxing or permission limits.

Risks and side effects

  • Executed code may have unintended side effects; the README does not describe isolation or sandboxing.
  • Code may fail to run if the target language interpreter or compiler is not on PATH.

Setup

Before you start

Runtime:Node.js

The Claude Desktop example uses npx -y mcp-server-code-runner@latest. VS Code can use the same npx command or the Docker example provided in the README. The README also documents installing the npm package globally and passing --transport http to use Streamable HTTP transport. Before running code, ensure the target language's interpreter or compiler is available on PATH.

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

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

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

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mcp-server-code-runner]
command = "npx"
args = ["-y", "mcp-server-code-runner@latest"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mcp-server-code-runner -- npx -y mcp-server-code-runner@latest

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that run-code appears in the client's tool list. Call it with `console.log(5+6)` and check that the result is 11.

Troubleshooting

  1. Confirm the target language interpreter or compiler is installed and available on PATH.
  2. If npx fails to connect on Windows, the README suggests trying bunx or launching npx through cmd /c.
  3. For HTTP transport, confirm the startup command includes --transport http.

Things to try

Once connected, you can ask your AI assistant things like:

  • Run the JavaScript code: console.log(5+6).
  • Use run-code to find the temporary folder on my operating system.
  • Use run-code to find out how many CPUs my machine has.

Tools 1

run-code writes
Runs a code snippet and returns its result.

Use cases

Run a JavaScript snippet and view its output.
Check information such as the temporary directory location or the number of CPUs on the machine.

Supported clients

Claude Desktop
VS Code

Listed from the project's documentation, not tested by this site.

Overview

Code Runner MCP Server runs code snippets in various programming languages and shows the results. The README lists languages including JavaScript, PHP, Python, Ruby, Go, PowerShell, Bash, TypeScript, Swift, R, Kotlin Script, and Dart. The interpreter or compiler for the language being run must be available on PATH.

Similar servers

Source revision 529b5ed4654c Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-server-code-runner.svg)](https://followmcp.com/en/servers/mcp-server-code-runner)